Radcombo box - combo items list charcher issue

4 posts, 0 answers
  1. Akhtar
    Akhtar avatar
    2 posts
    Member since:
    Jul 2012

    Posted 30 Dec 2013 Link to this post

    I have radcombo box in radgrid, when I click on combo, it will show unicode characher, but its working fine in Firefox. In local version, it is working fine both in chrome and firefox. Please see the attached screenshot for reference. Thanks 
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 30 Dec 2013 Link to this post

    Hi Akhtar,

    Unfortunately I couldn't replicate the issue at my end. Please have a look into the sample code snippet which works fine at my end.

    ASPX:
    <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1" AutoGenerateColumns="false">
        <MasterTableView>
            <Columns>
                <telerik:GridBoundColumn DataField="OrderID" UniqueName="OrderID" HeaderText="OrderID">
                </telerik:GridBoundColumn>
                <telerik:GridTemplateColumn HeaderText="Combobox">
                    <ItemTemplate>
                        <telerik:RadComboBox ID="RadComboBox1" runat="server">
                            <Items>
                                <telerik:RadComboBoxItem Text="Item1" runat="server" />
                                <telerik:RadComboBoxItem Text="Item2" runat="server" />
                                <telerik:RadComboBoxItem Text="Item3" runat="server" />
                            </Items>
                        </telerik:RadComboBox>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>

    Please provide your code if it doesn't help.
    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Akhtar
    Akhtar avatar
    2 posts
    Member since:
    Jul 2012

    Posted 30 Dec 2013 Link to this post

    Hi,
    thanks for your reply. This is what I am using.
    <telerik:RadGrid AutoGenerateColumns="False" ID="rgData" AllowPaging="True" AllowFilteringByColumn="True"
                OnItemDataBound="rgData_ItemCommand" OnPreRender="rgData_PreRender" AllowSorting="True"
                AllowMultiRowSelection="True" runat="server" Width="65%" CellSpacing="0" GridLines="None"
                CssClass="selectedrow">
                <groupingsettings casesensitive="false" />
                <pagerstyle mode="NextPrevAndNumeric" alwaysvisible="true" position="TopAndBottom" />
                <mastertableview commanditemdisplay="Top" commanditemsettings-showaddnewrecordbutton="false"
                    datakeynames="AWBNo" showheaderswhennorecords="true" enablenorecordstemplate="true">
                        <Columns>
                            <telerik:GridClientSelectColumn HeaderStyle-Width="40" ItemStyle-HorizontalAlign="Left"
                                HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="40">
                            </telerik:GridClientSelectColumn>
                            <telerik:GridBoundColumn HeaderText="AWB No." DataField="AWBNo" UniqueName="AWBNo" SortExpression="AWBNo"
                                HeaderStyle-HorizontalAlign="Left" AllowFiltering="true" AutoPostBackOnFilter="true" FilterControlWidth="55"
                                CurrentFilterFunction="Contains" HeaderStyle-Width="10" ItemStyle-HorizontalAlign="Left" />
                                <telerik:GridTemplateColumn HeaderText="Status" UniqueName="Status" SortExpression="Status" FilterControlWidth="130"
                                ItemStyle-Width="20" HeaderStyle-HorizontalAlign="Left" AllowFiltering="true"
                                AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ItemStyle-HorizontalAlign="Left">
                                <ItemTemplate>
                                    <asp:HiddenField ID="hdAwb" runat="server" Value='<%#Eval("AWBNo") %>' />
                                    <asp:DropDownList Width="150px" ID="cmbStatus" runat="server">
                                    </asp:DropDownList>
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            </Columns>
                    </mastertableview>
                <clientsettings enablerowhoverstyle="false" allowkeyboardnavigation="true">
                        <Selecting AllowRowSelect="true" UseClientSelectColumnOnly="true" />
                    </clientsettings>
                <selecteditemstyle cssclass="SelectedItem"></selecteditemstyle>
            </telerik:RadGrid>
  5. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 02 Jan 2014 Link to this post

    Hello,

    I would like to clarify that we are not aware of such problem with RadComboBox control. In the provided code I am not able to find the RadComboBox declaration. Could you please explain how you add the RadComboBox control to the RadGrid?
     In the meantime I have prepared a very similar scenario with sample data that works fine at my side. Could you please try this approach and let me know how that worked at your side?
    //markup code
    <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="false" OnNeedDataSource="RadGrid1_NeedDataSource">
        <MasterTableView>
            <Columns>
               
                <telerik:GridTemplateColumn HeaderText="Combobox">
                    <ItemTemplate>
                        <telerik:RadComboBox ID="RadComboBox1" runat="server">
                            <Items>
                                <telerik:RadComboBoxItem Text="Item1" runat="server" />
                                <telerik:RadComboBoxItem Text="Item2" runat="server" />
                                <telerik:RadComboBoxItem Text="Item3" runat="server" />
                            </Items>
                        </telerik:RadComboBox>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>
    //code behind
    protected void RadGrid1_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
       {
           RadGrid1.DataSource = GeneratingTable();
       }
       private DataTable GeneratingTable()
       {
           DataTable table = new DataTable();
           table.Columns.Add("Column1");
           table.Columns.Add("Column2");
           table.Columns.Add("Column3");
           table.Columns.Add("Column4");
     
           for (int i = 0; i <= 19; i++)
           {
               table.Rows.Add("Col1Row" + i, "Col2Row" + i, "Col3Row" + i, "Col4Row" + i);
           }
     
           return table;
     
       }


    Regards,
    Boyan Dimitrov
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top