Rank: Newbie Groups: Member
Joined: 7/5/2011 Posts: 2
|
Hi! I have 2 asp:datagrid at form. One of them into Callbackpanel (Datagrid's ID is "Grid2"), and second is not within ("Grid1"). When I pointing as a trigger "Grid1", then an error "Trigger control 'Grid1' for Callback 'CallbackPanel1' does not exist. Is this statement true? If yes, and a did all correctly, what is wrong? Thanks a lot.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
The trigger control and the CallbackPanel control must be inside the same naming container. For instance, if you have a page with a DataGrid and a CallbackPanel, then have a Button inside one of the DataGrid's column template, then you cannot use the button as the CallbackPanel trigger because the button's naming container is the grid item, while the CallbackPanel's naming container is the page. So if your Grid is inside something else that is a naming container, then you cannot use it as a trigger. In that case there are several options:
1. Use that container as the trigger; 2. Use an additional CallbackPanel inside the same naming container as your DataGrid, then set that second CallbackPanel’s GroupName and your original CallbackPanel’s GroupName to the same value. You can then set your DataGrid as a trigger for your second CallbackPanel. This way when the second CallbackPanel is triggered, the original CallbackPanel will also be triggered because they have the same group name; 3. Use our client side JavaScript interface to trigger it manually; Hope this helps. Please feel free to let us know if you have any more questions.
Thanks
|
Rank: Newbie Groups: Member
Joined: 7/5/2011 Posts: 2
|
Thanks a lot) The problem was that the grid was within the CustomItem. After I have designated as a trigger Custmomitem's id, all at last has earned!
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Great. Glad that it works now!
|