Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
64 views
I am attempting to recreate the Grid - Edit on Double-click in a SharePoint 2010 web part.  I have successfully added the script to the page using a ClientScriptManager in the PreRender method.  I also generate my RadAjaxManager in OnInit.

However, when I double click on an item I receive an error on the page, "'null' is null or not an object"

The line number it corresponds to in the page source is
$find("<%= RadGrid1.ClientID %>").get_masterTableView().editItem(editedRow);
within the RowDblClick function.

Any help would be appreciated.

Thanks!




Tsvetoslav
Telerik team
 answered on 31 May 2013
1 answer
128 views
I am experiencing a problem about the postback logic on RadGrid.

I dynamically create and send columns to the RadGrid object. I put RadTextBoxes in the grid, and fill them with information. I also name the RadTextBoxes and I am able to reach themusing this code:

 foreach (GridDataItem dataItem in grdSource.MasterTableView.Items)
            {
                if (dataItem.ItemType == GridItemType.Item)
                {
                    foreach (GridTemplateColumn column in grdSource.Columns)
                    {
                        RadTextBox txtField = (RadTextBox)dataItem.FindControl("txtColumnName");
                        if (txtField != null)
                            txtField.Text =/*  Stuff I will do */;
                    }
                }
            }

This code works well, if I run it right after I fill the grid. 

But here is the problem: After all these done, I change something on the textbox, then I click some button and do a postback, If I put the same code to the click event of the button, then this code doesn't work. And my RadGrid lost all its data.

What should I do?
Princy
Top achievements
Rank 2
 answered on 31 May 2013
1 answer
108 views
For whatever reason, when I set the width from JavaScript, frozen columns stop working, they are no longer frozen in place, I can't seem to find a work around either including repainting it.

This is where the grid starts and is set to have frozen columns:
<telerik:RadGrid ID="OrganizationalErrorsGrid" runat="server" OnItemDataBound="onItemDataBound"
        OnItemCreated="onItemCreated" AllowSorting="true" OnSortCommand="onSorting" >
        <ClientSettings>
            <%-- <Selecting AllowRowSelect="true" /> --%>
            <Scrolling FrozenColumnsCount="3" AllowScroll="True" UseStaticHeaders="True" />
            <ClientEvents OnGridCreated="getwithdrawnEmployeesGrid" />
        </ClientSettings>
And this is my javascript that handles resizing:
function jsUpdateSize() {
            var grid = document.getElementById("<%=OrganizationalErrorsGrid.ClientID%>");
            var width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
            if (width > 1650)
                grid.style.width = "1533px";
            else if (width > 680)
                grid.style.width = (width-80).toString() + "px";
            else
                grid.style.width = "600px";
        }
Any ideas or more info that you need? 

Thanks in advanced
Venelin
Telerik team
 answered on 31 May 2013
3 answers
150 views
Hi all,
I have a Sharepoint 2007 WSS farm and I have deployed the editor Telerik RadEditor for MOSS. Everything ok, but when I add the webpart on my pages (not exist a list) only works if modify the content by me. If to change is another user, changes are seen only in his personal view, but I, from my pc, can not see them. Is there any function that I need to activate?

Thanks,
Alessandro
Stanimir
Telerik team
 answered on 31 May 2013
2 answers
85 views
Hi,

Currently I am reviewing the most recent ASP.NET Ajax toolkit available from Telerik

With regards to the ASP.NET Ajax RadGrid, is it possible to achieve a multi-record insert functionality similar to that available out of box with the Silverlight RadGrid? Would there be any examples available of ASP.NET Ajax RadGrid implementations that have achieved multi-record insert functionality?
Evidently this would achievable with javascript client side however I would like to know of any known patterns to approach extension of the ASP.NET Ajax Telerik Rad Grid/

Kind regards,

Jean-Paul
Jean-Paul
Top achievements
Rank 1
 answered on 31 May 2013
5 answers
419 views
Hi,
If there is more than one  PivotGridAggregateField (lets say Aggregate="Sum") it adds "Sum of <filedname>" header.
So how can I change "Sum of <filedname>" and more over; "{0} Total" , "Grand Total" texts? I need to localize those strings.

TIA
Eyup
Telerik team
 answered on 31 May 2013
3 answers
87 views
How do you leverage both the Drill Down function and the Rendered Fields together? I see example of each, just not together. I do not want to use grouping. Thanks in advance.
Peter Filipov
Telerik team
 answered on 31 May 2013
5 answers
162 views
Hi .
I have a Scenrio. I want to use RadAlert instead Javascript alert when out of range is Selected in RadCalender. 
For description I am attaching a Screen cast. 
Any Help ?

http://screencast.com/t/6ijQg1Oqc

Regards:
Kamran
Eyup
Telerik team
 answered on 31 May 2013
5 answers
277 views
Hi All, 
I got this RadSplitter test page which takes 100% of the browser's height.
But this only seems working when there is no content before the splitter. If I have some other content above the div that contains RadSplitter this is not working. I am expecting the RadSplitter to take the remaining height available (leaving 120px on top).
Please help me to achieve this. I have tested this in IE 8 and FF 3.5.

