Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
346 views

I am working on a simple form to generate a report in Excel format. There are a few text boxes and date pickers and then a button. The event for the button runs a length SQL query and then creates an excel file with the results and presents the file using Response.OutputStream. The page in itself works fine but I'd like to add a RadAjaxLoadingPanel while the button event is working. I've tried at least a half dozen different methods and it seems all I can ever get is either the loading panel goes off but the file is never presented  or nothing happens at all. Can someone point me to a demo or something that does this? 

 

I've tried the AjaxLoadingPanel Demo and the AjaxLoadingPanel - Explicit Show/Hide

Marin Bratanov
Telerik team
 answered on 24 Aug 2017
1 answer
108 views
I have search box for size column in telerik grid row. Now when I try to edit particular cell in batch edit mode, default value doesn't not appear for search box. I've attached screenshot.

What could be the root cause. 
In other edit mode : inline, Embedded form and Popup its working.
Marin Bratanov
Telerik team
 answered on 24 Aug 2017
10 answers
163 views

I have a hierarchical grid with two levels.

The Parent grid rows contain a student's ID (student_reference) , Name, course id (Expr1) , class code (Group) and the total number of notes created for that student.

The Detail rows contain the note details ( Student ref ,Note Type,Subject, Note content, Date created and ID of the member of staff who created the note)

When a new note is created it is added to the detail grid and the notes database table.

I now need to know how to update the parent row with the total number of notes when a new note is added. I need to also update the associated dataset which is a property of the User control containing the grid..

Rows can only be added to the notes database table. They cannot be deleted or updated.

Below is the definition of the grid from the ascx file.

