Welcome Guest Search | Active Topics | Sign In | Register

Two asp:Datagrid and CallbackPanel Options
RomanM
Posted: Tuesday, July 5, 2011 7:41:00 AM
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.
eo_support
Posted: Tuesday, July 5, 2011 12:19:46 PM
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
RomanM
Posted: Wednesday, July 6, 2011 9:31:23 AM
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!
eo_support
Posted: Wednesday, July 6, 2011 10:34:05 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Great. Glad that it works now!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.