Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
422 views
Hi,
Iam using Keyboard Navigation in my grid.Iam using Office2007 Skin for my grid and i have created my grid at runtime.

Now when i use keyboard navigation using  up down arrow key.The gird selection is moving to next cell but the back color is in Light blue .I want to change the selection back color to some other dark color.
Kindly refer the attached image.

I have tried all this styles to change the back color but northing works

.RadGrid_Office2007 .SelectedItem
 {
  background-image: url(img/SelectedRow.gif);
  background-repeat: no-repeat;
  background-position: top right;
    background-color: Green !important; 
     background: Green 0 -3900px repeat-x url('Grid/sprite.gif') !important;
 }
  .RadGrid_Office2007  .rgSelectedRow  
    {  
        background: Green 0 -3900px repeat-x url('Grid/sprite.gif') !important; 
    color:#fff; 
    }  
 .RadGrid_Office2007 .SelectedStyle
 
{ 
    background-color: Green !important; 
} 

<%--.RadGrid td.rgSelectedCell
{
    background: #141414 !important;
     background-image: none;
}

.RadGrid .rgSelectedRow td
 {
   background-color: #141414 !important;
    background-image: none;
 }
 .RadGrid_Default th.rgHeader
 {
   background-image: none;
   background-color: Blue !important;
 } 

  .SelectedItem
    {
      background-color: Green !important;
    }

 .RadGrid .GridRowSelector_Default
    {
         background-image: none;
 
        background-color: Green !important;
    }
    .RadGrid .ActiveRow_Default td
    {
        background-image: none;
 
        background-color: Green !important;
    }
--%>



In Code behind i create grid like this
 grid.AutoGenerateColumns = false; // set the auto genrated columns as false
        grid.Skin = "Office2007";// set the Skin
        grid.AllowMultiRowSelection = true;//set the multirow selection as true or false     
 grid.ClientSettings.Selecting.CellSelectionMode = GridCellSelectionMode.MultiCell;
        grid.ClientSettings.Selecting.EnableDragToSelectRows = false;
        grid.ClientSettings.AllowKeyboardNavigation = true;
        grid.ClientSettings.KeyboardNavigationSettings.EnableKeyboardShortcuts = true;
        grid.ClientSettings.KeyboardNavigationSettings.AllowActiveRowCycle = true;
Princy
Top achievements
Rank 2
 answered on 18 Dec 2013
3 answers
545 views
I got a grid with with a template column whose DataType property is set to System.Boolean and DataField property set to a bool field in the datasource. 

<telerik:GridTemplateColumn HeaderText="Physical Count Date" HeaderStyle-HorizontalAlign="Center" DataType="System.Boolean" UniqueName="CountDate" DataField="HasCount" ItemStyle-Width="100" ItemStyle-HorizontalAlign="Left" AllowFiltering="true">
                        <ItemStyle CssClass="no-border" />
                        <ItemTemplate>
                            <asp:Label ID="LabelDate" runat="server" Text='<%# ((bool)Eval("HasCount"))  ? Eval("CountDate","{0:dd/MM/yyyy}") : "Not performed" %>'></asp:Label>
                        </ItemTemplate>

I want to have a dropdown to filter it, i am following the tutorials at http://tv.telerik.com/watch/aspnet/radgrid/radgrid-for-aspnet-filtering-with-dropdown-for-checkbox-column and http://www.telerik.com/help/aspnet-ajax/grid-filtering-for-gridchecboxcolumn.html