<telerik:radgrid runat="server" id="RadGridClassOverview" showfooter="false" width="100%" enableajax="true" showstatusbar="true"
    allowaddingrecords="false" autogeneratecolumns="false" allowsorting="false" allowpagesizeselection="False"
    onitemdatabound="OnItemDataBoundHandler" ondetailtabledatabind="RadGridOverview_DetailTableDataBind"
    allowpaging="True" skin="Bootstrap" pagesize="30" onneeddatasource="RadGridClassOverview_NeedDataSource"
    OnItemCommand="RadGridClassOverview_ItemCommand" onprerender="RadGridClassOverview_PreRender" cssclass="table table-striped">
    <PagerStyle Mode="NextPrev" Position="Bottom" PageSizeControlType="RadComboBox"></PagerStyle>
    <MasterTableView AutoGenerateColumns="false" DataKeyNames="Student_reference, Expr1, Group" TableLayout="Auto" HierarchyLoadMode="ServerOnDemand" EnableHierarchyExpandAll="true" HierarchyDefaultExpanded="false" EditMode="EditForms" RetainExpandStateOnRebind="False">
                    <DetailTables>
            <telerik:GridTableView AutoGenerateColumns="false" DataKeyNames="note_ref" Width="100%"   EnableHierarchyExpandAll="true" CommandItemDisplay="Top" EditMode="EditForms" name="GridNotes">
                <CommandItemSettings AddNewRecordText="Create New Note" />
                     <NoRecordsTemplate>
      <div>
        There are no notes to display</div>
    </NoRecordsTemplate>
                 <Columns>
                    <telerik:GridButtonColumn CommandName="Edit" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" Text="View" UniqueName="View">
                    </telerik:GridButtonColumn>
                     <telerik:GridBoundColumn DataField="student_id"  HeaderText="note_ref" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" UniqueName="Student_ref" Display="false" runat="server" ReadOnly="true">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="note_ref" DataType="System.Int32" HeaderText="note_ref" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" UniqueName="note_ref" Display="false" runat="server" ReadOnly="true">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="course" HeaderText="code" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" UniqueName="course" Display="false" runat="server" ItemStyle-Width="10px" HeaderStyle-Width="10px">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="course_name" HeaderText="Subject" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" UniqueName="qualname" HeaderStyle-Width="200px" ItemStyle-Width="200px" ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="noteType" HeaderText="Type" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" UniqueName="noteType" Display="false">
                    </telerik:GridBoundColumn>
                      <telerik:GridBoundColumn DataField="typeDesc" HeaderText="Note Type" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" UniqueName="typeDesc" ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                    </telerik:GridBoundColumn>
                    <telerik:GridDateTimeColumn DataField="created" HeaderText="Created" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" UniqueName="created" DataFormatString="{0:dd/MM/yyyy}">
                    </telerik:GridDateTimeColumn>
                    <telerik:GridBoundColumn DataField="created_by" HeaderText="Created" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" UniqueName="created_by" Display="false" ItemStyle-HorizontalAlign="Left">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="note_content" HeaderText="Created" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" UniqueName="note_content" Display="false" ItemStyle-HorizontalAlign="Center">
                    </telerik:GridBoundColumn>
                </Columns>
                  <EditFormSettings EditFormType="Template">
            <EditColumn UniqueName="View">
            </EditColumn>
                <FormTemplate>
                <table style="width: 85%" border="1" >
                     <asp:Panel ID="pnlAdd" runat="server" Visible="false">
                    <tr style="border:solid">
                                <td colspan="2"><b>Create New Note</b><br /></td>
                  </tr>
                              <tr>
                                <td colspan="2">
                                    <asp:Label ID="lblqualcode" runat="server"  Text='' ></asp:Label>
                                    <br />
                                    Select Note Type<br />
                                        <telerik:RadComboBox ID="RadComboBoxNoteType" runat="server" EmptyMessage="Select NoteType"  CausesValidation="False"
                                                   HighlightTemplatedItems="true" Height="100px" Width="450px" DropDownWidth="450px"  EnableAutomaticLoadOnDemand="False" AutoPostBack="true"
                                                  AppendDataBoundItems="true" Visible="true"   CssClass="ComboBox" OnSelectedIndexChanged="RadComboBoxNoteType_SelectedIndexChanged">
                   </telerik:RadComboBox>
                                </td>
                            </tr><tr><td colspan="2">Mindset habits<br />Please select the mindset habits to link to this note</td></tr>
                        <tr><td colspan="2">
                            <telerik:RadListBox ID="ListBoxhabits" runat="server" RenderMode="Lightweight" CheckBoxes="true">
                            <Items>
                           <telerik:RadListBoxItem Text=" Time" />
                          <telerik:RadListBoxItem Text=" Engagement" />
                          <telerik:RadListBoxItem Text=" Response" />
                          <telerik:RadListBoxItem Text=" Resources" />
                         <telerik:RadListBoxItem Text=" Organisation" />
                       </Items>
                     </telerik:RadListBox>
                            </td></tr>
                                
                                   <tr>
                                <td colspan="2">
                                    Enter Note content
                <br />
                                  <asp:TextBox ID="txtNoteContent" runat="server" Text=""  CssClass="notecontent"  TextMode="MultiLine" BorderStyle="Solid" style="width:450px">
                                 </asp:TextBox><br />
                                   <br />
                     <br /><br />
                                  <asp:Label ID="lblMessage" runat="server"  Text=''></asp:Label>
                                    </td>
                                   </tr>
                                 <tr>
                                <td  colspan="2">
                                         <asp:Button ID="btnSave" CausesValidation="False" Text="Save"
                                        runat="server"  AutoPostBack="True" CommandName="PerformInsert"></asp:Button>&nbsp;
                                    <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"
                                        CommandName="Cancel"></asp:Button>
                                </td>
                            </tr>
                            </asp:Panel>
                      <asp:Panel ID="Paneldetail" runat="server" Visible="false">
                    <tr>
                                <td colspan="2">
                                    <b>Note Details</b><br />
                                </td>
                    </tr>
                     <tr>
                                <td colspan="2">
                               <asp:Label ID="LabelDetails" runat="server"  Text='<%# Bind("note_content") %>'></asp:Label>
                        </td>
                    </tr>
                       </asp:Panel>
                </table>
            </FormTemplate>
        </EditFormSettings>
            </telerik:GridTableView>
        </DetailTables>
        <Columns>
             <telerik:GridBoundColumn DataField="Student_reference" HeaderText="Student ID" UniqueName="Student_reference" runat="server" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true">
            </telerik:GridBoundColumn>
             <telerik:GridBoundColumn DataField="Expr1" HeaderText="class" UniqueName="Expr1" Display="false" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Group" HeaderText="class" UniqueName="Group" Display="false" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left">
            </telerik:GridBoundColumn>
            <telerik:GridCalculatedColumn DataFields="p_forenames,p_surname" Expression='{0}+"&nbsp;" +{1}' HeaderText="Name" UniqueName="student_name" Display="True" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="250px">
            </telerik:GridCalculatedColumn>
            <telerik:GridBoundColumn DataField="p_surname" HeaderText="Name" UniqueName="p_surname" Display="false" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="p_forenames" HeaderText="Name" UniqueName="p_forenames" Display="False" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="attendance" HeaderText="Attendance" UniqueName="attendance" DataFormatString="{0:N0}%"  Display="True"  HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"  ItemStyle-Width="100px">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="spms_level" HeaderText="SPMS Level" UniqueName="spms_level" Display="True" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="150px">
            </telerik:GridBoundColumn>
            <telerik:GridButtonColumn DataTextField="total_notes" HeaderText="Total Notes" UniqueName="total_notes" runat="server" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" CommandName="ViewNotes" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"  ItemStyle-Width="100px"  HeaderStyle-Wrap="true">
            </telerik:GridButtonColumn>
        </Columns>
         <PagerStyle Mode="NextPrev" Position="Bottom" PageSizeControlType="RadComboBox"></PagerStyle>
           </MasterTableView>
          <ClientSettings EnablePostBackOnRowClick="true">
           <Selecting AllowRowSelect="true"></Selecting>
        </ClientSettings>
     <SelectedItemStyle BackColor="Gray" BorderColor="Blue" BorderStyle="Dashed" BorderWidth="1px" />