Please note I have added 

<

 

div style="height:120px;">

 

    some other content

 

</div>

 

on top of the div that contains RadSplitter.
<%@ Page Language="C#" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
    <title>Testled Page</title> 
    <style type="text/css">   
    html, body, form   
    {   
        height: 100%;   
        margin: 0px;   
        padding: 0px;   
    }   
    </style> 
</head> 
<body> 
    <form id="form1" runat="server">  
        <asp:ScriptManager ID="ScriptManager1" runat="server">  
        </asp:ScriptManager> 
        <div style="height:120px;">  
           some other content  
        </div> 
        <div style="height:100%;">  
        <telerik:RadSplitter ID="s1" runat="server" Orientation="Horizontal" Height="100%" Width="100%">  
            <telerik:RadPane ID="p1" runat="server" Height="150px">  
                NAME:  
                <asp:Label ID="NAMELabel" runat="server" Text="TESTER"></asp:Label> 
                <br /> 
            </telerik:RadPane> 
            <telerik:RadSplitBar ID="b1" runat="server" CollapseMode="Both" /> 
            <telerik:RadPane ID="P2" runat="server">  
                DESCRIPTION:  
                <asp:TextBox ID="DESCRIPTIONTextBox" runat="server" Text="Test Splitter."></asp:TextBox> 
                <br /> 
            </telerik:RadPane> 
        </telerik:RadSplitter> 
        </div> 
    </form> 
</body> 
</html> 
 

Thanks.
Vessy
Telerik team
 answered on 31 May 2013
1 answer
83 views
we have a radgrid in a usercontrol created programatically and cusom command template created programatically having different buttons like links , export to excel, export to word , export to PDF and export to CSV.  grid is ajaxified by RadAjaxmanager. Ajax is disabled on export action.
below is the code snipped used to disable ajax on grid export.
   
  <telerik:RadScriptManager ID="RadGridListScriptManager" runat="server" />
   <telerik:RadCodeBlock ID="RadGridListCodeBlock" runat="server">    
  <script type="text/javascript">
  function onRequestStart(sender, args) {
                        if ((args.get_eventTarget().indexOf("ExportToExcelButton") >= 0) || (args.get_eventTarget().indexOf("ExportToCsvButton") >= 0) || (args.get_eventTarget().indexOf("ExportToWordButton") >= 0) || (args.get_eventTarget().indexOf("ExportToPdfButton") >= 0)) {
                            args.set_enableAjax(false);
                        }
                    }

           </script>
           </telerik:RadCodeBlock>  
           <telerik:RadAjaxManager ID="RadGridListAjaxManager" runat="server">
             <ClientEvents OnRequestStart="onRequestStart" />
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="RadGridList">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="RadGridList" LoadingPanelID="RadGridListAjaxLoadingPanel" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>               
            </telerik:RadAjaxManager>
            <telerik:RadAjaxLoadingPanel ID="RadGridListAjaxLoadingPanel" runat="server" Transparency="20"
                CssClass="MyAjaxLoadingPanel" BackColor="#E0E0E0">
                <table style="width: 100%; height: 100%;">
                    <tr style="height: 50%">
                        <td align="center" valign="middle" style="width: 50%">
                            <asp:Image ID="Image1" runat="server" AlternateText="Loading..." class="MyLoadingImage"
                                BorderWidth="0px" ImageUrl="~/images/loading1.gif"></asp:Image>
                        </td>
                    </tr>
                </table>
            </telerik:RadAjaxLoadingPanel>


The issue is when we export and then click on links , the same export action is getting performed and grid doesnot reloads.
I tried to use the below code for registerpostbackcontrols for export buttons but its not working after grid operations like filtering, paging,sorting is performed and exported.

Protected Sub RadGridList_ItemCreated(sender As Object, e As Telerik.Web.UI.GridItemEventArgs)
 
  If (TypeOf e.Item Is GridCommandItem) Then
               Dim btncmd As ImageButton = TryCast(TryCast(e.Item, GridCommandItem).FindControl("ExportToExcelButton"), ImageButton)
               RadGridListScriptManager.RegisterPostBackControl(btncmd)
 
               btncmd = TryCast(TryCast(e.Item, GridCommandItem).FindControl("ExportToWordButton"), ImageButton)
               RadGridListScriptManager.RegisterPostBackControl(btncmd)
 
               btncmd = TryCast(TryCast(e.Item, GridCommandItem).FindControl("ExportToCsvButton"), ImageButton)
               RadGridListScriptManager.RegisterPostBackControl(btncmd)
 
               btncmd = TryCast(TryCast(e.Item, GridCommandItem).FindControl("ExportToPdfButton"), ImageButton)
               RadGridListScriptManager.RegisterPostBackControl(btncmd)
           End If
 
End Sub
we need your help on this at earliest.
Kostadin
Telerik team
 answered on 31 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?