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

Limitation with Rad Grid grouping

3 Answers 38 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nataraj Vedula
Top achievements
Rank 1
Nataraj Vedula asked on 05 Nov 2008, 10:30 AM
Hi,

I heard that there is a limitation with Rad Grid grouping when the header text of the column bound to the grid has a white space in it. For Eg: If the header text of a particular column is "Company Name", then on dragging the column header to perform grouping, an error was thrown. Reason is, it is grouping the column with name "Company" instead of  "Company Name".
I raised a forum earlier also regarding the same. I got reply that this was the limitation with Rad Grid and will be solved soon.
Was this problem solved in any of the latest release for Rad Controls?

Thanks,
Nataraj 

3 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 07 Nov 2008, 12:21 PM
Hi Nataraj,

The header text can contain space characters. To important thing is to have no spaces in the datafiled name to which the control is bound. Thus, you can have:

.aspx
<telerik:GridBoundColumn   
 DataField="SupplierID"   
 HeaderText="Supplier  ID"   
 SortExpression="SupplierID" 
 UniqueName="SupplierID">  
</telerik:GridBoundColumn>     

I hope this helps.

Greetings,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Nataraj Vedula
Top achievements
Rank 1
answered on 11 Nov 2008, 06:14 AM
Hi Yavor,

Thanks for the reply. But can i use the method that you have suggested if the rad grid is bound to a dataset with "AutoGenerateColumns" property set to true?

Thanks,
Nataraj
0
Vlad
Telerik team
answered on 11 Nov 2008, 07:42 AM
Hi Nataraj,

You can use ColumnCreated event to get reference to the column using e.Column and change desired properties.

Sincerely yours,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Nataraj Vedula
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Nataraj Vedula
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or