so in my code behind i have
protected void RadGrid2_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e)
        {
            if (e.Item is GridFilteringItem)
            {
                GridFilteringItem filteringItem = (e.Item as GridFilteringItem);
                filteringItem["CountDate"].Controls.Clear();
                DropDownList ddList = new DropDownList();
                ddList.AutoPostBack = true;
                ddList.SelectedIndexChanged += new System.EventHandler(ddList_SelectedIndexChanged);
                ddList.Items.Add(new ListItem("Clear filter", "Empty"));
                ddList.Items.Add(new ListItem("Show all counted", "True"));
                ddList.Items.Add(new ListItem("Show all not counted", "False"));
                if (Session["ddlSelValue"] != null)
                {
                    ddList.Items.FindByValue((string)Session["ddlSelValue"]).Selected = true;
                }
                filteringItem["CountDate"].Controls.Add(ddList);
            }
        }
        protected void ddList_SelectedIndexChanged(object sender, System.EventArgs e)
        {
            DropDownList ddList = (DropDownList)sender;
            Session["ddlSelValue"] = ddList.SelectedValue;
            switch (ddList.SelectedValue)
            {
                case "True":
                    RadGrid2.MasterTableView.FilterExpression = "([HasCount] = True) ";
                    break;
                case "False":
                    RadGrid2.MasterTableView.FilterExpression = "([HasCount] = False) ";
                    break;
                case "Empty":
                    RadGrid2.MasterTableView.FilterExpression = String.Empty;
                    break;
            }
            foreach (GridColumn column in RadGrid2.MasterTableView.Columns)
            {
                column.CurrentFilterFunction = GridKnownFunction.NoFilter;
                column.CurrentFilterValue = String.Empty;
            }
            RadGrid2.MasterTableView.Rebind();
        }

It just does not work, it renders and even submits when an option is chosen from the dropdown but it does not filter. and i am unable to figure out why.

anyone?
thanks
Princy
Top achievements
Rank 2
 answered on 18 Dec 2013
14 answers
245 views
Hi, 

I have created web application with grid in Telerik.Web.UI_2012_3_1016_Dev, but after I installed latest Telerik.Web.UI_2013_2_611_Dev, where I uploaded DLLs into my solution, in my grid disappeared all headers for my columns... 

I wasn't changing web.config or any other changes... 

Did I miss something ? Do you have any idea what could go wrong ?

Thanks for any help,

Peter

PS: I also have noticed that some of my controls with overriden skin css values have moved by several pixels... Are there any known issues I should be awared that will mess up my UI before I update production environment by the newest telerik controls ?
Jamie Dulaney
Top achievements
Rank 1
 answered on 17 Dec 2013
5 answers
210 views
before 2013Q2,Grid header is this(snap1):

up to Q3,Header became so(snap2):

Q3sp1 Is the same.
Jamie Dulaney
Top achievements
Rank 1
 answered on 17 Dec 2013
4 answers
206 views

Hi,

I have created a basic asp.net application with below code:

<telerik:RadAsyncUpload runat="server" ID="AsyncUpload1" ChunkSize="1048576" />

When I run the application, files are getting uploaded to the app_data folder for IE\Chrome.

However, for safari the uploaded file is not having the valid file extension and sometimes it's not uploading the files.

There is no code added in cs file and the config file contains below configuration:

<system.webServer>

<security>

<requestFiltering>

<requestLimits maxAllowedContentLength="2199023255"/>

<fileExtensions allowUnlisted="true"/>

</requestFiltering>

</security>

<handlers>

<add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" name="Telerik.Web.UI.WebResource"/>

</handlers>

<directoryBrowse enabled="true"/>

</system.webServer>


Any pointers will be appreciated.


Thanks.

John
Top achievements
Rank 1
 answered on 17 Dec 2013
9 answers
350 views

Hello,


I would like to have a multi-level RadPanelBar with the following behavior:

a) Use 100% of the height (and thereforre display empty space between the last child item and the next sibling item).

b) Always have exactly one item expanded in level 0.

c) Always have all the direct and indirect child nodes expanded below the level-0 item that is expanded.



It seems that there are contradicting settings that would be required. If I use ExpandMode="FullExpandedItem", then I can achieve requirements a) and b), but not c). If I use ExpandMode="MultipleExpandedItems", then I can achieve requirements b) (with some client--side coding) and c), but nott a).



Your assistance would be appreciated.



Thanks,



Michel

Boyan Dimitrov
Telerik team
 answered on 17 Dec 2013
3 answers
118 views
Hi there

I am trying to set the image manager paths, in an editor, in a template column of a radgrid from code behind like this:

