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

GridDropDownColumn disables in edit mode when ajax i activated

2 Answers 80 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 12 Jun 2012, 01:16 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Richard
Top achievements
Rank 1
answered on 13 Jun 2012, 09:08 PM
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!
0
Robert
Top achievements
Rank 1
answered on 18 Jun 2012, 07:38 AM
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.
Tags
Ajax
Asked by
Robert
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
Robert
Top achievements
Rank 1
Share this question
or