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

Why RadGrid does'nt supports databinding expressions

2 Answers 73 Views
Grid
This is a migrated thread and some comments may be shown as answers.
CSurieux
Top achievements
Rank 2
CSurieux asked on 21 Oct 2009, 08:18 AM
Hello,


Why using expressions like

<CommandItemSettings

 

RefreshText="<%$ Resources:ADNCRM,ORDER_VIEW_REFRESH %>"

 

 

ShowExportToExcelButton='<%# (ShouldExport2XL) %>' />

is not possible in VS2008 for Radgrid (Error message in design mode)
I know we could do it in code behind but the price is writing lot of code.


Thanks
CS

2 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 26 Oct 2009, 08:47 AM
Hi Christian,

As you may know the binding expressions can only be set to bindable controls therefore you cannot set them to GridCommandItemSettings object as it is not bindable nor it is a control.

As to the resource expression I have attached a sample page which demonstrates the scenario in question.

Sincerely yours,
Rosen
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.
0
CSurieux
Top achievements
Rank 2
answered on 26 Oct 2009, 09:40 AM
Thank you for answering Rosen,

In fact my intention was more in asking for a way to use binding on some radgrid attributes.
This should be appreciated.

Concerning resources, I already uses it.

Thanks.

CS
Tags
Grid
Asked by
CSurieux
Top achievements
Rank 2
Answers by
Rosen
Telerik team
CSurieux
Top achievements
Rank 2
Share this question
or