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

[Solved] group by - drag and drop a column header problem

1 Answer 148 Views
Grid
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 15 Jan 2010, 07:28 PM

 Hi,


http://demos.telerik.com/aspnet-ajax/grid/examples/programming/groupby/defaultcs.aspx


I’m tryingto create a dynamic group by grid and use above sample.

In stead ofusing datasourceid field, I create a dynamic datatable object and bind it withthe grid’ datasource property.

The sampleworks, however each time when I drag and drop a column header into the group byarea.

There isobject null error. Any idea? The source of the data is binded on need dataevent, and I also tried the batabind event as well.

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 18 Jan 2010, 12:13 PM
Hello Bin,

If you use advanced binding with NeedDataSource event handling as illustrated on this demo, the grouping feature should work as expected either you define the group expressions declaratively or programmatically from the code-behind. Note that the built-in grouping feature is not supported with simple binding with DataBind() calls.

If you still experience issues, please post your markup and code-behind using the "Format Code Block" dialog of the forum editor. We will examine it in detail and will advice you further.

Best regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
David
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or