Protected Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As GridItemEventArgs)
        If TypeOf e.Item Is GridEditableItem And e.Item.IsInEditMode Then
            Dim editor1 As RadEditor = e.Item.FindControl("Radeditor1")
            Dim UserId As String

            UserId = Membership.GetUser().ProviderUserKey.ToString()

            editor1.ImageManager.ViewPaths = New String() {"~/images/users/" + UserId + "/uploads"}
            editor1.ImageManager.DeletePaths = New String() {"~/images/users/" + UserId + "/uploads"}
            editor1.ImageManager.UploadPaths = New String() {"~/images/users/" + UserId + "/uploads"}
            editor1.ImageManager.EnableAsyncUpload = True
            editor1.ImageManager.SearchPatterns = New String() {"*.jpeg", "*.jpg", "*.bmp", "*.gif", "*.png"}
        End If

    End Sub


Please could someone tell me what am I doing wrong here
Angel Petrov
Telerik team
 answered on 17 Dec 2013
6 answers
262 views
Hi,
I want show GridImage Cell when user Selected a Row and i want to Hide when user Un-Select the Row using JavaScript

 function grid_RowSelected(sender, args)
{
sender.get_masterTableView().showColumn(2);
}

But above method Shows or Hide the Column in Whole Radgrid. But I just want to Show/Hide User Select Row Cell/Column only

Thanks In Advance
Venkata
Top achievements
Rank 1
 answered on 17 Dec 2013
3 answers
437 views
am attaching Screen shot...

in that Screen shot .How to change highlight Font Color
that he lighting line was using GridGroupByField ..

am using below code 


am using This Way ..
protected void rgMyFile_ItemCreated(object sender, GridItemEventArgs e)
    {
        if (e.Item is GridGroupHeaderItem)
        {
         
            (e.Item as GridGroupHeaderItem).Font.Size = FontUnit.Point(30);
            (e.Item as GridGroupHeaderItem).Font.Bold = true;
        }
    }
but its Not Working
protected void rgMyFile_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
    {

if (e.Item is GridGroupHeaderItem)
        {
            GridGroupHeaderItem item = e.Item as GridGroupHeaderItem;
             e.Item.Font.Size = FontUnit.Point(430);
            e.Item.Font.Bold = true;
            e.Item.CssClass = "rgGroupHeader";
        }
}

 <telerik:RadGrid ID="rgMyFile" runat="server"  ShowGroupPanel="false" AutoGenerateColumns="False" DataSourceID="odsMyFile" GridLines="None" EnableEmbeddedSkins="true"  Skin="Default" OnItemDataBound="rgMyFile_ItemDataBound"   OnItemCreated="rgMyFile_ItemCreated" ShowStatusBar="True" >
        <MasterTableView DataSourceID="odsMyFile"  ShowHeader="False">
               <GroupByExpressions>
                    <telerik:GridGroupByExpression>
                        <SelectFields>
                            <telerik:GridGroupByField FieldAlias="SessionName" FieldName="SessionName" FormatString="{0:s}"
                                HeaderValueSeparator=" : " HeaderText=""></telerik:GridGroupByField>
                                 <telerik:GridGroupByField
            FieldName="CourseName"
            HeaderText="Course Name" FieldAlias="CourseName" FormatString=""/>
                        </SelectFields>
                        <GroupByFields>
                            <telerik:GridGroupByField FieldName="SessionName" SortOrder="Descending" FieldAlias="SessionName" FormatString="" HeaderText=""></telerik:GridGroupByField>
                        </GroupByFields>
                    </telerik:GridGroupByExpression>
                   
                </GroupByExpressions>
               
        <Columns >
                                    <telerik:GridTemplateColumn UniqueName="TemplateColumn" HeaderText="File Name">
                                        <ItemTemplate>
                                            <asp:ImageButton ID="imgbtn" runat="server" Width="20px" Height="20px" Enabled="false" />
                                                <asp:Label ID="fileType" runat="server" Text='<%#Eval("FileType") %>' ></asp:Label>
                                          </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                  
        </Columns>
        </MasterTableView>
      <GroupHeaderItemStyle CssClass ="rgGroupHeader" />
    </telerik:RadGrid>

using This way also not Working.
give me any solution
Angel Petrov
Telerik team
 answered on 17 Dec 2013
1 answer
239 views
Hi

I started off with a problem of getting a grid setup to allow the user to select the cells and to total the values of the cells in the footer.  I found a very good example which I implemented and all seem well.

