Find Control In CommandItemTemplate For RadGrid?
Sep 9, 2010
I'm using RadGrid from Telerik with three LinkButton controls in CommandItem , and i want to hide or show them using switch statement at code behind.
<LinkButton runat="server" ID="approveAllLink" Text="Approve All" >
<LinkButton runat="server" ID="approveLink" Text="Approve" >
<LinkButton runat="server" ID="rejectLink" Text="Reject" >
</CommandItemTemplate> View 2 Replies
Sep 22, 2010
how to find html anchor control in telerik:radgrid ?
View 1 Replies
Aug 27, 2010
I would like to add and Image along with the HeaderText in RadGrid. I can able to do this in ItemBound event. But is there any possible ways to do the same in page prerender event?
View 2 Replies
Aug 16, 2010
Mar 8, 2011
I want to change the text of the user name text box which is inside a log in view on selected index chaged event of a drop down list.
this is my code: [Code].... but both ddl and tb are null Anyone knows how can I find the controls in code behind? View 1 Replies
Apr 15, 2010
i have problem in using ajax control , till morning it everything was file , now when i add any new ajax control it shows the error Control canot be created because visual studio cannot find the control's type in the control assembly then if i press OK it says The operation could not be completed . invalid FORMATETC structure
View 5 Replies
Dec 1, 2010
I'm trying to find a TextBox in the code-behind page, it's inside a nested master page and also then inside another control container (it's inside ctrlCheckoutShippingAddress also) .
I've tried this: [Code].... [Code].... View 2 Replies
Mar 23, 2010
document.getElementById('<%=DetailsView1.FindControl("TextBox1").ClientID%>'); View 3 Replies
Jun 14, 2012
<asp:Content ID="Content3" runat="server" contentplaceholderid="ContentPlaceHolder3">
<asp:LoginView ID="LoginView1" runat="server"> <AnonymousTemplate> <asp:Login ID="Login1" runat="server" BackColor="#FFFBD6" BorderColor="#FFDFAD" BorderPadding="4" BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#333333" onauthenticate="Login1_Authenticate1" [code]..... i have used an login control for the users who have not logged in and defined login verification method on the click event of the button but while excuting i do get an error Error 1 The name 'Login1' does not exist in the current context View 1 Replies
Mar 15, 2010
i have a gridview control i added checkbox contrl dynamically but i am not getiing the reference of checkbox in button clilck event here is my code Gridvew
[Code].... .vb code [Code].... View 6 Replies
Nov 10, 2010
I have on dropdown that show hide user control. In the user control i have Ok and Cancel button.
When the dropdown change i want to apply ValidationGroup on the Ok button that is inside UserControl. View 2 Replies
Apr 23, 2010
I am developing a asp database that is linked with SQL Database. When I am tryind to Find Control (GridView2) inside of another control (Panel2) that sits in Item Template for DetailsView, I got an error message:
Object reference not set to an instance of an object. <asp:DetailsView ID="DetailsView1" HeaderText="Details" HeaderStyle-CssClass="labelheadRight" runat="server" AutoGenerateRows="False" DataKeyNames="pk_BackupDriveSerial" DataSourceID="SqlDataSource1" GridLines="None" CssClass="Detailsview" AllowPaging="True" OnDataBinding="DetailsView1_OnDataBind" OnItemInserted="DetailsView1_OnInsert" OnItemDeleted="DetailsView1_OnDelete" > <Fields> <asp:BoundField DataField="pk_BackupDriveSerial" ControlStyle-CssClass="dropdownsize" HeaderText="Serial No" ReadOnly="True" SortExpression="pk_BackupDriveSerial" > <ControlStyle CssClass="dropdownsize"></ControlStyle> </asp:BoundField> <asp:BoundField DataField="BackupDriveMake" HeaderText="Make" ControlStyle-CssClass="dropdownsize" SortExpression="BackupDriveMake" > <ControlStyle CssClass="dropdownsize"></ControlStyle> </asp:BoundField> <asp:BoundField DataField="BackupDriveModel" HeaderText="Model" ControlStyle-CssClass="dropdownsize" SortExpression="BackupDriveModel" > <ControlStyle CssClass="dropdownsize"></ControlStyle> </asp:BoundField> <asp:TemplateField HeaderText="Type" SortExpression="fkid_BackupDriveTypes" ControlStyle-CssClass="dropdownsize" Visible="False"> <EditItemTemplate> <asp:Label ID="Label6" runat="server" Text='<%# Bind("BackupDriveMake") %>' Width="145px"></asp:Label> <br /> <asp:TextBox CssClass="dropdownsize" AutoPostBack="true" ID="DropDownList5" runat="server" Text='<%# Bind("BackupDriveModel") %>' ></asp:TextBox> <br /> <asp:Panel ID="Panel2" runat="server" CssClass="dropdownpanel" > <asp:GridView CssClass="dropdowngrid" ID="GridView2" runat="server" AutoGenerateColumns="False" CellPadding="4" DataKeyNames="pkid_BackupDriveTypes" SelectedValue='<%# Bind("fkid_BackupDriveTypes") %>' DataSourceID="SqlDataSource3" ForeColor="#333333" GridLines="None" OnSelectedIndexChanged="GridView2_OnChange"> <RowStyle BackColor="#EFF3FB" /> <Columns> <asp:BoundField DataField="pkid_BackupDriveTypes" HeaderText="pkid_BackupDriveTypes" InsertVisible="False" ReadOnly="True" SortExpression="pkid_BackupDriveTypes" Visible="False" /> <asp:BoundField DataField="BackupDriveMake" HeaderText="Make" SortExpression="Make" /> <asp:BoundField DataField="BackupDriveModel" HeaderText="Model" SortExpression="Model" /> <asp:CommandField ShowSelectButton="True" /> </Columns> <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" /> <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" /> <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" /> <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" /> <EditRowStyle BackColor="#2461BF" /> <AlternatingRowStyle BackColor="White" /> </asp:GridView> </asp:Panel> <asp:DropDownExtender ID="DropDownExtender2" runat="server" DropDownControlID="Panel2" TargetControlID="DropDownList5"> </asp:DropDownExtender> </EditItemTemplate> [Code].... I also tried [Code].... View 5 Replies
Nov 17, 2010
may i know how to find control inside Login View Control
i m usng following way HyperLink lnktest = (HyperLink)loginView.FindControl("test"); but its giving me error that lnktest is null i.e object reference is not set to instance of object View 3 Replies
Dec 20, 2013
I have a listview where inside Iitemtemplate one button and one label is placed.
I want to access the value of label on the click event of button. View 1 Replies
May 7, 2015
I have downloaded the ajax toolkit control i been using it for a couple of months now. But I cannot see Ajax toolkit pie chart control..
Why will I get it ? Do I have to download seperately? View 1 Replies
Aug 23, 2010
This has got me stumped. I am trying to find a checkbox in a dynamically loaded asp.net Repeater template. The template works fine and the databinding is fine and everything displays fine but I can't find the control!
This is the repeater code (I have a similar one for the alternate template with a different style): [Code]..... View 4 Replies
Jan 7, 2011
how i can find a DataList which is inside the DataList control? Its giving the Error Object not set to an Instance. i am finding the control this way :
DataList dl =((DataList) (DataList1.FindControl("DataList2"))); View 2 Replies
Jan 9, 2011
I've written a web user control which I want to be able to drop into the markup for either aspx pages or other web user controls.I need my user control to be able to easily and efficiently work out if its inside another user control or an aspx page. My initial idea is to do it recursively with checks on the Parent property - continue looking up the nesting hierarchy until I find either a web form or a user control - but I'm not sure this the best way of going about this.
View 3 Replies
Nov 17, 2010
I am currently using Visual Studio 2008 to develop a hierarchical grid that displays records, its got 3 levels. The code looks roughly like this.
<telerik:RadMultiPage runat="server" ID="RadMultiPage1" SelectedIndex="0" RenderSelectedPageOnly="false"> <telerik:RadPageView ID="RadPageView1" runat="server"> <telerik:RadGrid ID="radGrd1"> <MasterTableView> [Code].... I have ommited all the code and just provided the skeleton. The problem i am having is that when i add the Radgrid, the intellisense does not seem to pick it up and visual studio does not add it to the designer class either. I have tried viewing it in design view and forcing it to sync and even manually added it to the designer class myself. These solutions have not solved my problem as although the intellisense does pick up the control after adding it manually, the control itself is set to null during run time. So basically is it possible to add a rad grid in the first place and if so what am i doing wrong. View 1 Replies
Jan 14, 2011
Is anyone able to offer any decent alternatives to the telerik ASP.Net controls.
I'm in the market for a decent grid control with all singing all dancing extensions... bt I'm finding the telerik grid really hard work to deal with. The telerik controls do look good, but after a day of hard work with them I'm just looking to see if there are any other 3rd party offerings? View 3 Replies
Feb 5, 2010
What's the simplest way to add a new row to a Telerik RadGrid in ASP.NET from code behind?
View 2 Replies
Jul 22, 2010
I'm using the Telerik rad grid and I'm allow the user to enter data directly to the grid.
I am using the "EditForms" edit mode and I also allow inserts using the same. If the user edits a row, then I don't want to allow any other edits or inserts until the current one is complete or cancelled. View 1 Replies
Jun 9, 2010
I am currently highlighting a row in a radgrid using OnMouseOver. I would like to know if it is possible to use OnMouseOver to select the row rather than highlight it.
Alternatively, I would like the highlighted row to remain highlighted if the radgrid loses focus, such as when a confirmation box pops up. View 2 Replies
Jan 15, 2010
I created a RadGrid with a couple of fields for filtering and I can't seem to get the filtering to work. I can see it clearly posting back (the ajax spinny circle thing) after typing something in the filter box, however my results are always the same. I am using the following definition in the aspx file:
<telerik:RadGrid PageSize="4" ID="RadGrid1" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" OnNeedDataSource="RadGrid1_NeedDataSource" OnSelectedIndexChanged="RadGrid1_SelectedIndexChanged" Skin="Black" ShowFooter="True" ShowStatusBar="True" AllowFilteringByColumn="True" [Code].... View 2 Replies
Jul 22, 2010
guide me a place to find the Timer control? I jus downloaded the latest version Ajax Control Tool Kit i don't see Timer control.
[IMG]http://i25.tinypic.com/1z1srvl.jpg[/IMG] View 5 Replies