Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
335 views
Hi,

I have recently upgraded to .net 4.5.1 and Telerik 2014.1.403.45 and am getting an error in one of my pages. It is a pretty complex page and has grids, radpanes, menu, tabstrip, splitter, toolbar, tooltipmanager and other telerik controls.

The error happens when a user clicks a button that opens a radwindow. The radwindow has a content template and before opening the window we post back to update the content template.

The error is "Uncaught TypeError: Cannot read property 'id' of null"

The line that errors is "if(e[c].id==this._getUpdatePanelID()". e[c] is null. e is an array of 30 DIVs and item 26 is null (all the others are non-null)

The page is pretty complex so it's not easy to give you a test page to show you the error. I could probably put the app on an external web server although I would have to give you a username and password to use on a confidential basis.

Cheers,
Iain

The error call stack is:

(anonymous function)   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:25118
f.createDelegate   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:3
f.getHandler   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:3
f.raiseEvent   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:3
n._pageLoaded   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
n._scriptsLoadComplete   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
f.createCallback   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:3
f.createDelegate   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:3
n._loadScriptsInternal   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
n._loadScriptsInternal   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
n._loadScriptsInternal   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
n._loadScriptsInternal   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
n._loadScriptsInternal   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
n._loadScriptsInternal   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
n._loadScriptsInternal   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
n._loadScriptsInternal   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
n._loadScriptsInternal   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
n._loadScriptsInternal   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
n._loadScriptsInternal   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
n._loadScriptsInternal   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
n._loadScriptsInternal   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
n._loadScriptsInternal   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
n._loadScriptsInternal   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
n._loadScriptsInternal   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
n._nextSession   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
n._loadScriptsInternal   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
n._nextSession   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
n.loadScripts   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
n._onFormSubmitCompleted   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
f.createDelegate   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:3
f.getHandler   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:3
i   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:3
f.completed   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:3
t.Net.XMLHttpExecutor._onReadyStateChange

Marin Bratanov
Telerik team
 answered on 20 May 2014
3 answers
79 views
Hi Telerik Team,

Our company are using RadEditor and we enabled Image Editor function in Image Manager.

1. We use single web server in our environment, so we use default ImageCacheStorageLocation.
2. we override the Editor's Content Provider, all the files store in db
3. in the same folder, some of images can be displayed in Image Editor popup window but some of them are not
4. If we open an image which can be displayed in Image Editor popup window, we can see there will be 6 requests, the last two requests are images
5. if we open an image which cannot be displayed, we can only see 4 requests.

Do you have any idea why cause this issue and how can we fix it?

You can check the attachment for more details.

Thanks a lot!

Lan
Vessy
Telerik team
 answered on 20 May 2014
1 answer
114 views
I have a TreeList that contains a TextBox and an accompanying update button.

If I change the textbox and click the Update button, everything works as expected.

If I change the textbox and press Enter, the focus is stuck in the TextBox. When I then click a (submit)button outside of the TreeList, no event is triggered. If I first click anywhere outside the TextBox and outside the button and after that click the button, the click event is fired.

Of course, this problem only occur in IE (9), not in Firefox.

Anyone with a clue to why this happen?

<telerik:TreeListTemplateColumn HeaderText="Quantity">
    <ItemTemplate>
        <asp:Panel ID="Panel_Quantity" runat="server" DefaultButton="RadButton_UpdateCart">
            <asp:Label ID="Label_Quantity" runat="server" Text='<%# Eval("Quantity","{0:N0}") %>'
                Width="25px"></asp:Label>
            <asp:TextBox ID="TextBox_Quantity" runat="server" Text='<%# Eval("Quantity","{0:N0}") %>'
                Width="25px"></asp:TextBox>
            <telerik:RadButton ID="RadButton_UpdateCart" runat="server" Text="" OnClick="RadButton_UpdateCart_Click"
                CommandArgument='<%#Eval("CartItemID") %>' Icon-PrimaryIconCssClass="rbRefresh" CausesValidation="false"
                Width="25px">
            </telerik:RadButton>
        </asp:Panel>
    </ItemTemplate>
    <HeaderStyle HorizontalAlign="Left" Width="80px" />
    <ItemStyle HorizontalAlign="Left" />
