Request to have some 'NoAddNewButton' in CommandItemSettings + other request

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

    Posted 21 Oct 2009 Link to this post


    Since start of RadControls for, this has not been improved, I don't know why.
    It seems we still have to work in codebehind to say I don't want the Add New button, but want the command Item without using a template necessitating a large rework (not skin support in CommandItemTemplate, etc) , isn't it ?

    More on command item: the various ShowExportToxxxButton are not recognised by intellisence(certainly a missing declaration) but this is not a show stopper.
    What I woul expect would be to be able to write code like this:

    <CommandItemSettings  RefreshText="<%$ Resources:ADNCRM,ORDER_VIEW_REFRESH %>"   
                                ShowExportToExcelButton='<%# (ShouldExport2XL) %>' /> 
    but Visual Studio states that this kind of binding is not ok for radGrid ?

    Last point, we should not have to add again 2 lines of javascript to fix that these Export buttons should not generate a callback but a real postback. Telerik has everything to do this in background.

    My pages are full of these 2 or 3 javascript patch, very uneasy to maintain!
    Eliminating all these small 'logical' patches would be a target for Telerik.

    Product is good but has to be improved for existing features also.


  2. Veli
    Veli avatar
    2002 posts

    Posted 26 Oct 2009 Link to this post

    Hello Christian,

    Thank you for the feedback. We are constantly trying to improve RadControls and any customer feedback we get is extremely valuable for us. We will take your suggestions into consideration.

    Let me share a few notes. The CommandItem feature of any GridTableView has been designed to be both as flexible as easy to use. While giving the developer the option of customizing the command item through the CommandItemTemplate, we also believe there could be a set of functionality that is appropriate to appear in the command item by default. Hence, we provided an insert button, a refresh button, and now, export buttons to for the 4 supported formats. Customizing this set, we believe, would not require too much effort from developer's side, but, also, please, note that providing an exhaustive set of properties for all the anticipated scenarios is simply not viable. Therefore, while being highly customizable, the CommandItem still requires some coding effort.

    As for the binding expressions, note, that when you try to run the page as described by you, you get the following exception:

    Parser Error Message: Databinding expressions are only supported on objects that have a DataBinding event. Telerik.Web.UI.GridCommandItemSettings does not have a DataBinding event.

    This exception message, we believe, is clear enough to explain the situation. Namely, GridCommandItemSettings is a settings store, and as being such, does not act as a binding container. Therefore, you cannot bind object properties to data values from RadGrid's data source. We believe that the object should be constrained to the scope of its current service requirements, and that making the object bindable, would be, at the least logically incorrect.

    Lastly, for the AJAX-disabling javascript functions. I believe you have a point here and this is really an area RadGrid could be improved. Our dev team has been notified about this suggestion and we will consider it for future implementation.

    In all cases, we highly value your constructive feedback and thank you for the active involvement.

    Sincerely yours,
    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. DevCraft R3 2016 release webinar banner
  4. CSurieux
    CSurieux avatar
    465 posts
    Member since:
    Jan 2007

    Posted 26 Oct 2009 Link to this post

    Thank you for answer Veli,

    I understand your points concerning the CommandItem, I think that I am not the only using command item without the 'Add new' button and I think the option to specify it directly would interest many people.

    In fact what is annoying is loosing the skin when using a commanditem template, it is uneasy to recreate the skin for the template.

    Binding issue is a MS conception weeakness...Telerik is not involved for sure

Back to Top