| telerik:RadComboBox ID="cmbCarrier" runat="server" DataSourceID="sqlCarrier" |
| DataTextField="Name" DataValueField="CARRIER_ID" AutoPostBack="True" Width="388px" CausesValidation="False"> |
| <CollapseAnimation Duration="200" Type="OutQuint" /> |
| </telerik:RadComboBox> |
| Select Contract: |
| <telerik:RadComboBox ID="cmbContract" runat="server" DataSourceID="sqlContracts" MarkFirstMatch="true" OnDataBound="cmbContract_DataBound" EnableLoadOnDemand="true" HighlightTemplatedItems="true" Width="420px" OnItemDataBound="cmbContract_ItemDataBound" OnSelectedIndexChanged="cmbContract_SelectedIndexChanged" CausesValidation="False" > |
| <HeaderTemplate> |
| <table style="width: 100%; text-align: left"> |
| <tr> |
| <td style="width: 125px;"> |
| Contract ID |
| </td> |
| <td style="width: 125px;"> |
| Carrier |
| </td> |
| <td style="width: 125px;"> |
| Description |
| </td> |
| </tr> |
| </table> |
| </HeaderTemplate> |
| <ItemTemplate> |
| <table style="width: 100%; text-align: left"> |
| <tr> |
| <td style="width: 125px;"> |
| <%# DataBinder.Eval(Container.DataItem, "CONTRACT_ID") %> |
| </td> |
| <td style="width: 125px;"> |
| <%# DataBinder.Eval(Container.DataItem, "Name") %> |
| </td> |
| <td style="width: 125px;"> |
| <%# DataBinder.Eval(Container.DataItem, "DESCRIPTION") %> |
| </td> |
| </tr> |
| </table> |
| </ItemTemplate> |
| <CollapseAnimation Duration="200" Type="OutQuint" /> |
| </telerik:RadComboBox> |
| protected void cmbContract_ItemDataBound(object sender, Telerik.Web.UI.RadComboBoxItemEventArgs e) |
| { |
| { |
| e.Item.Text = ((DataRowView)e.Item.DataItem)["CONTRACT_ID"].ToString() + "; " + ((DataRowView)e.Item.DataItem)["Name"].ToString() + "; " + ((DataRowView)e.Item.DataItem)["DESCRIPTION"].ToString(); |
| e.Item.Value = ((DataRowView)e.Item.DataItem)["CONTRACT_ID"].ToString() + "; " + ((DataRowView)e.Item.DataItem)["Name"].ToString() + "; " + ((DataRowView)e.Item.DataItem)["DESCRIPTION"].ToString(); |
| } |
| } |
How can i give the Script in RADAjaxManager like this for ScriptManager ??
It is possible for ScriptManager.
<asp:ScriptManager ID="Temp" runat="Server">
<
Scripts>
<asp:ScriptReference Path="~/JScript.js" />
</Scripts>
</
asp:ScriptManager>
| <telerik:RadGrid ID="rgrdTransits" runat="server" OnNeedDataSource="rgrdTransits_NeedDataSource" AutoGenerateColumns="false" Skin="Default2006"> |
| <MasterTableView DataKeyNames="Id" CommandItemDisplay="Top" EditMode="InPlace"> |
| <Columns> |
| <telerik:GridBoundColumn DataField="Id" DataType="System.Int32" HeaderText="Id" SortExpression="Id" UniqueName="Id" > |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="Nom" HeaderText="Nom" SortExpression="Nom" UniqueName="Nom"> |
| </telerik:GridBoundColumn> |
| <telerik:GridEditCommandColumn ButtonType="ImageButton"> |
| </telerik:GridEditCommandColumn> |
| </Columns> |
| </MasterTableView> |
| </telerik:RadGrid> |
I have a 3-tier hierarchical grid that looks like this:
Areas
Attributes
Details
In the Attributes detail table, there are three columns: Description, Grade and Comments. I am performing in-place editing and have chosen to use a GridDropDownColumn tied to a LinqDataSource to bring back a simple english-value pair list that fills the Grade column. This is causing a problem on the client that apparently stops the RadAjaxManager from working. If I take the dropdown out and put a regular bound control back in, all is well. Other custom columns seem to work ok.
Another problem I've run into is that the Description field is supposed to be a read-only field and is marked as such. There are times when hitting Update or Cancel that the grid forgets it's a read-only field and presents a textbox instead.
A third problem I'm having is that when I perform an action that fills the grid I run the following code to turn on edit mode by default in the Attributes detail table:
| Protected Sub grdRatingDetail_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles grdRatingDetail.PreRender |
| For Each nestedViewItem As GridNestedViewItem In grdRatingDetail.MasterTableView.GetItems(GridItemType.NestedView) |
| For Each newnest As GridTableView In nestedViewItem.NestedTableViews |
| For Each row As GridDataItem In newnest.Items |
| row.Edit = True |
| Next |
| Next |
| Next |
| End Sub |
<
Columns><telerik:GridButtonColumn Text="View" CommandName="View"></telerik:GridButtonColumn></Columns>
Thanks
Mark
I got an error message trying to install SP1, RadControls for ASP.NET AJAX, saying I must remove previous versions. So I sam trying to remove them.
In Vista control panel AddRemovePrograms I see:
RadCalendar v2.2
RadMenu v4.4
RadUpload v2.4
RadWindow v1.9
When I try to uninstall I get Error 1001.
How can I Uninstall these old Telerik programs?