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 3 Answers, 1 is accepted
0
Shinu
Top achievements
Rank 2
answered on 31 Dec 2013, 04:28 AM
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:
Please provide your code if it doesn't help.
Thanks,
Shinu.
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.
0
Akhtar
Top achievements
Rank 1
answered on 31 Dec 2013, 04:35 AM
Hi,
thanks for your reply. This is what I am using.
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>0
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
//code behind
Regards,
Boyan Dimitrov
Telerik
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>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.