Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
670 views
Hi,


we're experiencing many times the error "Invalid length for a Base-64 char array". This error is written by our web site (not web application) by the AsyncPostBackError event handler of the RadScriptManager. We've got log information for this error 50/100 times a day.
We asked to the users if they see the error during navigation through pages, but only sometimes happens. In case that they see this mistake, there is a situation wherein the user clicks on a button (that is inside a form with many refresh panel, like a web email-send form, but whose fields require single validation on entry,e.g. for the Italian tax code which is calculated on the basis of the personal data) but the refresh panel starts the postback without the refresh image (also the IE loading with the refresh image inside the tab title isn't visible). So the user click multiple times on the  button and only after three or four times sees the correct refresh visualization or the render result on the browser page.

We have an error page, that is redirected by the AsyncPostbackError handler of the master page in case of error and there is a case, always on this page, wherein the user writes some data in the entries and uses option field to change the visualization, e.g. to pass to the societies data entry form, and we have log entry for errors during this navigation that comes from event handler that I mentioned and from Error page, but the user neither see the error in the web browser and the navigation never gone to the error page, but remains on the same page. This is a very strange situation, and we ask you how is possible...

Which is the cause of this error? 

We don't use any compression or other functionality on the viewstate or on ajax requests. We can observe this error only on few pages like this one I was talking about above.

The website run over a framework 4.0 pool. We use the 2012.3.1308.40 telerik reference of 2013 q1.

thanks in advance, I hope the post is complete and understandable.
we look forward for your feedback
best regards

Emanuele
M&GF Project 
Antonio Stoilkov
Telerik team
 answered on 04 Oct 2013
5 answers
341 views
hi,

i have a radpanelbar, when i click the parent item or any sub item, the screen reloaded. 

1. how do i prevent the screen from reload the whole page? 
2. i have a radwindow open, when the screen reload or i press F5, the radwindow dissapear. how do i keep the radwindow open after refresh?

thanks,
Richard
Princy
Top achievements
Rank 2
 answered on 04 Oct 2013
5 answers
159 views
Hi - 

We're using the 2010.3.1317 version of RadAsyncUpload control. We've had to turn off the silverlight and flash modules because they cause problems for our MAC clients. After turning these off though the control no longer works in IE8 ( running IE8 document mode and browser mode). The issue is that when you click the select button of the control the upload dialog does not appear. 

Any ideas?

Thanks.
Shinu
Top achievements
Rank 2
 answered on 04 Oct 2013
6 answers
176 views
Hi,

I'm trying to get a grid to load its data from the client side after the parent control has been initialised.

I'm trying to use the set_datasource method to populate the grid with data from a JSON serialised DataTable from a webservice.

I want the grid to create its columns automatically from the datatable if possible.
However, when I call get_masterTableView(), null is returned.

Is what I'm trying to do possible, and if so where am I going wrong?

Thanks in advance.

Regards,
Little Jimi

Code follows:

function performSearch() 
 
    SelectorService.GetData(0,10000000, 
       ... [snip] ..., 
       UpdateGrid, SearchFailed); 
function UpdateGrid(result) 
    var tableView = $find("<%= RadGrid1.ClientID %>").get_masterTableView(); 
    tableView.set_dataSource(result); 
    tableView.dataBind();                 


        <asp:Panel ID="GridPanel" runat="server" Style="font-size: x-small; clear: both; 
            padding: 4px 2px 2px 2px;" ScrollBars="Auto" Height="200px" Width="444px"
            <Telerik:RadGrid ID="RadGrid1" runat="server" SkinID="Selector" EnableViewState="false" 
                AllowPaging="true" AllowSorting="True" AllowFilteringByColumn="true" GridLines="None" 
                AutoGenerateColumns="true" OnColumnCreated="RadGrid1_ColumnCreated"
                <ClientSettings> 
                    <ClientEvents OnRowSelected="RowSelected" OnRowDblClick="RowDblClick" /> 
                    <Selecting AllowRowSelect="true" EnableDragToSelectRows="true" /> 
                </ClientSettings> 
            </Telerik:RadGrid> 
        </asp:Panel> 

Tim
Top achievements
Rank 1
 answered on 03 Oct 2013
5 answers
170 views
Hi,
when I right to left radgrid that it's column resize is enabled ,the column resize dont work correctly and the handlers work inverse
I mean when I drag handler to left side to expand grid column the column small
Pavlina
Telerik team
 answered on 03 Oct 2013
2 answers
142 views
Hi, 

I have a radgrid holding customer notes with a column called UserUpdated.  The UserUpdated column is the last user to have updated the note in the row.  It is a template column like this:

<telerik:GridTemplateColumn DataField="UserEdited"    FilterControlAltText="Filter UserEdited column"   HeaderText="UserEdited" SortExpression="UserEdited" UniqueName="UserEdited">
    <EditItemTemplate>
                                    <asp:Label ID="UserEditedLabel2" runat="server" Text='<%# Bind("UserEdited") %>'></asp:Label>
    </EditItemTemplate>
    <ItemTemplate>
                                    <asp:Label ID="UserEditedLabel" runat="server" Text='<%# Eval("UserEdited") %>'></asp:Label>
    </ItemTemplate>
</telerik:GridTemplateColumn>



When the person hits the edit button on  that row, I want the row to continue continue to show that value while they are editing.  That way, if they cancel their edit, the grid will not have to be rebound and that cell value will not have changed.

But when they hit the update button to commit their changes, I want to intercept it and change the UerEditedLabel2.Text value to the current user's username before the commit.

I have tried probably 10 ways to do this with no luck.  

Any help would be appreciated.  Thanks.
Jonathan
Top achievements
Rank 1
 answered on 03 Oct 2013
0 answers
153 views
Hi Telerik!

There's a nonrecurring issue with uploading documents.
In some cases (10-15%) an attempt to upload a document fails (it doesn't depend on a specific document, I can successfully upload the document which failed a second ago, or I can't upload the document which I successfully uploaded a second ago). I see the red light
image and the debugger shows that the following exception occurred:

Invalid JSON: <SPAN>
<H1>Server Error in '/' Application.
<HR color=silver SIZE=1 width="100%">
</H1>
<H2><I>Object reference not set to an instance of an object.</I> </H2></SPAN><FONT face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "><B>Description: </B>An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. <BR><BR><B>Exception Details: </B>System.NullReferenceException: Object reference not set to an instance of an object.<BR><BR><B>Source Error:</B> <BR><BR>
<TABLE width="100%" bgColor=#ffffcc>
<TBODY>
<TR>
<TD><CODE>An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.</CODE> </TD></TR></TBODY></TABLE><BR><B>Stack Trace:</B> <BR><BR>
<TABLE width="100%" bgColor=#ffffcc>
<TBODY>
<TR>
<TD><CODE><PRE>
[NullReferenceException: Object reference not set to an instance of an object.]
   System.Web.Util.StringUtil.memcpyimpl(Byte* src, Byte* dest, Int32 len) +15
   System.Web.Util.StringUtil.UnsafeStringCopy(String src, Int32 srcIndex, Char[] dest, Int32 destIndex, Int32 len) +80
   System.Web.HttpWriter.Write(String s) +66
   System.Web.HttpResponse.Write(String s) +15
   Telerik.Web.UI.AsyncUpload.ResponseWriter.WriteToResponse(String response) +54
   Telerik.Web.UI.AsyncUploadHandler.ProcessUploadedFile() +171
   Telerik.Web.UI.AsyncUploadHandler.ProcessRequest(HttpContext context) +203
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) +75
</PRE></CODE></TD></TR></TBODY></TABLE><BR>
<HR color=silver SIZE=1 width="100%">
<B>Version Information:</B>&nbsp;Microsoft .NET Framework Version:2.0.50727.5466; ASP.NET Version:2.0.50727.5456 </FONT><!--
[NullReferenceException]: Object reference not set to an instance of an object.
   at System.Web.Util.StringUtil.memcpyimpl(Byte* src, Byte* dest, Int32 len)
   at System.Web.Util.StringUtil.UnsafeStringCopy(String src, Int32 srcIndex, Char[] dest, Int32 destIndex, Int32 len)
   at System.Web.HttpWriter.Write(String s)
   at System.Web.HttpResponse.Write(String s)
   at Telerik.Web.UI.AsyncUpload.ResponseWriter.WriteToResponse(String response)
   at Telerik.Web.UI.AsyncUploadHandler.ProcessUploadedFile()
   at Telerik.Web.UI.AsyncUploadHandler.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
