Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
104 views
I have a need for a server control that will perform a JS-type confirm or prompt  function and then perform a postback with the selected value from the user.

Note that this is not a client confirmation prior to running a server function, rather it is client confirmation after server procesing has already been started.

Here is the scenario:  the user submits a web page and the server logic works on it.  During processing the logic detects a condition that requires user feedback, so a control is necessary that will pop up a JS confirm/prompt and then postback the answer so that processing can continue. 

Will any of your controls do that?  If not, do you have any documentation or samples on how I could build my own control?
Marin
Telerik team
 answered on 29 Sep 2010
4 answers
122 views
I have multiple RadGrids on the same page, they all display different data and they all have different names. When the page loads, I get this error:

Microsoft JScript runtime error: Sys.ArgumentException: Value must not be null for Controls and Behaviors.
Parameter name: element

This leads to the filtering on the RadGrids not working properly, or it's very slow. Do you have a solution for this problem?
Daniel
Telerik team
 answered on 29 Sep 2010
1 answer
138 views
when I click one button and then showModalDialog wjhen I close this modaldialog window,the RadAjaxLoadingPanl appear。I don't want it to appear.
I set this in masterPage but it no use
<telerik:AjaxSetting AjaxControlID="button">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>

In content page :
<td style="width: 500px; height: 30px;">
                                                        <telerik:RadAjaxPanel ID="rapText" runat="server">
                                                            <telerik:RadComboBox ID="rcbText" runat="server" Width="493px" Style="height: auto;"
                                                                MarkFirstMatch="true" OnLoad="rcbText_Load" EnableLoadOnDemand="true" EmptyMessage="documentSelectionListBox "
                                                                AutoPostBack="True" OnSelectedIndexChanged="rcbText_SelectedIndexChanged"
                                                                Skin="WebBlue" MaxHeight="100px">
                                                            </telerik:RadComboBox>
                                                        </telerik:RadAjaxPanel>
                                                    </td>
                                                    <td>
                                                        <asp:Button ID="button" runat="server" Style="width: 75px; text-align: center; height: 25px;" Text="btnText" />
                                                    </td>

 function showPage() {
                var result = window.showModalDialog("Text.aspx", "", "dialogWidth:400px;dialogHeight:" + dialogheight + "px;toolbar=no,title:no;location=no;scroll:no;status:no;menubar=no;resizable:no;");
                var s = document.getElementById("<%=txtText.ClientID %>");
                s.Text = result;
                $find("<%=rapText.ClientID %>").ajaxRequest("ctl00_ContentPlaceHolder1_button");
            }
content code behind
this.button.Attributes.Add("onclick", "return showPage()");
Maria Ilieva
Telerik team
 answered on 29 Sep 2010
1 answer
112 views
I am trying to use a GridDropDownColumn in a rad grid.  I do not want to bind it to a datasource because it only contains 2 values (Approved/Rejected) that do not come from a database or anything.  How do I go about making this work?  Everything I find shows me that I need to bind it to a datasource.  It seems like I should be able to pass it a collection of items to use though?  The only other option I've seen is use a template column but then I need to manually handle binding each row to the appropriate DD value.  This is a huge PITA.  Any help would be appreciated. 
Vasil
Telerik team
 answered on 29 Sep 2010
1 answer
171 views

I have a autogenerated column where i am displaying values like
205 [100,55,50]
120 [50,30,40]
506 [500,3,3]

Now, i want to sort the column on the first number (numeric sort), which is apperaing before the bracket.

Please help
Arijit
Daniel
Telerik team
 answered on 29 Sep 2010
6 answers
239 views
Zooming and Scrolling causes a postback. At this time, my code simply re-reads all of the data and builds the complete chart again.
When zoomed in, scrolling can cause another postback which causes another load of all of the data etc.
Is there a way to check the control etc. on postback to find the necessary chart area and only read the necessary data?
Also, is there a way to get the scale, etc. for use in changing the amount of labels and data in the required area?
Is there an example of this available?

