or
| DataTable ds = new DataTable(); |
| DataColumn dc1 = new DataColumn("Column 1"); |
| DataColumn dc2 = new DataColumn("Column 2"); |
| ds.Columns.Add(dc1); |
| ds.Columns.Add(dc2); |
| for (int i = 0; i < Convert.ToInt16(NoOfRows); i++) |
| { |
| DataRow dr = ds.NewRow(); |
| dr["Column 1"] = i.ToString + " Level"; |
| ds.Rows.Add(dr); |
| } |
| RadGrid1.DataSource = ds; |
| RadGrid1.DataBind(); |
| <div id="replyPanel"> |
| <asp:Button ID="btnPostReplyModal" runat="server" Style="display:none;" /> |
| <asp:Panel ID="pnlPostReply" runat="server" Style="display:none;"> |
| <div class="alert"> |
| <div class="controlSection"> |
| <div class="sectionHeading">Post New Reply</div> |
| <div style="margin-top:5px;"> |
| <b>Title:</b> |
| <asp:TextBox ID="txtReplyTitle" runat="server" Width="50%" /> |
| </div> |
| <div style="margin-top:5px;"> |
| <telerik:RadEditor ID="radReplyText" runat="server" Height="300px" Width="100%" ToolsFile="~/EditorToolbars/Simple.xml" EditModes="Design" /> |
| </div> |
| <div style="margin-top:5px;"> |
| <asp:CheckBox ID="chkEmailReply" runat="server" Text="Email" /> |
| </div> |
| <div style="margin-top:5px;"> |
| <asp:Button ID="btnPostReplyOk" runat="server" SkinID="OkLarge" ToolTip="Post Reply" /> |
| <asp:Button ID="btnPostReplyCancel" runat="server" SkinID="CancelSmall" ToolTip="Cancel Reply" /> |
| </div> |
| </div> |
| </div> |
| </asp:Panel> |
| <cc1:ModalPopupExtender ID="mpePostReply" runat="server" TargetControlID="btnPostReplyModal" PopupControlID="pnlPostReply" /> |
| </div> |

I set up
<
Resizing AllowColumnResize="True" />
But after dragging column,The page will pull a long.
How to solve?
I have a grid with a GridDropDownColumn. In normal browse mode the data wont display, even though there are rows in the grid, the column GridDropDownColumn doesnt show the data. If I select edit, the drop down appears with the data. Ive been trying to find a solution to this for quite a while, even telerik support cant help me. Can anyone help ? Heres the code for the grid.
| <telerik:RadGrid ID="RadGridSecondaryCategories" runat="server" OnNeedDataSource="RadGridSecondaryCategories_NeedDataSource" |
| AutoGenerateEditColumn="True" AutoGenerateDeleteColumn="True" AllowAutomaticInserts="False" |
| AllowAutomaticDeletes="False" GridLines="None" |
| AllowAutomaticUpdates="False" AllowSorting="True" |
| Skin="Vista" AllowMultiRowEdit="False" |
| onitemcommand="RadGridSecondaryCategories_ItemCommand" |
| onitemdatabound="RadGridSecondaryCategories_ItemDataBound" |
| ondeletecommand="RadGridSecondaryCategories_DeleteCommand" |
| oninsertcommand="RadGridSecondaryCategories_InsertCommand" |
| onupdatecommand="RadGridSecondaryCategories_UpdateCommand" PageSize="5"> |
| <MasterTableView CommandItemDisplay="Top" AutoGenerateColumns="False" OverrideDataSourceControlSorting="True" |
| EditMode="InPlace" UseAllDataFields="True" > |
| <RowIndicatorColumn> |
| <HeaderStyle Width="20px" /> |
| </RowIndicatorColumn> |
| <ExpandCollapseColumn> |
| <HeaderStyle Width="20px" /> |
| </ExpandCollapseColumn> |
| <Columns> |
| <telerik:GridBoundColumn DataField="ID" DataType="System.Int32" HeaderText="ID" |
| ReadOnly="true" Visible="false" SortExpression="ID" UniqueName="ID"> |
| </telerik:GridBoundColumn> |
| <telerik:GridDropDownColumn DataField="Category" |
| ListTextField="Category" ListValueField="Category" HeaderText="Category" UniqueName="SecondaryCategory" Display="True"> |
| </telerik:GridDropDownColumn> |
| </Columns> |
| </MasterTableView> |
| <FilterMenu EnableTheming="True"> |
| <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> |
| </FilterMenu> |
| </telerik:RadGrid> |