Welcome Guest Search | Active Topics | Sign In | Register

EO Grid with Ajax Toolkit ComboBox Options
DiscoverSoft
Posted: Monday, August 3, 2015 12:20:18 PM
Rank: Advanced Member
Groups: Member

Joined: 2/27/2010
Posts: 69
I love your gird and use it whenever possible. But I really need an autocomplete combobox for one of the cells. Since your combobox does not seem to offer this functionality, I've been trying to use the Ajax ComboBox. I can get this to work just fine using the standard asp.net gridview, but it does not seem to work within your grid's customcolumn. There is no drop down list nor auto suggest of items. Any help would be appreciated.

<eo:CustomColumn AllowResize="False" HeaderText="Asset#" Name="AssetNum" Width="90" DataField="AssetNum">
<EditorTemplate>
<ajax:ComboBox ID="ddlAssetsWas" runat="server" AutoCompleteMode="Suggest" DataSourceID="SqlDataAssets" DataTextField="AssetDesc" DataValueField="AssetNum" MaxLength="0" style="display: inline;" Width="66px">
</ajax:ComboBox>
</EditorTemplate>
</eo:CustomColumn>
eo_support
Posted: Wednesday, August 5, 2015 5:37:56 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

We have looked into this and there doesn't appear to be a way to make it work. The root of the problem is ajax:ComboBox can't be placed inside an absolute positioned element. To see the problem, you can try the following code:

Code: HTML/ASPX
<div style="position:absolute;left:10px;top:200px;">
    <ajax:ComboBox ID="ComboBox2" runat="server">
        <asp:ListItem Text="Zero" Value="0" />
        <asp:ListItem Text="One" Value="1" />
        <asp:ListItem Text="Two" Value="2" />
    </ajax:ComboBox>
</div>


If you try the above code and open the drop down, you will notice that the drop down is displayed at the wrong position. This is because the AJAX ComboBox failed to account the parent DIV position. In some cases, the drop down box will be completely out of the view due to this location error. This is the case for the CustomColumn for the Grid. Unfortunately there is no way that we can make the ajax:ComboBox to adjust for the parent element position. So there doesn't appear to be anyway to make it work. Sorry about it!

Thanks!





You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.