Then I needed to get the text from the selected cells and here is where I have got my problem.  I have followed various examples for using the FindControl method to find the label control within the item template but it's never finds it.  This could be because I am using my own classes for the item template i'm not sure.

What I am looking for is help as to how to get to the underlying text in the cell from the server side code in the following example project.

This is in VB.NET using the latest Q3 2013 release of Telerik 2013.3.1114.40.

I have an empty web application which I then create the following two classes:

Public Class clTemplateColumn
    Implements ITemplate
 
    Protected _label1 As Label
    Private _colName As String
 
    Public Sub New(ByVal colName As String)
        _colName = colName
    End Sub
 
    Public Sub InstantiateIn(container As Control) Implements ITemplate.InstantiateIn
        _label1 = New Label
        _label1.ID = _colName + "Label"
        AddHandler _label1.DataBinding, AddressOf Label1_DataBinding
        container.Controls.Add(_label1)
    End Sub
 
    Private Sub Label1_DataBinding(ByVal sender As Object, ByVal e As EventArgs)
        Dim _label As Label = DirectCast(sender, Label)
        Dim _container As Telerik.Web.UI.GridDataItem = DirectCast(_label.NamingContainer, Telerik.Web.UI.GridDataItem)
        _label.Text = DirectCast(_container.DataItem, DataRowView)(_colName).ToString
    End Sub
End Class

And

Public Class clTemplateColumnFooter
    Implements ITemplate
 
    Protected _label1 As Label
    Private _footerID As String
 
    Public Sub New(ByVal footerID As String)
        _footerID = footerID
    End Sub
 
    Public Sub InstantiateIn(container As Control) Implements ITemplate.InstantiateIn
        _label1 = New Label
        _label1.ID = _footerID
        container.Controls.Add(_label1)
    End Sub
 
End Class

The webform html is as follows:

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="TestPage1.aspx.vb" Inherits="GridRowColTotals.TestPage1" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<!DOCTYPE html>
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            <Scripts>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />               
            </Scripts>
        </telerik:RadScriptManager>
        <div>           
            <telerik:RadButton ID="btnGenerateData" runat="server" Text="GenerateData"></telerik:RadButton>                     
            <br />
            <br />
            <telerik:RadGrid ID="rgResults" runat="server" CellSpacing="0" GridLines="Both" ShowFooter="True" AutoGenerateColumns="false">
                <ClientSettings EnablePostBackOnRowClick="false">
                    <Scrolling AllowScroll="true" />
                    <ClientEvents OnCellSelecting="OnCellSelecting" OnCellSelected="OnCellSelected" OnCellDeselected="OnCellDeselected"  />
                </ClientSettings>
            </telerik:RadGrid>
            <br />
            <br />
            <telerik:RadButton ID="btnCheckSelectedItems" runat="server" Text="Selected Values"></telerik:RadButton>
 
            <script type="text/javascript" language="javascript">
                // When selecting the cells from the results grid, if any of the cells belong to the column MainHeader then cancel the select.
                function OnCellSelecting(sender, args) {
                    if (args.get_column().get_uniqueName() == "MainHeader") {
                        args.set_cancel(true);
                    }
                }
 
                function OnCellSelected(sender, args) {
                    // Find the grid master table to get the footer element
                    var _masterTable = $find("<%=rgResults.ClientID%>").get_masterTableView();
                    var _masterTableViewFooter = _masterTable.get_element().getElementsByTagName("TFOOT")[0];
 
                    // Get the index of the column
                    var _cellIndex = _masterTable.getColumnByUniqueName(args.get_column().get_uniqueName()).get_element().cellIndex + 1;
 
                    // Get the value from the current selected cell, check the length and set to 0 if nothing in it.
                    var _cellValue = args.get_gridDataItem().get_cell(args.get_column().get_uniqueName()).innerText;
                    if (_cellValue.length == 0) {
                        _cellValue = "0";
                    }
 
                    // Get the current total value for the column the selected cell is in, check the length and set to 0 if nothing in it.
                    var _currentTotal = _masterTableViewFooter.rows[0].cells[_cellIndex].innerText;
                    if (_currentTotal.length == 0) {
                        _currentTotal = "0";
                    }
 
                    // Work out the new total, and set the footer value.
                    var _newTotal = parseInt(_currentTotal) + parseInt(_cellValue);
                    _masterTableViewFooter.rows[0].cells[_cellIndex].innerText = _newTotal.toString();
                }
 
                function OnCellDeselected(sender, args) {
                    // Find the grid master table to get the footer element
                    var _masterTable = $find("<%=rgResults.ClientID%>").get_masterTableView();
                    var _masterTableViewFooter = _masterTable.get_element().getElementsByTagName("TFOOT")[0];
 
                    // Get the index of the column
                    var _cellIndex = _masterTable.getColumnByUniqueName(args.get_column().get_uniqueName()).get_element().cellIndex + 1;
 
                    // Get the value from the current selected cell, check the length and set to 0 if nothing in it.
                    var _cellValue = args.get_gridDataItem().get_cell(args.get_column().get_uniqueName()).innerText;
                    if (_cellValue.length == 0) {
                        _cellValue = "0";
                    }
 
                    // Get the current total value for the column the selected cell is in, check the length and set to 0 if nothing in it.
                    var _currentTotal = _masterTableViewFooter.rows[0].cells[_cellIndex].innerText;
                    if (_currentTotal.length == 0) {
                        _currentTotal = "0";
                    }
 
                    // Work out the new total, and set the footer value.
                    var _newTotal = parseInt(_currentTotal) - parseInt(_cellValue);
                    _masterTableViewFooter.rows[0].cells[_cellIndex].innerText = _newTotal.toString();
                }
            </script>
        </div>       
    </form>
