or
<telerik:RadGrid runat="server" ID="grdRecentActivity" DataSourceID="objActivity" Width="99%" Skin="Sunset" ShowHeader="false" onitemdatabound="grdRecentActivity_ItemDataBound"> <HeaderStyle CssClass="HistoryGridHeader" /> <PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle> <MasterTableView AutoGenerateColumns="false" CssClass="GridRecentActivity" GroupLoadMode="Client" ExpandCollapseColumn-Groupable="False"> <GroupByExpressions> <telerik:GridGroupByExpression> <SelectFields> <telerik:GridGroupByField FieldName="Date" FormatString="{0:D}" FieldAlias="Date" HeaderText=" " /> </SelectFields> <GroupByFields> <telerik:GridGroupByField FieldName="Date" SortOrder="Descending" FieldAlias="StartDateTime" FormatString="{0:dd/MM/yy}" > </telerik:GridGroupByField> </GroupByFields> </telerik:GridGroupByExpression> </GroupByExpressions> <Columns> <telerik:GridTemplateColumn DataField="Message" HeaderText="Message" UniqueName="Message"> <ItemTemplate> <asp:Label runat="server" id="Label1" Text='<%# Eval("Type") %>' CssClass="FirstColumn" /> - <asp:Label runat="server" id="lblMessage" Text='<%# Eval("Message") %>' /> </ItemTemplate> </telerik:GridTemplateColumn> </Columns> </MasterTableView> <ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True" AllowColumnsReorder="True"> <Selecting AllowRowSelect="True"></Selecting> <Resizing AllowRowResize="True" AllowColumnResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="False"></Resizing> </ClientSettings> </telerik:RadGrid>protected void ButtonDelete_Click(object sender, EventArgs e) { string id = string.Empty; //loop the GridView Rows for (int i = 0; i < GridView1.Rows.Count; i++){ RadioButton rd= (RadioButton )GridView1.Rows[i].Cells[0].FindControl("radiobutton1"); //find the button if (rd.Checked) { id = GridView1.Rows[i].Cells[0].Text; // get the id of the field to be deleted } }Thanks
I'm trying to get the selected value of a datepicker within document ready javascript:
My datepicker:
<telerik:RadDatePicker runat="server" ID="rdpDate" ClientIDMode="Static" Width="100">
<ClientEvents OnDateSelected="rdpDate_DateSelected" />
<Calendar runat="server" ID="cDate">
<SpecialDays><telerik:RadCalendarDay repeatable="Today" Date="" ItemStyle-CssClass="rcToday" /></SpecialDays>
</Calendar>
</telerik:RadDatePicker> document.ready: <telerik:RadCodeBlock ID="rcb" runat="server">
<script type="text/javascript">
$(function () {
var datepicker = $find("<%= rdpDate.ClientID %>");
console.log(datepicker);I'm getting "null". What am I doing wrong?
<Tel:RadButton ID="RadButton1" runat="server" ButtonType="LinkButton" Text=" this is for test" Height="30" >
<Icon PrimaryIconUrl="~/Images/Text.png" SecondaryIconUrl="~/Images/Tiff.png" />
</Tel:RadButton>
and
<Tel:RadButton ID="RadButton2" runat="server" Width="80" Text=" this is for test2" Height="30" >
<Image ImageUrl ="~/Images/Text.png" DisabledImageUrl="~/Images/Tiff.png" />
</Tel:RadButton>
and
<Tel:RadButton runat="server" ID="btn1" EnableBrowserButtonStyle="true" Text="test" Height="30"
BorderStyle="None" />
please help on this.
Thanks,
Srinivas