</telerik:radgrid>

 

 

Pavlina
Telerik team
 answered on 24 Aug 2017
1 answer
188 views
I want to add Separator in RadToolBar as per attached screenshot

<telerik:RadToolBar ID="accoADEGridToolBar" runat="server"
                            OnClientButtonClicking="onToolBarClientButtonClicking"
                            AutoPostBack="true"
                            Width="99.50%" OnClientLoad="onToolBarClientLoad" OnLoad="accoADEGridToolBar_Load">
                            <Items>
                                <telerik:RadToolBarButton Text="Refresh" CommandName="RebindGrid" ImageUrl="Images/Refresh.gif">
                                </telerik:RadToolBarButton>
                                <telerik:RadToolBarDropDown CssClass="drp_selectedMode" Text="Edit Mode:" >
                                    <Buttons>
                                        <telerik:RadToolBarButton CssClass="drp_BatchEditMode" Text="Batch" Value="Batch" CommandName="Batch"></telerik:RadToolBarButton>
                                        <telerik:RadToolBarButton CssClass="drp_EditFormsEditMode" Text="Embedded Form" Value="Embedded Form" CommandName="EditForms"></telerik:RadToolBarButton>
                                        <telerik:RadToolBarButton CssClass="drp_InPlaceEditMode" Text="Inline" Value="Inline" CommandName="InPlace"></telerik:RadToolBarButton>
                                        <telerik:RadToolBarButton CssClass="drp_PopUpEditMode" Text="Modal Dialog" Value="Modal Dialog" CommandName="PopUp"></telerik:RadToolBarButton>
                                    </Buttons>
                                </telerik:RadToolBarDropDown>
                                <telerik:RadToolBarButton Text="Edit selected" CommandName="EditSelected" ImageUrl="Images/Edit.gif" Visible='<%# accoADEGrid.EditIndexes.Count == 0 && accoADEGrid.MasterTableView.EditMode != GridEditMode.Batch %>'>
                                </telerik:RadToolBarButton>
                                <telerik:RadToolBarButton Text="Save changes" CommandName="UpdateEdited" ImageUrl="Images/Update.gif" Visible='<%# accoADEGrid.EditIndexes.Count > 0 %>'>
                                </telerik:RadToolBarButton>
                                <telerik:RadToolBarButton Text="Save pending changes" CommandName="SaveChanges" PostBack="false" ImageUrl="Images/Update.gif" Visible='<%# accoADEGrid.MasterTableView.EditMode == GridEditMode.Batch %>'>
                                </telerik:RadToolBarButton>
                                <telerik:RadToolBarButton Text="Insert new row" PostBack="<%# accoADEGrid.MasterTableView.EditMode != GridEditMode.Batch %>" CommandName="InitInsert" ImageUrl="Images/AddRecord.gif" Visible='<%# !accoADEGrid.MasterTableView.IsItemInserted %>'>
                                </telerik:RadToolBarButton>
                                <telerik:RadToolBarButton Text="Save new row" CommandName="PerformInsert" ImageUrl="Images/Insert.gif" Visible='<%# accoADEGrid.MasterTableView.IsItemInserted %>'>
                                </telerik:RadToolBarButton>
                                <telerik:RadToolBarButton Text="Cancel (all)" CommandName="CancelAll" ImageUrl="Images/Cancel.gif" Visible='<%# accoADEGrid.EditIndexes.Count > 0 || accoADEGrid.MasterTableView.IsItemInserted %>'>
                                </telerik:RadToolBarButton>
                                <telerik:RadToolBarButton Text="Cancel pending changes" CommandName="CancelChanges" ImageUrl="Images/Cancel.gif" Visible='<%# accoADEGrid.MasterTableView.EditMode == GridEditMode.Batch %>'>
                                </telerik:RadToolBarButton>
                                <telerik:RadToolBarButton Text="Delete selected" CommandName="DeleteSelected" ImageUrl="Images/Delete.gif" Visible="<%# accoADEGrid.MasterTableView.EditMode != GridEditMode.Batch %>">
                                </telerik:RadToolBarButton>
                                <telerik:RadToolBarButton Text="Show child items" CommandName="ShowLinkedInstance" ImageUrl="Images/Edit.gif" Enabled="false" Visible='<%# liID.Value != "" && !this.Page.ClientQueryString.Contains("RelationID") %>'>
                                </telerik:RadToolBarButton>
                                
                                <telerik:RadToolBarButton PostBack="false" Text="Show Query" OuterCssClass="rightButton showHideQueries" CommandName="ShowQuery" ImageUrl="Images/Refresh.gif" Enabled="true" ClientIDMode="Static"></telerik:RadToolBarButton>
                                <telerik:RadToolBarButton Text="Excel Export" OuterCssClass="rightButton" CommandName="ExportToExcel" ImageUrl="Images/Edit.gif" Enabled="true" ClientIDMode="AutoID">
                                </telerik:RadToolBarButton>
                                <telerik:RadToolBarButton Text="Fullscreen" OuterCssClass="rightButton OpenInFullscreen" CommandName="Fullscreen" ImageUrl="Images/Fullscreen.png" Enabled="true" ClientIDMode="AutoID" Visible='<%# ( Request.QueryString["DisplayMode"] != null && Request.QueryString["DisplayMode"] == "WebPart") %>'>
                                </telerik:RadToolBarButton>
                            </Items>
                        </telerik:RadToolBar>