</telerik:TreeListTemplateColumn>
Maria Ilieva
Telerik team
 answered on 20 May 2014
1 answer
68 views
Hi,
Our company has purchased the licensed product of telerik and would like to have some answers for the below query. 

We are not able to implement paging on the basis of groups. For example we have 5 groups and have 10 rows in each group then if we set page size to 4 then first 4 groups should be displayed and 5th group should be displayed on 2nd page. But what happens is that only 4 rows of Ist group is displayed and 12 page numbers were created.

We have to implement paging based on groups instead of total records in the groups.

Please help. Its urgent.
Pavlina
Telerik team
 answered on 20 May 2014
1 answer
123 views
Hi,
I have treelist with several templated controls. How am I supposed to read values out of these controls if they are colapsed?

Your own support says that the collapsed items are not available until expanded  (http://www.telerik.com/forums/get-all-items-in-radtreelist-include-collapse-items). Nice. Am I supposed to tell my users to expand the whole tree before saving?
Eyup
Telerik team
 answered on 20 May 2014
3 answers
170 views

I have a fairly complex page which consists of a RadGrid along with several levels of nested views along with various nested tabs, grids, and such.  While things are currently functional, they are not what is desired and I am looking for some pointers on where to go from where I am.

Currently my situation consists of the following "levels":

Level 0 - Grand Totals By Business Entity
Level 1 - Expenses Summary
Level 1 - Revenue Summary
Level 1 - HTML PIE Chart showing breakdown of overall
Level 2 - Detail Summary grouped into fixed categories
Level 3 - Per Item Detailing items represented by level 2 summary. (User insert/update/delete allowed)
Level 3 - Supporting file attachments via AsyncUpload control. (User insert/delete allowed)

Each represents a level of nesting of data.  Level zero being the topmost summary level.  Each level has a header/footer with aggregation used to produce totals.  Level 1 consists of a RadTabStrip with two RadGrids and one RadHtmlChart Pie Chart.  Level 2 has a summary grid.  Level 3 is where actual user entry occurs.

From my end users perspective, they want to keep the expanded details expanded, and their totals get updated when they insert/update/delete new items.  I seem to be able to either keep things expanded OR update the totals.  When I attempt to do both, I end up with collapsed summaries. 

Everything is server side and business object based.  All databinding is down via NeedsDataSource type binding or explicit binding on the "expanded" action command.

As I now have things my detail levels stay open and my filters are preserved.  The totals are not updated until the users select a "refresh" button and a given detail level.  This results in all child levels collapsing but they get their totals updated while preserving their filters.

I have tried all kinds of ideas from adding logic to track grouping/expanded items, to using the RadPersistanceManager process.  I suspect that I am over thinking my problem.  Does anyone have any pointers on arriving at a solution which keeps the detail/group levels in their current state while also updating the summary totals on the parent levels???

Your suggestions would be appreciated.

Viktor Tachev
Telerik team
 answered on 20 May 2014
4 answers
127 views
I have a radGrid that renders the row cells different, depending on if the cell has data. If the cell has data, then an additional line is rendered on the bottom of the cell, spanning the cell width, when the row is highlighted. The cells without any data do not render this line. This happens if enablealternatingitems is true or false, gridlines on/off. Also, the gridlines will NOT render if they are turned on.  This is my base grid code - minus all the columns. I am using Telerik.web.ui.dll version 2010.1.415.35.

<telerik:RadGrid ID="dgServices" runat="server" Width="99%" AutoGenerateColumns="False" 
   CellPadding="0" AllowMultiRowSelection="true" GridLines="Both" ShowFooter="true"  AllowPaging="false">  
   <ClientSettings EnableAlternatingItems="true" EnableRowHoverStyle="true" Selecting-AllowRowSelect="true">  
       <Scrolling AllowScroll="true" /> 
   </ClientSettings> 
   <PagerStyle Mode="NumericPages" /> 
   <HeaderStyle Font-Bold="true" /> 
   <MasterTableView Width="98%" DataKeyNames="ServiceSeq"
 The attached screen shot shows the rendering effect.
Maria Ilieva
Telerik team
 answered on 20 May 2014
1 answer
57 views
Hi,

we have upgraded to Telerik version 2014.1.225.40   and testing the page, the page (having a main grid and details grid) loads fine in IE 10..

IE 10
main & details grid looks good
IE 8
main looks good, but the
details grid header is not visible..

Attached are the screenshot.  Code snippets as well.. Any help is appreciated

Thanks,
Suryansu


<telerik:RadGrid CssClass="SecondgridElement" ID="radGrdCurrencyMapDetails" runat="server"
SkinID="RadGrid" DataSourceID="objContDSCurrencyMapDetails" OnItemCommand="radGridCurrencyMapDetails_ItemCommand"
OnItemDataBound="radGrdCurrencyMapDetails_ItemDataBound">
<MasterTableView DataKeyNames="CurrencyMapPeriodId" CommandItemDisplay="None" EditMode="InPlace">
<EditFormSettings>
<EditColumn UniqueName="EditCommandColumn1">
</EditColumn>
</EditFormSettings>
<Columns>
<%--<telerik:GridEditCommandColumn ButtonType="ImageButton" UpdateImageUrl="../App_Themes/Default/Grid/Update.gif"
EditImageUrl="../App_Themes/Default/Grid/Edit.gif" InsertImageUrl="../App_Themes/Default/Grid/AddRecord.gif"
CancelImageUrl="../App_Themes/Default/Grid/Cancel.gif" UniqueName="EditCommandColumn">
<HeaderStyle Width="7%" />
<ItemStyle HorizontalAlign="Center" />
</telerik:GridEditCommandColumn>--%>
<telerik:GridTemplateColumn UniqueName="EditCommandColumn" AllowFiltering="false">
<ItemTemplate>
<asp:ImageButton ToolTip="Edit Exchange Rate Period Map Details" ID="imgEdit" runat="server"
ImageUrl="../App_Themes/Default/Grid/Edit.gif" OnClientClick='<%#Eval("CurrencyMapPeriodId","javascript:EditExchangeRatePrdMap({0});")%>' />
</ItemTemplate>
<HeaderStyle Width="3%" />
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Output period" UniqueName="dst_period" DataField="DstPeriod"
SortExpression="DstPeriod" DataType="System.Int16">
<ItemTemplate>
<asp:Label ID="lblDstPeriod1" runat="server" Text='<%# "P"+ DataBinder.Eval(Container.DataItem,"DstPeriod") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:Label ID="lblDstPeriod" runat="server" Text='<%# "P"+ DataBinder.Eval(Container.DataItem,"DstPeriod") %>'></asp:Label>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Output year" UniqueName="dst_year" DataField="DstYear"
SortExpression="DstYear">
<ItemTemplate>
<asp:Label ID="lblDstYear1" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"DstYear") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:Label ID="lblDstYear" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"DstYear") %>'></asp:Label>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Exchange rate period" UniqueName="src_period"
DataField="Srcaperiod" SortExpression="Srcaperiod">
<ItemTemplate>
<asp:Label ID="lblSrcaperiod1" runat="server" Text='<%# "P"+ DataBinder.Eval(Container.DataItem,"Srcaperiod") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<telerik:RadComboBox ID="radCmbSrcaperiod" runat="server" DataTextField="Text" DataValueField="Value">
</telerik:RadComboBox>
<asp:Label ID="lblSrcaperiod" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Srcaperiod") %>'
Visible="false">
</asp:Label>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Exchange rate year" UniqueName="src_year"
DataField="SrcYear" SortExpression="SrcYear">
<ItemTemplate>
<asp:Label ID="lblSrcYea1r" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"SrcYear") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<telerik:RadComboBox ID="radCmbSrcYear" runat="server" DataTextField="Text" DataValueField="Value">
</telerik:RadComboBox>
<asp:Label ID="lblSrcYear" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"SrcYear") %>'
Visible="false">
</asp:Label>
</EditItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>



Eyup
Telerik team
 answered on 20 May 2014
1 answer
137 views
I want to  delete a selected node on delete key press using OnClientKeyPressing event.
But its still not working after setting the tab to treeview.

Thanks,
vsoni
Nencho
Telerik team
 answered on 20 May 2014
3 answers
139 views
Is it possible to change line series marker colour dependant on value?
Simon Channell
Top achievements
Rank 1
 answered on 20 May 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?