For instance, lets say I want a chart of the number of shares of XYZ stock sold for a given time period. I have data for the number of shares sold in each minute of each day for the past 5 years. When generating the chart for 5 years, I do not add every minute data point. I sum all of the minutes into months so that there are 60 data points, each with a month label.
I set XOnly zooming/scrolling on the chart. The user left clicks and drags to highlight the 12 data points in the year 2008. A postback occurs and the C# code does not know any better than to generate the chart in exactly the same way. Only one year of data is needed (perhaps more for the queue on either side?). But, 5 years of data is read. Now, the user sees the 12 months, each with one data point.
I would like to regenerate the chart based on the zoom/scale and scroll positions (the required data slice needed for display). In this case, I would like to sum the data (that is in minutes) into weeks instead of months and use week labels instead of month labels. That way, instead of the user seeing 12 data points, they will get 52 data points with new labels. Then, it is a true zoom into the data to reveal more details.

If the user then scrolls one page right, a postback may occur and the chart can be regenerated for just the year 2009 (or whatever overlap is necessary).
I do not expect this to happen automatically. However, I cannot find an example or any guidance on how to implement this type of zoom and scroll of the data.

What properties are available for implementing something like this?
If I can caclulate or retrieve the visual range of the chart, I can simply build the chart as a full chart and zero all chart data points before the requested range, read in the data for the requested range and zero the trailing data points outside of the requested range.


After

Giuseppe
Telerik team
 answered on 29 Sep 2010
2 answers
122 views
Hello - i downloaded the telerik software [licensed software and not trial version] around July 27 2010. While trying to use AsyncUpload i notice that the temporary files are deleted immediately. I found a answer in the forums [http://www.telerik.com/community/forums/aspnet-ajax/async-upload/known-issues-and-breaking-changes.aspx]. However after implementing the custom handler, i still notice that the temporary files are being deleted. There is an improvement after adding the handler. The firstfile that i upload is not deleted but the second file is deleted immediately before the page post back. Any suggestions on how to prevent the temporary file from being deleted.
Balaji
Top achievements
Rank 1
 answered on 29 Sep 2010
1 answer
153 views
I have two questions:

1) How do I cancel an upload using the RadUpload control?  I'm using it in conjunction with a RadProgressArea, and that has a cancel button on it, but how do I stop the upload client side (if possible) or at least tell that it was cancelled on the server?

2) I am using the RadProgressArea elsewhere in my project with custom data.  I start an operation and just use web service calls to do some work meanwhile updating the progress using the "update" method of the RadProgressArea.  After the operation is finished I use the "hide" method to stop the progress.  There are no post backs made to the server.  Once the progress has stopped, in visual studio I am getting this script running over and over again in an infinite loop:

var rawProgressData = {InProgress:false,ProgressCounters:false};

Any ideas what this is and how to stop it?
Genady Sergeev
Telerik team
 answered on 29 Sep 2010
2 answers
185 views
i have an asp button inside radgrid with an specific css.

<asp:LinkButton ID="lnkThreadTitle" CommandName="Select" runat="server" CssClass="blog_posttitle"></asp:LinkButton>

Problem is the link button inherits the rad grid "a" link css definition and wont inherit its specific css class "blog_posttitle"

Also tried to input it in the code behind lnkThreadTitle.CssClass = "blog_posttitle";

Still inherits the grid link css below

.RadGrid_Windows7 .rgRow a {
  color:#1e3287;
}


Note: goal of this is make the .blog_posttitle skinnable by anyone.

help please. how do i make the asp linkbutton inherit my specific class and not the one from radgrid.

thanks much in advance.




Daren
Top achievements
Rank 1
 answered on 29 Sep 2010
1 answer
51 views

Hello Sir,

I have a aspx page with RadDockLayout and RadDocZone controls on it. Inside RadDoczone i have used a ascx Control. Inside ascx control i have used a grid but grid's RowCommand event is not firing. But whenever i placed it outside RadDocZone it is working fine.

Please provide a solution to this problem.

Thanks
Chandan kumar
Maria Ilieva
Telerik team
 answered on 29 Sep 2010
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?