--><!--
This error page might contain sensitive information because ASP.NET is configured to show verbose error messages using &lt;customErrors mode="Off"/&gt;. Consider using &lt;customErrors mode="On"/&gt; or &lt;customErrors mode="RemoteOnly"/&gt; in production environments.-->

I use a custom http handler, yet I'm pretty sure that it's not the reason of the exception due to the call stack.
Besides, if it were it would throw this exception at 100% rate.

Can you help?

Thanks,
Victor
Victor
Top achievements
Rank 1
 asked on 03 Oct 2013
2 answers
96 views
I need to have a radio button list (Event Type) on the insert and edit templates that, when selection is changed, another drop-down resource (Event Category) is refreshed with a different data source containing the categories for the selected event type.

I'm not really certain how to begin. What postback event do I use to re-populate the categories list? Can you provide a code sample that shows how this might be done?

Thanks!!
Randy
Top achievements
Rank 1
 answered on 03 Oct 2013
1 answer
85 views

Hello,

I would like to Use Rad Calendar Multi Month Mode to display two months. By default  the current month (on the right) and last month ( on the left). When I navigate to the next month I would like the current month (on the left)  and next month on the right.

Is this possible with Rad Calendar?

 

Kyle

Eyup
Telerik team
 answered on 03 Oct 2013
12 answers
410 views
<telerik:GridTemplateColumn HeaderText="Employee" ItemStyle-Width="150px" UniqueName="EmployeeName">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="lblEmpName" runat="server" Text="" />
                                        </ItemTemplate>
</telerik:GridTemplateColumn>
I have a radgrid with gridtemplate column of type linkbutton like the sample shown.
1)  When i export the grid to excel, the linkbuttons still linkable,underlined,blue color. I want to export like any label not linkable,not     underlined and change it's font color.

2) I want to add worksheets to my excel file with different data sources.
Keith
Top achievements
Rank 1
 answered on 03 Oct 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?