</body>
</html>

The code behind is:

Public Class TestPage1
    Inherits System.Web.UI.Page
 
    Dim _resultsDataSource As New DataTable("resultsData")
 
    Private Sub btnGenerateData_Click(sender As Object, e As EventArgs) Handles btnGenerateData.Click
        GenerateData()
    End Sub
 
    Private Sub GenerateData()
        BuildDataTable(_resultsDataSource)
        AddColumnsToGrid(_resultsDataSource)
 
        rgResults.DataSource = _resultsDataSource
        rgResults.DataBind()
    End Sub
 
    Private Sub BuildDataTable(ByRef pivotData As DataTable)
        pivotData.Rows.Clear()
        pivotData.Columns.Clear()
        pivotData.Clear()
        Dim _pivotRow As DataRow
 
        ' Add the KEY column
        pivotData.Columns.Add(AddNewPivotColumn("Key", "Key", "System.String"))
 
        ' Add the Main Header column
        pivotData.Columns.Add(AddNewPivotColumn("MainHeader", "", "System.String"))
 
        ' Add the Blank/Male/Female Column
        pivotData.Columns.Add(AddNewPivotColumn("Blank", "Blank", "System.Decimal"))
        pivotData.Columns.Add(AddNewPivotColumn("_33", "Male", "System.Decimal"))
        pivotData.Columns.Add(AddNewPivotColumn("_34", "Female", "System.Decimal"))
 
        ' Add the data
        _pivotRow = AddNewPivotRow(pivotData)
        _pivotRow(0) = "Blank" ' Key
        _pivotRow(1) = "Blank" ' Main Header
        _pivotRow(2) = "5" ' 5 people in blank
        pivotData.Rows.Add(_pivotRow)
 
        _pivotRow = AddNewPivotRow(pivotData)
        _pivotRow(0) = "1" ' Key
        _pivotRow(1) = "20-29" ' Main Header
        _pivotRow(3) = "15" ' 15 people in Male
        _pivotRow(4) = "7" ' 7 people in Female
        pivotData.Rows.Add(_pivotRow)
 
        _pivotRow = AddNewPivotRow(pivotData)
        _pivotRow(0) = "2" ' Key
        _pivotRow(1) = "30-39" ' Main Header
        _pivotRow(3) = "2" ' 2 people in Male
        _pivotRow(4) = "33" ' 33 people in Female
        pivotData.Rows.Add(_pivotRow)
 
        _pivotRow = AddNewPivotRow(pivotData)
        _pivotRow(0) = "3" ' Key
        _pivotRow(1) = "40-49" ' Main Header
        _pivotRow(3) = "12" ' 12 people in Male
        _pivotRow(4) = "17" ' 17 people in Female
        pivotData.Rows.Add(_pivotRow)
 
    End Sub
 
    Private Function AddNewPivotColumn(ByVal columnName As String, ByVal caption As String, ByVal dataType As String) As DataColumn
        Dim _newCol As DataColumn = New DataColumn(columnName, Type.GetType(dataType))
        _newCol.Caption = caption
        Return _newCol
    End Function
 
    Private Function AddNewPivotRow(ByVal pivotData As DataTable) As DataRow
        Dim _newRow As DataRow = pivotData.NewRow()
 
        For Each _pivotColumn As DataColumn In pivotData.Columns
            _newRow(_pivotColumn) = DBNull.Value
        Next
 
        Return _newRow
    End Function
 
    Private Sub AddColumnsToGrid(ByVal pivotData As DataTable)
        ' Clear out the existing columns and group columns
        rgResults.MasterTableView.ColumnGroups.Clear()
        rgResults.MasterTableView.Columns.Clear()
 
        ' Create the column group header
        Dim _groupColumn As New Telerik.Web.UI.GridColumnGroup
        rgResults.MasterTableView.ColumnGroups.Add(_groupColumn)
        _groupColumn.HeaderText = "Gender"
        _groupColumn.Name = "GroupColumnHeader"
        _groupColumn.HeaderStyle.HorizontalAlign = HorizontalAlign.Center
 
        Dim _boundColumn As New Telerik.Web.UI.GridBoundColumn
        rgResults.MasterTableView.Columns.Add(_boundColumn)
        _boundColumn.DataField = pivotData.Columns(1).ColumnName
        _boundColumn.HeaderText = pivotData.Columns(1).Caption
        _boundColumn.UniqueName = pivotData.Columns(1).ColumnName.Replace(" ", "")
        _boundColumn.FooterStyle.Font.Bold = True
        _boundColumn.HeaderText = "Age"
 
        For _ii As Integer = 2 To pivotData.Columns.Count - 1 Step 1
            Dim _templateColumn As New Telerik.Web.UI.GridTemplateColumn
            rgResults.MasterTableView.Columns.Add(_templateColumn)
 
            _templateColumn.ItemTemplate = New clTemplateColumn(pivotData.Columns(_ii).ColumnName.Replace(" ", ""))
            _templateColumn.HeaderText = pivotData.Columns(_ii).Caption
            _templateColumn.UniqueName = pivotData.Columns(_ii).ColumnName.Replace(" ", "")
            _templateColumn.ColumnGroupName = "GroupColumnHeader"
            _templateColumn.FooterTemplate = New clTemplateColumnFooter(pivotData.Columns(_ii).ColumnName.Replace(" ", "") + "Footer")
        Next
 
        rgResults.ClientSettings.Selecting.CellSelectionMode = Telerik.Web.UI.GridCellSelectionMode.MultiColumn
    End Sub
 
    Private Sub btnCheckSelectedItems_Click(sender As Object, e As EventArgs) Handles btnCheckSelectedItems.Click
        For Each _cell As Telerik.Web.UI.GridTableCell In rgResults.SelectedCells
            Dim _gridItem As Telerik.Web.UI.GridDataItem = DirectCast(_cell.NamingContainer, Telerik.Web.UI.GridDataItem)
            Dim _label As Label = DirectCast(_gridItem.FindControl(_cell.Column.UniqueName + "Label"), Label)
            Dim _label2 As Label = DirectCast(_gridItem.Cells(_cell.Column.OrderIndex).FindControl(_cell.Column.UniqueName + "Label"), Label)
 
            Dim _cellText As String = _label.Text
        Next
 
    End Sub
 
End Class

As you can see from the code, it's very simple in that it creates a data table and loads in some data, then adds the columns to the grid.  When you press the Generate Data button.

If you then select a cell of data the totals add up and all is good, so from the javascript I am getting the values fine, but if you click the Selected Values button here is where I am having problems getting the value selected.  You can see in the event I have tried a couple of ways to get the label from the griddataitem but i'm always getting a null reference.

Any help would be appreciated.

Thanks
Viktor Tachev
Telerik team
 answered on 17 Dec 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?