This might sound a weird issue but I doubt if it's a bug in the RadGrid control. You might want to reference my StackOverflow question I posted before posting on this forum.
So I am using a Telerik RadGrid control in my asp.net application and I have a GridTemplateColumn which has a CheckBox as an ItemTemplate. Now if I use the html input checkbox control then the RadGrid is rendered properly on the UI. However, if I use the asp.net server-side checkbox control then the data is rendered as it is without the table formatting. Please refer the question posted on StackOverflow as it has a detailed description and screenshots of the problem. Early response is highly appreciated.
I am using a form to insert data as well as to edit the data. Insertion of data is fine using telerik controls. But when I try to edit the data,
retrieving values from the database, I am facing problem, with RadComboBox.
My form sample is ::
<table> <tr> <td>Date of Birth : </td> <td> <telerik:RadDatePicker ID="dtp_DOB" runat="server"></telerik:RadDatePicker> </td> </tr> <tr> <td>Province : </td> <td> <telerik:RadComboBox ID="rcb_province" runat="server" Sort="Ascending" AutoPostBack="true" EmptyMessage="---SELECT---"></telerik:RadComboBox> </td> </tr></table>DataTable dt = GetPersonalDetails(p_id); if (dt != null && dt.Rows.Count > 0) { DataRow dr = dt.Rows[0]; string province_ = dr["province"].ToString(); if (rcb_province.FindItemByValue(province_) != null) { rcb_province.FindItemByValue(dr["province"].ToString()).Selected = true; } }Here I can get value in province_ from database but also if block is not executed.
I also tried ::
if (rcb_province.FindItemByValue(dr["province"].ToString()) != null) { rcb_province.FindItemByValue(dr["province"].ToString()).Selected = true; }
rcb_province.Text = dr["province"].ToString();I have a treeview with an expand mode of ServerSideCallBack. I would like to be able to select a node by value and expanding the path via client-side. I'm was trying to get all of the parent nodes and call the expand() method down to the node, but after the first expand it told me "could not call expand of null." Could you help me with this problem?
var count = 0;
$.each(value.list, function (otherkey, othervalue) {
count = count + 1;
var tree = $find("pagesLeftNav_treeView");
var node = tree.findNodeByValue(othervalue.pageid);
if (count != value.list.length) {
node.expand();
}
})

A new feature implemented in ASP.NET 4.0 is the possibility to control the way that controls’ ClientID is generated. At present, RadControls for ASP.NET AJAX expect the ClientID’s of their child controls to be generated by the default method (AutoID). Because of that, if ClientIDMode is set to different method of generation you can experience various problems with RadControls, for example not working dialogs for RadEditor.
Here are some of the errors that you could experience when the ClientIDMode is set to Static:
All RadControls: Invalid JSON primitive:..
RadEditor's dialogs : Error: 'null' is null or not an object
RadEditor's dialogs : Sys.ArgumentNullException: Dialog Parameters for the FindAndReplace dialog do not exist Parameter name: dialogueName.
RadFileExplorer: might not display the files in the folder
RadGrid : calling get_masterTableView() returns null
"Microsoft JScript runtime error: 'get_postBackElement().id' is null or not an object"
This problem is already added to our TODO list and it should be fixed for RadControls for ASP.NET AJAX Q2 2010. For the time being, we recommend to use ClientIDMode="AutoID" or if you have to use different method you should set the ClientIDMode property’s value explicitly to AutoID to the specific RadControl.
Additional information regarding this new .NET4.0 feature is available in the following article:
ASP.NET 4.0 ClientID Overview
Please note that Microsoft does not recommend setting ClientIDMode="Static" on pages which do contain dynamic controls.
Best regards,
The Telerik team
Default.aspx<telerik:RadAjaxManager ID="radManager" runat="server" /><telerik:RadTabStrip ID="rtsSheet" runat="server" MultiPageID="radMultiPage" CausesValidation="false"> <Tabs> <telerik:RadTab PageViewID="rpvTradeName" ToolTip="<%$ Resources: General, TradeNameTitle %>"> <TabTemplate> <asp:Literal ID="ltrlTradeName" runat="server" Text="<%$ Resources: General, TradeName %>" /> </TabTemplate> </telerik:RadTab> <telerik:RadTab PageViewID="rpvViewAll" ToolTip="<%$ Resources: General, ViewAll %>"> <TabTemplate> <asp:Literal ID="ltrlViewAll" runat="server" Text="<%$ Resources: General, ViewAll %>" /> </TabTemplate> </telerik:RadTab> </Tabs></telerik:RadTabStrip><telerik:RadMultiPage Width="900" ID="radMultiPage" runat="server" SelectedIndex="0"> <telerik:RadPageView ID="rpvTradeName" runat="server"> <MyUserControl:TradeName ID="ucTradeName" runat="server" /> </telerik:RadPageView> <telerik:RadPageView ID="rpvViewAll" runat="server"> <MyUserControl:ViewAll ID="ucViewAll" runat="server" /> </telerik:RadPageView> </telerik:RadMultiPage>TradeName.ascx <telerik:RadAjaxManagerProxy ID="radManager" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="rgTradeName"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="rgTradeName" />
<telerik:AjaxUpdatedControl ControlID="rgvaTradeName" />
</UpdatedControls> </telerik:AjaxSetting> </AjaxSettings></telerik:RadAjaxManagerProxy><telerik:RadGrid runat="server" AllowSorting="true" ID="rgTradeName" AutoGenerateColumns="false" OnNeedDataSource="SheetNeedDataSource" OnItemCommand="SheetItemCommand" OnDeleteCommand="SheetDeleteCommand" AllowPaging="true" PageSize="10" /> ViewAll.ascx <telerik:RadGrid ID="rgvaTradeName" runat="server" />I'm exporting a grid to Excel (HTML format) and i Need to have more control over the borders.
For example If I have columns "A","B", and "C" and I do not want to see the B's right border, which I guess you could also assume was C's left border.
How can I, upon exporting to excel from the rad grid, set this properly.
I've created the desired look in EXCL and attached a screen shot.
Thanks,


