This is a migrated thread and some comments may be shown as answers.

Rad Grid Grouping

3 Answers 73 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Srinivas
Top achievements
Rank 1
Srinivas asked on 10 Aug 2011, 01:22 PM
I am grouping data using Group by expressions and created a link button on a group header dynamically.

Also Added  command argument value Handler to that button in Item created and Item Databound event.

When I click on that button the values on the grid group header are disppearing and loosing the command argument values.

I need to get the command argument of buuton to make some changes to the data in the record.

Please help me on this.

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 10 Aug 2011, 01:30 PM
Hello Srinivas,

I cannot reproduce the issue at my end. I suppose this issue arises when you are binding the grid using simple data binding. In order to implement advanced features like grouping, paging etc make sure that you are using Advanced data binding using NeedDataSource event. Check the following help documentation which explains more about this.
Advanced Data-binding (using NeedDataSource event).
Please elaborate your scenario if it doesn't help.

Thanks,
Shinu.
0
Srinivas
Top achievements
Rank 1
answered on 10 Aug 2011, 01:37 PM
Hi Shinu,


Thanks for your responce.

I am binding the using need datasource event.

I don't have any issues while bind the data.

When I click on a buttong which I created from code behind values on group header are disappearing and command Argument I attached to the button is missions.

Please let me know if you have any solution for this.

Thanks,

Srinivas
0
Pavlina
Telerik team
answered on 12 Aug 2011, 01:46 PM
Hello Srinivas,

Can you please verify that you set the CommandArgument value for the LinkButton in the group header inside the ItemCreated event of the grid? This event will be raised on each postback (see this topic for details concerning the RadGrid's comment event lifecycle) and thus the value should be available inside the ItemCommand handler of the control.

Best wishes,
Pavlina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Srinivas
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Srinivas
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or