Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
150 views
Are any 3D charts available for AJAX?
Marin Bratanov
Telerik team
 answered on 11 Sep 2015
3 answers
169 views

I need to have a drop zone for each node of a RadTreeView.  I have added a RadAsyncUpload control in the NodeTemplate section.  Are there any examples/demos for this scenario?

I followed the current demo structure. But in my case, the files are getting dropped for every upload control and not the specific one.

 

 

Hristo Valyavicharski
Telerik team
 answered on 11 Sep 2015
6 answers
912 views
Hi,

When I was browsing the DOM elements in the radWindow, I discovered a hidden textbox called ctl00_phMaster_radWindowTest_ClientState. My colleague received a report that at one point this hidden textbox (..._ClientState) had a value in it.

I would like to know:
- what is the role/function of the ClientState?
- under what conditions do the ClientState get populated?
- what values does the ClientState contain?

I use the radWindow in a secure site and don't want ClientState exposing any sensitive information.

Thank you,
Arie


AMITA
Top achievements
Rank 1
 answered on 10 Sep 2015
2 answers
153 views

I have a RadGrid:

<telerik:RadGrid ID="radgridMachines" runat="server"
    AllowSorting="True"
    AllowMultiRowSelection="true"
    AutoGenerateColumns="False"
    OnNeedDataSource="radgridMachines_NeedDataSource"
    OnItemDataBound="radgridMachines_ItemDataBound"
    EnableViewState="false">
    <ClientSettings EnablePostBackOnRowClick="false">
        <Selecting AllowRowSelect="true" UseClientSelectColumnOnly="true" />
        <Scrolling AllowScroll="true" UseStaticHeaders="true" />
        <Resizing AllowColumnResize="true" ResizeGridOnColumnResize="true" AllowResizeToFit="true" />
        <ClientEvents OnGridCreated="SelectAndResizeAllRows" OnRowSelected="TogglePrintControls" OnRowDeselected="TogglePrintControls" />
    </ClientSettings>
    <GroupingSettings CaseSensitive="false" />
    <SortingSettings />
    <MasterTableView DataKeyNames="CustomerID, CustomerName, PlantNumber, Route, MachineNumber, PlantName, MachineName, CustomerEquipmentID, TestPackage, PointID, Lubricant"
        ClientDataKeyNames=""
        AllowMultiColumnSorting="true">
        <Columns>
            <%--Fit to Contents--%>
            <telerik:GridBoundColumn UniqueName="CustomerNumber" DataField="CustomerID" DataType="System.Int32" HeaderText="Cust #" HeaderStyle-Width="60px"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="PlantNumber" DataField="PlantNumber" DataType="System.Int32" HeaderText="Plant #" HeaderStyle-Width="60px"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="MachineNumber" DataField="MachineNumber" DataType="System.Int32" HeaderText="Mach #"HeaderStyle-Width="60px"></telerik:GridBoundColumn>
            <telerik:GridClientSelectColumn UniqueName="SelectColumn" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"HeaderStyle-Width="60px" />
            <%--Fit to Contents--%>
 
            <telerik:GridBoundColumn UniqueName="RouteNumber" DataField="Route" HeaderText="Route" ItemStyle-HorizontalAlign="Center"HeaderStyle-HorizontalAlign="Center"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="PlantName" DataField="PlantName" HeaderText="Plant Name" ItemStyle-HorizontalAlign="Center"HeaderStyle-HorizontalAlign="Center"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="MachineName" DataField="MachineName" HeaderText="Machine Name" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="CustomerEquipmentID" DataField="CustomerEquipmentID" HeaderText="Machine ID" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="TestPackage" DataField="TestPackage" HeaderText="Test Package" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"></telerik:GridBoundColumn>
 
            <telerik:GridBoundColumn DataField="PointID" Visible="false"></telerik:GridBoundColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

When I load 2600 rows, the browser gives me the following error:

"A script on this page may be busy, or it may have stopped responding. You can stop the script now, open the script in the debugger, or let the script continue.  Script: http://localhost:50820/ScriptR…8-VKUfdnFfZq18eaxA2&t=7c776dc1:652"

The OnGridCreated event looks like this:

function SelectAndResizeAllRows(sender, eventArgs) {
    var rows = $find('<%= radgridMachines.ClientID%>').get_masterTableView().get_dataItems();
 
    for (var i = 0; i < rows.length; i++) {
        rows[i].set_selected(true);
    }
 
    var grid = $find("<%= radgridMachines.ClientID %>");
    var columns = grid.get_masterTableView().get_columns();
    for (var i = 0; i < 4; i++) { //columns.length
        columns[i].resizeToFit(false, true);
    }
} 


If I remove the first for loop, the grid loads properly.  But I need to support selecting all rows.  Is there another way to accomplish this?  Why can't the grid handle this?

Thanks

Zach
Top achievements
Rank 1
 answered on 10 Sep 2015
0 answers
216 views
        <head>
        <script>
            
                var xhr = new XMLHttpRequest();
                xhr.onreadystatechange = function () {
                    if (xhr.readyState === 4) {
                        document.getElementById("para").innerHTML =xhr.responseText;
    
                    }
                };
                xhr.open('GET', 'Intro.html', true);
                xhr.send();
            
        </script>
    </head>
    <body >
        <div id="Para"></div>
    
    </body>


I get this Error

**Uncaught TypeError:** Cannot set property 'innerHTML' of nullxhr.onreadystatechange @ index.html:11
Zubair
Top achievements
Rank 1
 asked on 10 Sep 2015
4 answers
242 views