I'm trying to write a grid and form where the form will display the data for the line selected on the grid.
Grid and DS
<telerik:RadGrid ID="GridPeople" runat="server" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DataSourceID="SQLDSPeople" GroupPanelPosition="Top"> <ClientSettings EnablePostBackOnRowClick="true"> <Selecting AllowRowSelect="True" /> </ClientSettings> <MasterTableView DataSourceID="SQLDSPeople"> <Columns> <telerik:GridBoundColumn DataField="person_ref" visible="false" UniqueName="person_ref" /> <telerik:GridBoundColumn DataField="forename1" FilterControlAltText="Filter" HeaderText="Forename" UniqueName="forename" /> <telerik:GridBoundColumn DataField="surname" FilterControlAltText="Filter" HeaderText="Surname" UniqueName="surname" /> </Columns> </MasterTableView></telerik:RadGrid><asp:SqlDataSource ID="SQLDSPeople" runat="server" ProviderName="System.Data.SqlClient" SelectCommand="SELECT [person_ref], [forename1 ], [surname] FROM [PERSON] " />With just this, everything works find, I can select different rows and the row highlights and the code behind event gets called.
Here's the dataform and its DS.
<telerik:RadDataForm ID="FormPerson" runat="server" DataKeyNames="person_ref" DataSourceID="SQLDSPerson"> <LayoutTemplate> <div id="itemPlaceholder" runat="server"></div> </LayoutTemplate> <ItemTemplate> <fieldset> <div> <asp:Label runat="server" ID="FirstNameLabel2" Text="First Name:"></asp:Label> <telerik:RadTextBox runat="server" ID="FirstNameTextBox2" Text='<%# Bind("forename1")%>' MaxLength="20" /> </div> <div> <asp:Label runat="server" ID="LastNameLabel2" Text="Last Name:"></asp:Label> <telerik:RadTextBox runat="server" ID="LastNameTextBox2" Text='<%# Bind("surname")%>' MaxLength="20" /> </div> <div> <telerik:RadButton ID="ButtonUpdate" Text="Update" runat="server" CommandName="Update" /> </div> </fieldset> </ItemTemplate></telerik:RadDataForm> <asp:SqlDataSource ID="SQLDSPerson" runat="server" ProviderName="System.Data.SqlClient" SelectCommand="SELECT [person_ref], [forename1], [surname] FROM [PERSON] WHERE ([person_ref] = @person_ref)" UpdateCommand="UPDATE [PERSON] SET [forename1] = @forename1, [surname] = @surname WHERE [person_ref] = @person_ref"> <SelectParameters> <asp:ControlParameter ControlID="GridPeople" Name="person_ref" PropertyName="SelectedValue" Type="String" /> </SelectParameters> <UpdateParameters> <asp:Parameter Name="forename1" Type="String" /> <asp:Parameter Name="surname" Type="String" /> <asp:Parameter Name="person_ref" Type="String" /> </UpdateParameters> </asp:SqlDataSource>As soon as I add this, the grid select row stops working and no events are fired. Also, the grid doesn't appear at all.
Here's the code behind bits.
Private Sub Page_Init1(sender As Object, e As EventArgs) Handles Me.Init SQLDSPeople.ConnectionString = MyConnStr SQLDSPerson.ConnectionString = MyConnStrEnd SubProtected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Not IsPostBack Then GridPeople.SelectedIndexes.Add(0) End IfEnd SubPrivate Sub GridPeople_SelectedIndexChanged(sender As Object, e As EventArgs) Handles GridPeople.SelectedIndexChanged FormPerson.Rebind()End SubPrivate Sub FormPerson_ItemUpdated(sender As Object, e As Telerik.Web.UI.RadDataFormUpdatedEventArgs) Handles FormPerson.ItemUpdated GridPeople.Rebind()End SubAm I doing something wrong in the RadDataForm ?
