Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
308 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
105 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
145 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
124 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
103 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
126 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
70 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
63 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
361 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
7 answers
132 views
Please tell me how to validate the cell values.  If the two values are the same, error it out and do not update them.  Please refer to the PNG.
Angel Petrov
Telerik team
 answered on 03 Oct 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?