Magdalena
Telerik team
 answered on 24 Aug 2017
1 answer
96 views

If the filename contains a 'COMBINING RING ABOVE' (U+030A) (for example U+0041 + U+030A instead of U+00C5) the SaveAs-method on the UploadedFile-object throws a file not found exception.

 

Rumen
Telerik team
 answered on 24 Aug 2017
8 answers
3.0K+ views
Hi All

i have a requirement to get the hidden column value for the rows which checkbox has been selected, can anyone come up with a good solution to complete this thing  may be client side or server side ... 

my rad grid 

            <telerik:RadGrid ID="M" runat="server" Width="99%" AllowPaging="True" EnableViewState="False"
                GridLines="None" meta:resourcekey="MResource1" AllowFilteringByColumn="true"
                OnInit="GridControl_Init" EnableLinqExpressions="false" 
                EnableEmbeddedSkins="false" AutoGenerateColumns="False">
                <HeaderContextMenu EnableEmbeddedSkins="True">
                </HeaderContextMenu>
                <FilterMenu Skin="Nediso" EnableEmbeddedSkins="false">
                </FilterMenu>
                <PagerStyle Mode="NextPrevAndNumeric" Position="TopAndBottom" AlwaysVisible="true" />
                <MasterTableView Width="100%" EnableViewState="False" AllowFilteringByColumn="true">
                   <Columns>  


                   <telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn" AllowFiltering="false">
                   <HeaderStyle Width="3%" HorizontalAlign="Justify" />
                    <ItemStyle Width="3%" HorizontalAlign="Justify" />
                            <HeaderTemplate>
                             <asp:CheckBox id="headerChkbox"  runat="server" onclick="SelectAll(this)"></asp:CheckBox>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:CheckBox id="CheckBox1" runat="server"></asp:CheckBox>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                   
                     <telerik:GridBoundColumn DataField="TOKEN" Visible="false" UniqueName="TOKEN" ReadOnly="true" >
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="FIRST NAME" HeaderText="FIRST NAME" UniqueName="FIRST NAME">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="LAST NAME" HeaderText="LAST NAME" UniqueName="LAST NAME">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="STATUS" HeaderText="STATUS" UniqueName="STATUS">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="DESIGNATION" HeaderText="DESIGNATION" UniqueName="DESIGNATION">
                    </telerik:GridBoundColumn>
                    </Columns>
                    <PagerStyle AlwaysVisible="true" Mode="NextPrevAndNumeric" Position="TopAndBottom" />
                    
                </MasterTableView>
                <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True" EnableRowHoverStyle="True">
                    <Resizing AllowColumnResize="True" />
                    <Selecting AllowRowSelect="True" />                    
                    <ClientEvents OnFilterMenuShowing="OnFilterMenuShowing"></ClientEvents> 
                    </ClientSettings>
                <FilterMenu EnableTheming="True">
                    <CollapseAnimation Type="None" />
                    <ExpandAnimation Type="None" />
                </FilterMenu>
            </telerik:RadGrid>

