| <telerik:RadMenu ID="RadMenu1" Width="220px" runat="server" DataSourceID="ModulesSqlDataSource" |
| DataTextField="MOD_DET_Name" DataValueField="MOD_DET_ID" Flow="Vertical" Font-Names="Trebuchet MS" |
| Font-Size="15px" OnItemClick="RadMenu1_ItemClick" Skin="Web20"> |
| </telerik:RadMenu> |
| <asp:SqlDataSource ID="ModulesSqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:demoDMSConnectionString %>" |
| SelectCommand="Usp_Dms_GetModulesForDMSApplication" SelectCommandType="StoredProcedure"> |
| </asp:SqlDataSource> |
| protected void RadMenu1_ItemClick(object sender, Telerik.Web.UI.RadMenuEventArgs e) |
| { |
| if (e.Item.Text == "Document Management") |
| { |
| Response.Redirect("~/DocumentManagementSystem.aspx"); |
| } |
| else if (e.Item.Text == "Folder Permissions") |
| { |
| Response.Redirect("~/FolderPermissions.aspx"); |
| } |
| else if (e.Item.Text == "FTP Management") |
| { |
| Response.Redirect("~/FTPManagement.aspx"); |
| } |
| else |
| { |
| Response.Redirect("~/RestoreDocuments.aspx"); |
| } |
| } |
I am new in using telerik rad Grid,I have requirement like this
Like this ,The above one is existing "Rad Grid" having two columns , I want to know In Column2 which check box is checked.,using the allowMultipleRowSelection="true"..,how to find that a particular Check box is checked or Not. Eg:- .Net Row checked Box is checked just assume
how to find that particular check-box of that .net Row,In
Insert And Update ,But it's inside of other grid not an Independent grid. Parent Grid Insert Or Update I need to Find out that particular one.
please give reply...if any one Knows.
<telerik:RadGrid ID="RgList1" runat="server" AutoGenerateColumns="false"
ShowHeader="false" Width="148px" >
<MasterTableView AutoGenerateColumns="false" >
<Columns>
<telerik:GridTemplateColumn >
<ItemTemplate>
<%# Eval("BankTypeName")%>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn UniqueName="chkBankList1">
<ItemTemplate>
<asp:CheckBox ID="chkBankTypeName" runat="server" />
</ItemTemplate>
</Columns>
</MasterTableView>
<ClientSettings AllowColumnsReorder="true" EnableRowHoverStyle="true" >
<Selecting AllowRowSelect="true"/>
</ClientSettings>
</telerik:RadGrid>
We recently upgraded our controls to the Q1 2013 SP2 assembly from 2011 0519. In making this change, we have noticed some significant changes to the way that some of the controls function.
• One of those issues is that the RadGrid control no longer accepts null or DBNull.Value in the DataFields. Changing the underlying data sets to return non-null values is not an immediate option for us since our solution is simply too large to identify all the places where that could be happening. We have been starting the process of re-working some of our pages to do this, but we have several hundred pages/user controls that need to be checked. In the meantime we need to find a work around to make the controls work similarly to the way they used to.
• The other issue is that the Visible=false property on a bound column is no longer maintaining ViewState properly. We know that we can change the Visible to Display and effectively get the old behavior, but there are many places where this was used.
We’ve been seeing other issues, but have not determined if they are due to a change in the Telerik controls or due to a recent upgrade to the latest jQuery library. Can you please at least help us to resolve these two issues?
Kindly let me know if you need any additional information.
Thanks.
protected void RadGrid1_DetailTableDataBind(object sender, GridDetailTableDataBindEventArgs e) { e.DetailTableView.DataSource = GetPlans(); }<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="EditSCAC.ascx.cs" Inherits="EditSCAC" %><telerik:RadAjaxManager ID="radAjaxMgr" runat="server" UpdatePanelsRenderMode="Inline"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="scacGrid"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="scacTypeDDL" LoadingPanelID="RadAjaxLoadingPanel1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings></telerik:RadAjaxManager><div> <table id="scacEditTable"> <tr> <td> <table> <tr> <td> <asp:Label runat="server">SCAC:</asp:Label> </td> <td> <asp:TextBox ID="scacTB" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.SCAC") %>'></asp:TextBox> </td> <td> <asp:Label runat="server">SCAC DESCRIPTION:</asp:Label> </td> <td> <asp:TextBox ID="scacDescTB" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.SCAC_DESC") %>'></asp:TextBox> </td> </tr> <tr> <td> <asp:Label runat="server">SCAC PHONE:</asp:Label> </td> <td> <asp:TextBox ID="scaPhoneTB" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.SCAC_PHONE") %>'></asp:TextBox> </td> <td> <asp:Label runat="server">SCAC TYPE:</asp:Label> </td> <td> <telerik:RadComboBox ID="scacTypeDDL" AutoPostBack="True" runat="server" EmptyMessage="Please choose a type..."> </telerik:RadComboBox> </td> <td> <asp:Label runat="server">CONTACT:</asp:Label> </td> <td> <telerik:RadComboBox ID="contactDDL" AutoPostBack="True" runat="server" EmptyMessage="Please choose a contact..."> </telerik:RadComboBox> </td> </tr> <tr> <td colspan="2"> <asp:Button ID="btnUpdate" Text="Update" runat="server" CommandName="Update" Visible='<%# !(DataItem is GridInsertionObject) %>' CausesValidation="true" ValidationGroup="FormValidationGroup"></asp:Button> <asp:Button ID="btnInsert" Text="Insert" runat="server" CommandName="PerformInsert" Visible='<%# (DataItem is GridInsertionObject) %>' CausesValidation="true" ValidationGroup="FormValidationGroup"> </asp:Button> <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel"></asp:Button> </td> </tr> </table> </td> </tr> </table></div>using System;using System.Collections.Generic;using System.Data;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using DataAccess;using Telerik.Web.UI;namespace IRRIS.Site.DTTS{ public partial class EditSCAC : System.Web.UI.UserControl { public object DataItem { get; set; } protected void Page_Load(object sender, EventArgs e) { Populate_SCACDDL(); Populate_ContactsDDL(); } protected void Populate_SCACDDL() { var ds = new DataSet(); var factory = new QueryFactory(new Configuration().DataConfigurationFile); var query = factory.GetQuery("P_GET_SCAC_TYPES"); query.Fill(ds); var list = new List<string>(); var dt = ds.Tables[0]; list = (from dr in dt.AsEnumerable() select dr.Field<string>("LUVALUE")).ToList<string>(); scacTypeDDL.DataTextField = ds.Tables[0].Columns["LUDESCRIPTION"].ToString(); scacTypeDDL.DataValueField = ds.Tables[0].Columns[1].ToString(); scacTypeDDL.DataSource = ds.Tables[0]; var scacTypeDdlValue = String.Empty; if (DataItem != null) { scacTypeDdlValue = DataBinder.Eval(DataItem, "SCAC_TYPE").ToString(); if (!list.Contains(scacTypeDdlValue)) { scacTypeDDL.SelectedIndex = -1; } else { scacTypeDDL.SelectedValue = scacTypeDdlValue; } } } protected void Populate_ContactsDDL() { var ds = new DataSet(); var factory = new QueryFactory(new Configuration().DataConfigurationFile); var query = factory.GetQuery("P_GET_ALL_CONTACTS"); query.Fill(ds); var list = new List<string>(); var dt = ds.Tables[0]; list = (from dr in dt.AsEnumerable() select Convert.ToString(dr.Field<decimal>("CONTACT_ID"))).ToList<string>(); contactDDL.DataTextField = ds.Tables[0].Columns["CONTACT_ORG"].ToString(); contactDDL.DataValueField = ds.Tables[0].Columns[0].ToString(); contactDDL.DataSource = ds.Tables[0]; var contactDdlValue = String.Empty; if (DataItem != null) { contactDdlValue = DataBinder.Eval(DataItem, "SCAC_CONTACT_ID").ToString(); if (!list.Contains(contactDdlValue)) { contactDDL.SelectedIndex = -1; } else { contactDDL.SelectedValue = contactDdlValue; } } } }}