I have a requirement to have a Grid of 20+ Configuration items with a check box to show if each item is enabled in our app. A user has to click a global "edit" button held in the masterpage to enable the grid for editing and then click a global "save" icon, also in the master page which would then write the data back to the database. I've spent the last 8 hours searching for something similar only to be confounded with template column issues where i cant disable them on page load and gridcheckcolumns that i cant enable on clicking the "edit" button.
Please can somebody point be in the right direction
Thanks
I am binding data to a RadGrid via the radclientdatasource, itself via a web api giving a JSON response, the grid binds fine and I get all the columns I need. The issue is with the date columns appearing as 2012-03-01T00:00:00 despite having the following configured
<
telerik:GridDateTimeColumn
FilterControlWidth
=
"95px"
DataField
=
"PlannedDate"
UniqueName
=
"PlannedDate"
HeaderText
=
"Planned Date"
PickerType
=
"DatePicker"
EnableRangeFiltering
=
"true"
DataFormatString
=
"{0:yyyy-MM-dd}"
DataType
=
"System.DateTime"
FilterDateFormat
=
"{0:yyyy-MM-dd}"
MinDate
=
"2012-01-01"
SortedBackColor
=
"#CCCCCC"
HtmlEncode
=
"false"
EditDataFormatString
=
"{0:yyyy-MM-dd}"
>
</
telerik:GridDateTimeColumn
>​
Have also tried GridBoundColumn. My JSON is coming through as "PlannedDate":"2012-03-01T00:00:00"
In addition to the display issue the column is not respecting less than / greater than date filters which makes me suspect it it just being treated as text. Any thoughts please ?
Hello,
I need to add programmatically Custom Attributes in RadComboBox
i get an error on click button to get a value for custom Attributes
this.LBL_MOVIE.Text = this.PCB_MOVIE.SelectedItem.Attributes["movie_p"];
Cause this.PCB_MOVIE.SelectedIndex is equals to -1
protected void PCB_MOVIE_ItemDataBound(object sender, RadComboBoxItemEventArgs e)
{
e.Item.Attributes.Add("movie_p","rocky");
}
On the admin form how does one set the date format? The US date format is about the stupidest date format and illogical of all and yet it seems to be the default everywhere.
I want my dates formatted as dd/MM/yyyy not MM/dd/yyyy
Regards
Jon
​
Hi,
A few days my application began to show the following message: Thank you for using the Trial version of RadControls for ASP.NET Ajax ....
As if I've been using a trial version.
But I have a license.
Anyone know how to resolve this problem ????
I have attached a picture with the message.​
Hi Team,
In the RadGrid, I have to do drag and drop option as well as edit the row using batch edit mode. If I set the clientIDMode = "Static" while click on the edit buttonI can see the Update and Cancel button. But I cann't do drag and drop. So I changed the ClientIDMode="AutoID" now drag and drop is working fine but in edit mode the Update and Cancel button in the batch it is not displaying.
Please let me know how to resolve this issue.
Regards,
Rajesh
<telerik:RadGrid ID="Parts" runat="server" ClientIDMode="AutoID" AllowPaging="True" AllowSorting="True" ClientSettings-AllowAutoScrollOnDragDrop="true"
AutoGenerateColumns="False" GridLines="None" ShowStatusBar="True" CssClass="Parts" ClientSettings-AllowDragToGroup="true" ClientSettings-AllowRowsDragDrop="true">
<ClientSettings AllowRowsDragDrop="True" AllowColumnsReorder="true" ReorderColumnsOnClient="true">
<Selecting AllowRowSelect="True" EnableDragToSelectRows="false"></Selecting>
<ClientEvents OnRowDropping="onRowDropping"></ClientEvents>
<Scrolling AllowScroll="true" UseStaticHeaders="true"></Scrolling>
</ClientSettings>
<MasterTableView Name="PartsTableView" DataKeyNames="InventoryID" AllowSorting="True" NoDetailRecordsText="No Items" HierarchyLoadMode="ServerBind"
NoMasterRecordsText="No Items Added" CommandItemDisplay="Bottom" EditMode="Batch">
<CommandItemSettings ShowAddNewRecordButton="false" />
<BatchEditingSettings EditType="Cell" />
<DetailTables>
<telerik:GridTableView Name="ComponentDetails" Caption="Component Details" DataKeyNames="InventoryID"
runat="server">
<ParentTableRelation>
<telerik:GridRelationFields DetailKeyField="ParentID" MasterKeyField="InventoryID" />
</ParentTableRelation>
<Columns>
<telerik:GridBoundColumn DataField="ParentID" Display="false" UniqueName="ParentID" />
<telerik:GridBoundColumn DataField="InventoryID" HeaderText="InventoryID" ReadOnly="true"
UniqueName="InventoryID" />
<telerik:GridBoundColumn DataField="FormNumber" HeaderText="Form #" UniqueName="FormNumber" />
<telerik:GridBoundColumn DataField="Description" HeaderText="Description" ReadOnly="true"
UniqueName="Description" Display="True" />
</Columns>
</telerik:GridTableView>
</DetailTables>
<Columns>
<telerik:GridTemplateColumn UniqueName="ThumbNail">
<ItemTemplate>
<asp:Image ID="imgThumbNail" runat="server" ImageUrl='<%#Eval("ImageUrl")%>' />
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataField="InventoryID" UniqueName="FormNumber" Display="false" />
<telerik:GridBoundColumn DataField="Text" ItemStyle-Width="150px" HeaderText="Product Code" />
<telerik:GridBoundColumn DataField="Description" Display="false" />
<telerik:GridTemplateColumn UniqueName="Description" HeaderText="Title">
<ItemTemplate>
<asp:Label ID="lblDescription" runat="server" Text='<%#Eval("Description") %>'>
</asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="txtDescription" runat="server" Text='<%#Eval("Description") %>'>
</asp:TextBox>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataField="Type" Display="false" />
<telerik:GridEditCommandColumn ButtonType="ImageButton" EditText="Edit" UniqueName="EditCommandColumn">
</telerik:GridEditCommandColumn>
<telerik:GridButtonColumn ButtonType="ImageButton"
CommandName="DeleteInventory" Text="Remove" UniqueName="Delete">
<ItemStyle HorizontalAlign="Center" CssClass="MyImageButton"></ItemStyle>
<HeaderStyle ></HeaderStyle>
</telerik:GridButtonColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
<asp:XmlDataSource ID="XMLBookBuilderSource" runat="server" EnableCaching="false">
</asp:XmlDataSource>
<telerik:GridTextBoxColumnEditor ID="GridTextBoxEditor" runat="server" TextBoxStyle-Width="230px"></telerik:GridTextBoxColumnEditor>