Christophorus Donny
Top achievements
Rank 1
 answered on 24 Aug 2017
6 answers
760 views
Hi Telerik,

since the Version 2013.1.220.35 we have a problem accessing data on the "old" way.

If you have a GridBoundColumn, which is set to Visible=false, the Text Field is not rendered anymore.

So an access like
GridDataItem item = e.Item as GridDataItem;
 
string Value = item["columnID"].Text;

does not work anymore. I get a " &nbsp;" as result.

I know, that this is not the correct way, to access data. We do it like
string Value = item.GetDataKeyValue("ID")

in most scenarios. (<MasterTableView DataKeyNames="ID">) needed of course.


But is this a feature in the new Version, or is it a bug.
We have to clear this, because we will have many adaptions in the application, if this is not supported anymore!

Thanks for your help.

KR

Lars






Christophorus Donny
Top achievements
Rank 1
 answered on 24 Aug 2017
0 answers
109 views

Hello Folks,

I am facing this problem from past one week. I request one and all to help me out ASAP if you have the solution.

We  are working with an application in ASP.NET Framework [ 3.5] and using Telerik [2009.1.527.35] version.

One of the page(.aspx) has tab panel inside. In tab we have â€˜Add’ Icon where it can open popup. This page has two JavaScript reference files i.e, File1.js and File2.js

In File1.js -> In document.ready, we calling the ‘Function1()’ as Sys.WebForms.PageRequestManager.getInstance().add_endRequest(Function1);
Function1 () – sets to varFromChange to False.

In File2.js --> In PageLoad() method we are calling the ‘Function2()’as  Sys.WebForms.PageRequestManager.getInstance().add_endRequest(Function2);
Function2 () – sets to varFromChange to True. 

 

Telerik.Web.UI.WebResource.axd library file has to execute these functions sequentially i.e., Function1() and Function2(). But in some scenarios these functions are not executing sequentially. We could not able to debug this functions as these are calling by Telerik library.

Due to this issue page data is not getting saved.


Here is Stack Trace :

Function2 [Line: 253, Col: 5], File2.js

