GridDropDownColumn disables in edit mode when ajax i activated

3 posts, 1 answers
  1. Robert
    Robert avatar
    8 posts
    Member since:
    Jun 2012

    Posted 12 Jun 2012 Link to this post

    Hi,
    I'm using a GridDropDownColumn in a RadGrid. It loads fine and works fine, until I add ajax on the grid.
    The reason for the ajax is that I need to reload the grid after a RadWindow has closed. I rebind the grid and need it to reload.

    The manager looks like this:
    <telerik:RadAjaxManager runat="server" ID="rdAjaxManager" OnAjaxRequest="rdAjaxManager_AjaxRequest">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="rdAjaxManager">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rdgdPartnerImportCode"/>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

    The text fields in edit mode work fine but the dropdown column is disabled. I can select the text in the box but not do anything else.
    I've been hitting a wall all day and could use some fresh ideas.
  2. Answer
    Richard
    Richard avatar
    479 posts
    Member since:
    Nov 2011

    Posted 13 Jun 2012 Link to this post

    Robert,

    I'd suggest that you take a close look at the Grid/Column Types online demo, and in particular, to the bottom RadGrid. It has a GridDropDownColumn for "TitleOfCourtesy", which works fine in edit mode using the following AJAX settings:

    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid2">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid2" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

    Hope this helps!
  3. Robert
    Robert avatar
    8 posts
    Member since:
    Jun 2012

    Posted 18 Jun 2012 Link to this post

    Hi,
    Thanks for the reply!
    Changing the DropDownControlType to DropDownList works. But the styling is whacked. The only thing showing is the items and the scrollbar. Background is transparent, no box around it and so on.

    I tried removing styles to see if the radcombobox version was a style problem but to no avail. I can't find anything messing with the DropDownList style. Is the GridDropDownColumn styling dropdownlist?

    Edit: Setting a default skin did nothing and removing all css didn't help either.
    Setting the BackColor, BorderColor, BorderStyle and BorderWidth in the ItemDataBound event does nothing.

    Edit2: hmm, added a DDL above the grid and it has the same style (or lack of).

    Edit3: Ok, I had a radformdecorator that messed it upp. When I added Select to ControlsToSkip, it rendered correctly.

    I never found out why the radcombobox didn't work but I'm leaving it now.Thank's for the help.
Back to Top