Why RadGrid does'nt supports databinding expressions

3 posts, 0 answers
  1. CSurieux
    CSurieux avatar
    465 posts
    Member since:
    Jan 2007

    Posted 21 Oct 2009 Link to this post

    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. Rosen
    Admin
    Rosen avatar
    3234 posts

    Posted 26 Oct 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. CSurieux
    CSurieux avatar
    465 posts
    Member since:
    Jan 2007

    Posted 26 Oct 2009 Link to this post

    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
Back to Top