Hello,
I am trying to find the values of the checkbox which are checking on button click event but its not work.
Please help me out on this.
This is aspx file.
<telerik:RadGrid ID="RadGridActivity" AutoGenerateColumns="False" runat="server" AllowMultiRowSelection="True" FilterType="CheckList" GroupPanelPosition="Top" >
<ClientSettings Selecting-AllowRowSelect="true" >
<ClientEvents OnRowSelected="RowSelected" OnRowDeselected="RowDeselected" />
</ClientSettings>
<MasterTableView>
<Columns>
<telerik:GridClientSelectColumn UniqueName="SelectActivity" HeaderText="Select" ></telerik:GridClientSelectColumn>
<telerik:GridBoundColumn UniqueName="ActivityId" HeaderText="ActivityId" DataField="intActivityId" FilterDelay="200" ></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="ActivityName" HeaderText="Activity" DataField="strActivityName" AllowFiltering="true" ></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="Company" HeaderText="Company" DataField="strCompany" AllowFiltering="true"></telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<ClientSettings EnableRowHoverStyle="true" >
<Selecting AllowRowSelect="True"></Selecting>
</ClientSettings>
</telerik:RadGrid>
<telerik:RadButton ID="btnAdd" runat="server" Text="Add"></telerik:RadButton>
Code behind
Protected Sub btnAdd_Click(sender As Object, e As EventArgs) Handles btnAdd.Click
For Each item As GridDataItem In RadGridActivity.SelectedItems
Dim id As String
Dim chec As Boolean
Dim chk As CheckBox = DirectCast(item("SelectActivity").Controls(0), CheckBox)
id = item("ActivityId").Text
chec = chk.Checked
Next
End Sub

When I inspect the GridCommandEventArgs event args in the OnItemCommand event handler I find...
e.Item.OwnerID "ctl00_ctl00_ContentPlaceHolder1_ContentPlaceHolder1_myControl_gvMyGridWithTheDetailsTable_ctl00_ctl06_Detail10" string
and
e.Item.OwnerTableView.ClientID "ctl00_ctl00_ContentPlaceHolder1_ContentPlaceHolder1_myControl_gvMyGridWithTheDetailsTable_ctl00_ctl06_Detail10" string
However ...
((RadGrid)sender).MasterTableView.DetailTables[0].ClientID "" string (IT'S BLANK!)
and
gvMyGridWithTheDetailsTable.MasterTableView.DetailTables[0].ClientID "" string (IT'S ALSO BLANK!)
gvMyGridWithTheDetailsTable == sender true bool
and
gvMyGridWithTheDetailsTable.MasterTableView.DetailTables[0] == ((RadGrid)sender).MasterTableView.DetailTables[0] true bool
as you'd expect, but..
e.Item.OwnerTableView == ((RadGrid)sender).MasterTableView.DetailTables[0] ***false*** bool
and yes there's only one details table....
((RadGrid)sender).MasterTableView.DetailTables.Count 1 int
What's going on here?
Why aren't the instances of the GridTableView in the GridCommandEventArgs and the GridTableView of the sending datagrid the same?
Why don't they have the same property values?
I'm attempting customise viewstate for my datagrid, by disabling viewstate on the grid and saving the state I want kept manually. I was hoping to write generic code for this that would work with RadGrids which have DetailTables. In the case of the Detail tables, not being able to correlate the ID of the grid being sorted in the OnItemCommand with the ID of anything in the Pre_Load event of the page is going to stop me from being able to restore the state for the grid.
hi
all the telerik control is working fine in all browser except safari
e.g. (The RadGridView Filter and paging not working in safari but its working fine with others browsers, ),
Any help
I am using version(2015.1.401.45)

Hello! I'm working with a RadGrid with HierarchyLoadMode="Client", in the second level of detailTables I have a GridTemplateColumn with a dropdownlist like this:
<telerik:GridTemplateColumn HeaderText="Alta Petició" HeaderStyle-HorizontalAlign="Center" UniqueName="UNDDLAltaTop" ItemStyle-HorizontalAlign="left"><ItemTemplate> <asp:DropDownList ID="DDLTP" runat="server" OnSelectedIndexChanged="DDLTP_SelectedIndexChanged" /></ItemTemplate></telerik:GridTemplateColumn>I'm set datasource of DDLTP in itemDataBound event:
if (e.Item.OwnerTableView.Name == "Son"){ if (e.Item is GridDataItem) { GridDataItem item = (GridDataItem)e.Item; DropDownList ddl = (DropDownList)item["UNDDLAltaTop"].FindControl("DDLTP"); setDatasource(ref ddl, "ID_TP"); } }This works perfect!
Now I need to access to itemdata like (ItemCommand Event) to get the value of another column of the row
protected void DDLTP_SelectedIndexChanged(object sender, EventArgs e){}
If I use an imagebutton to make the postback i can access itemData with ItemCommand Event but I don't like this solution:
<telerik:GridTemplateColumn HeaderText="Alta Petició" HeaderStyle-HorizontalAlign="Center" UniqueName="UNDDLAltaTop" ItemStyle-HorizontalAlign="left"><ItemTemplate> <asp:DropDownList ID="DDLTP" runat="server"/> <asp:ImageButton ID="BAltaPeticio" runat="server" CommandName="Altapeticio" ImageUrl="../../Imatges/b_Add.gif" ToolTip="Alta Petició" /></ItemTemplate></telerik:GridTemplateColumn>Can you help me??
thanks


From your demo http://demos.telerik.com/aspnet-ajax/tooltip/examples/tooltipzoneid/defaultvb.aspx
<div class="demo-containers" id="container1">
<div class="demo-container">
<h2>
Tooltipified links in the "container1" zone
</h2>
<telerik:RadToolTipManager runat="server" AutoTooltipify="true" ID="RadToolTipManager1"
ToolTipZoneID="zone1" RelativeTo="Element" Width="150px">
</telerik:RadToolTipManager>
<div id="module">
Lorem ipsum dolor sit amet,
In the code there is no element defined as "zone1". What is the user there, I don't understand.
I want to tooltiptify a radslider but cannot succeed in this.
Marc

From 2 monts ago i´ve developing with this framework or suite package telerik, while i was program some aspx pages i founded some stop times for get or mapping the radcontrols from javascript file my great reason for write this post !!
for mapping a control on our javascript we have put the next propertie ClientIDMode="Static" like
<telerik:RadTimePicker ClientIDMode="Static" DateInput-DateFormat="HH:mm:ss" Style="position:absolute; top:220px; left:500px" ID="_dtpMonthlyHour" runat="server">
</telerik:RadTimePicker>
and our javascript file mike this //.
var _dtpMonthlyHour=$telerik.findDatePicker("_dtpMonthlyHour");
with this line of code we can get all we want about this radControl !!