I have a basic RadGrid control on a page. I only set the grid property AllowPaging="True" and the only Pager Style is <PagerStyle Mode="NextPrevAndNumeric" />.  When the form loads up the paging is showing on 4 separate lines. I just want it to be on one line like all of the samples.  Any ideas why this is happening?  Do I need to apply CSS?

Konstantin Dikov
Telerik team
 answered on 10 Sep 2015
2 answers
137 views

Hi,

I´m delaing with some trouble; here is the topic: I have a 3 nested radgrid:

<telerik:RadGrid ID="radGridEquipos" runat="server" ShowStatusBar="True" AutoGenerateColumns="False" AllowSorting="True" AllowPaging="True"                                     OnDetailTableDataBind="radGridEquipos_DetailTableDataBind" OnNeedDataSource="radGridEquipos_NeedDataSource"                                     Width="100%" GroupPanelPosition="Top" Skin="MetroTouch" Culture="es-MX" OnDataBound="radGridEquipos_DataBound" AllowFilteringByColumn="True" PageSize="15" OnSelectedIndexChanged="radGridEquipos_SelectedIndexChanged" AllowMultiRowSelection="True" MasterTableView-HierarchyLoadMode="ServerBind">                                     <PagerStyle AlwaysVisible="True" EnableSEOPaging="True" Mode="Slider" PageButtonCount="5"></PagerStyle>                                     <ClientSettings>                                         <ClientEvents OnRowSelected="itemSelected" />                                         <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true" FrozenColumnsCount="2" ScrollHeight="590"></Scrolling>                                         <Selecting AllowRowSelect="True" />                                     </ClientSettings>                                     <MasterTableView DataKeyNames="ID_Equipo" AllowMultiColumnSorting="True">                                         <DetailTables>                                             <telerik:GridTableView DataKeyNames="ID_Equipo" Name="Sistema" Width="100%" AllowPaging="False">                                                 <DetailTables>                                                     <telerik:GridTableView DataKeyNames="ID_Equipo" Name="Componente" Width="100%" AllowPaging="False">                                                         <Columns>                                                             <telerik:GridBoundColumn SortExpression="ID_Equipo" HeaderText="ID" HeaderButtonType="TextButton"                                                                 DataField="ID_Equipo" Visible="false">                                                             </telerik:GridBoundColumn>                                                             <telerik:GridBoundColumn SortExpression="Denominacion" HeaderText="Componente" HeaderButtonType="TextButton"                                                                 DataField="Denominacion" FilterControlWidth="100%">                                                             </telerik:GridBoundColumn>                                                         </Columns>                                                         <PagerStyle AlwaysVisible="True" Mode="Slider" PageButtonCount="5" />                                                     </telerik:GridTableView>                                                 </DetailTables>                                                 <Columns>                                                     <telerik:GridBoundColumn SortExpression="ID_Equipo" HeaderText="ID" HeaderButtonType="TextButton"                                                         DataField="ID_Equipo" Visible="false">                                                     </telerik:GridBoundColumn>                                                     <telerik:GridBoundColumn SortExpression="Denominacion" HeaderText="Sistema" HeaderButtonType="TextButton"                                                         DataField="Denominacion" FilterControlWidth="100%">                                                     </telerik:GridBoundColumn>                                                 </Columns>                                                 <PagerStyle AlwaysVisible="True" Mode="Slider" PageButtonCount="5" />                                             </telerik:GridTableView>                                         </DetailTables>                                         <Columns>                                             <telerik:GridBoundColumn SortExpression="ID_Equipo" HeaderText="ID" HeaderButtonType="TextButton"                                                 DataField="ID_Equipo" Visible="false">                                             </telerik:GridBoundColumn>                                             <telerik:GridBoundColumn SortExpression="Denominacion" HeaderText="Equipo" HeaderButtonType="TextButton"                                                 DataField="Denominacion" FilterControlWidth="100%">                                             </telerik:GridBoundColumn>                                         </Columns>                                         <PagerStyle AlwaysVisible="True" Mode="Slider" PageButtonCount="5" />                                     </MasterTableView>                                 </telerik:RadGrid>

what I need is to get the id of whatever row is selected on the grid and nested grids.

Can you team help me please?​

Rodrigo
Top achievements
Rank 1
 answered on 10 Sep 2015
2 answers
112 views
Hi,

Am  having  rad grid  with pagination . Grid  also has checkboxes , with  select all option(select all  option is achieved through a checkbox in header section of grid) in the  grid. Am  also maintaining persistence of checked items on  page navigation. we  are using  grid client select column.

Issue:Select All (header checkbox) in first page and navigate to another page select any item on this page.Come back  to first page  and deselect all(header checkbox)  in  the  first page and then select all(header checkbox) in first page,all  the child items are not getting checked in first page for  the first time and then  when  i select all(header checkbox), all  the items  are getting checked. we are using rowcreated,rowselected,rowdeselcted events and gridcreated events
am  using    telerik version:   2009.1.402.20
Can  anybody kindly  help  me out ..telerik team
Eyup
Telerik team
 answered on 10 Sep 2015
1 answer
389 views

I am trying to add Excel like filtering for a dynamic RadGrid. I found this example that shows filtering with client-side binding: http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/filtering/basic-filtering/defaultcs.aspx. However, I do not have GridBoundColumns because my RadGrid is dynamic. How do I go about adding Excel like filtering if I do not know the columns beforehand? Please show an example.

Thanks

Eyup
Telerik team
 answered on 10 Sep 2015
4 answers
142 views
I have  RadGridView i want to display edit , delete buttons  in mouse over row , 

I would prefer not to have the button display on each row by default.
Konstantin Dikov
Telerik team
 answered on 10 Sep 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?