Anonymous function [Line: 6, Col: 29366], Telerik.Web.UI.WebResource.axd
Sys.WebForms.PageRequestManager.prototype._endPostBack [Line: 15, Col: 9894], Telerik.Web.UI.WebResource.axd
Sys.WebForms.PageRequestManager.prototype._scriptsLoadComplete [Line: 15, Col: 26829], Telerik.Web.UI.WebResource.axd
Anonymous function [Line: 6, Col: 195], Telerik.Web.UI.WebResource.axd
Anonymous function [Line: 6, Col: 298], Telerik.Web.UI.WebResource.axd
Sys._ScriptLoader.prototype._loadScriptsInternal [Line: 6, Col: 44836], Telerik.Web.UI.WebResource.axd
Sys._ScriptLoader.prototype._loadScriptsInternal [Line: 6, Col: 44744], Telerik.Web.UI.WebResource.axd
Sys._ScriptLoader.prototype._loadScriptsInternal [Line: 6, Col: 44744], Telerik.Web.UI.WebResource.axd
Sys._ScriptLoader.prototype._nextSession [Line: 6, Col: 45193], Telerik.Web.UI.WebResource.axd
Sys._ScriptLoader.prototype._loadScriptsInternal [Line: 6, Col: 44844], Telerik.Web.UI.WebResource.axd
Sys._ScriptLoader.prototype._nextSession [Line: 6, Col: 45193], Telerik.Web.UI.WebResource.axd
Sys._ScriptLoader.prototype.loadScripts [Line: 6, Col: 43462], Telerik.Web.UI.WebResource.axd
Sys.WebForms.PageRequestManager.prototype._onFormSubmitCompleted [Line: 15, Col: 19820], Telerik.Web.UI.WebResource.axd
Anonymous function [Line: 6, Col: 298], Telerik.Web.UI.WebResource.axd
Anonymous function [Line: 6, Col: 29366], Telerik.Web.UI.WebResource.axd
Sys.Net.WebRequest.prototype.completed [Line: 6, Col: 67411], Telerik.Web.UI.WebResource.axd
_onReadyStateChange [Line: 6, Col: 62071], Telerik.Web.UI.WebResource.axd

Thanks in advance,

Radhakrishna G


Radhakrishna
Top achievements
Rank 1
 asked on 23 Aug 2017
0 answers
145 views

I have the following code in my web page.  I want to use static headers and allow users to be able to scroll within a RadGrid.  Here is the code:

<table>
        <tr>
            <td>
                    <asp:gridview ID="gvSites"
                                  runat="server"
                                  AutoGenerateColumns="false"
                                  ShowHeader="true"
                                  HeaderStyle-HorizontalAlign="Left"
                                  ItemStyle-HorizonitalAlign="Left"
                                  ClientSettings-Scrolling-AllowScroll="true"
                                  ClientSettings-Scrolling-UseStaticHeaders="true"
                                  Height="575px">
                        <Columns>
                            <asp:TemplateField ItemStyle-Width="100px">
                                <ItemTemplate>
                                    <asp:Label ID="lblSiteCode" HeaderText="Site Code" runat="server" Text='<%# Eval("SiteCode")%>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField> 
                            <asp:TemplateField ItemStyle-Width="130px">
                                <ItemTemplate>
                                    <asp:Label ID="lblBranchNumber" HeaderText="Branch Number" runat="server" Text='<%# Eval("BranchNumber") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField> 
                            <asp:TemplateField ItemStyle-Width="150px">
                                <ItemTemplate>
                                    <asp:Label ID="lblLocationName" HeaderText="Location Name" runat="server" Text='<%# Eval("LocationName") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>    
                    </Columns>                 
                </asp:gridview>
            </td>
        </tr>
</table>

But none of my header text is displaying.  What am I doing wrong?

 

Bob
Top achievements
Rank 1
 asked on 23 Aug 2017
2 answers
93 views

Very simple case, the X-axis has dates, but the day _before_ is being shown on the access.  Date input looks like:

2017/8/7

2017/814

But 0/6 and 8/13 are shown.  See attachment.  This happens in all cases regardless of number of records.

<telerik:RadHtmlChart ID="burndownChart" runat="server" DataSourceID="dsBurndown" Skin="Web20">
            <PlotArea>
                <XAxis DataLabelsField="WeekDate">
                </XAxis>
                <YAxis Name="$">
                </YAxis>
                <Series>
                    <telerik:AreaSeries AxisName="$" DataFieldY="Spent" Name="Spent" Stacked="True">
                        <LabelsAppearance Visible="true" DataField="WeekDate"></LabelsAppearance>
                    </telerik:AreaSeries>
                    <telerik:AreaSeries AxisName="$" DataFieldY="Remaining" Name="Remaining" Stacked="True">
                    </telerik:AreaSeries>
                </Series>
            </PlotArea>
        </telerik:RadHtmlChart>
Marin Bratanov
Telerik team
 answered on 23 Aug 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?