Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
162 views
Hi,

My web app uses several radWindows that return a parameter to the parent window via a callback JS function.  These work fine, but I'd like to improve the current behavior with error trapping code that can close the form before the entire ASPX page is sent to the browser.

In the ASPX pages displayed by the radWindow, I'd like to start trapping for session time-out and other conditions within the page_load event.  To optimize performace, I'd like to use Response.Write (or Response.WriteFile) to send a custom response (simple HTML form + JS) to the browser that gracefully closes the window, bypassing the load of ASPX page content.  This approach will be much faster than injecting JS into the ASPX page via RegisterStartupScript (or similar method) that invovles the normal ASPX page lifecycle.
But in order to write a custom response to the browser, I need to ensure the response page includes the necessary Telerik JS libraries that let me (a) close the radWindow and (b) return a value to the parent page.  

Can you tell me how to do this?  Are there a set of core Telerik JS libraries that I need to include?  Ideally, I can continue using JS functions such as GetRadWindow() in order to close the form, such as:
var currentWindow = GetRadWindow();
currentWindow.argument = arg;
currentWindow.close();

Thanks.
Tervel
Telerik team
 answered on 13 Apr 2009
3 answers
52 views
Hi.

I'd like to have my items being dragged (not yet dropped) to be enclosed in a fitted "square" like it does in the demo. My version have thoses items in a black bordered white square with a height fixed for about 8 rows so that if I drag just one item, I see a white area under my dragged item of  about 7 rows height. Dragging between 1 and 8 items doesn't change this box height. Dragging more than 8 rows is OK. Also sometimes the width is not well fitted (as in the demo, there is a small withe area at the right of the items) but I can live with that.

Also, how can I get the little dotted line that shows where the dragged items are gonna be dropped?

André
Sebastian
Telerik team
 answered on 13 Apr 2009
10 answers
222 views
I am trying to put together what I consider is a very simple chart. I have a SQL data source setup that returns 15 rows of 4 columns. Column 1-3 are numeric values, column 4 is a text string. I want a simple bar chart with col1 plotted against the left Y axis and col2 and col3 plotted against the right Y axis. The X axis should be the labels in col4. In 3 hours of playing with a RADChart I have been unable to accomplish this. I've been thru the Trainer video and tried to figure out what is what in the RADChart pdf.
What I have gotten is the chart shrinking down to a 14X16 pixel box. After a resize of the chart the center plot area says there is no or an empty series. I've tried autosize and manually entering entering labels on the X axis and all I ever get is 7 labels. Is there anyone who can give me a simple walkthrough of how to accomplish this?

Thanks,

JB
Giuseppe
Telerik team
 answered on 13 Apr 2009
1 answer
112 views
Hello,

i have a multiview with 2 views and a radgrid in each view on an aspx page. The radgrid in the first view loses the skin in the following circumstances:
  1. switching the multiview to the second view
  2. pressing a button in the second view which opens a child window via onclick event and window.open()
  3. closing the childwindow (the onunload event of the childwindow does the following: window.opener.document.forms(0).submit())
  4. the childwindow is closed and the page is refreshed
  5. the the radgrid in view two has its normal appearance
  6. switching to view one via a button shows me a ragrid and radcomboboxes without skins (i'am using only the embbeded skins)

What should i do? I tried the radstylesheetmanger but the same happens.

Sebastian
Telerik team
 answered on 13 Apr 2009
1 answer
112 views
I am using AJAX Q2 2008 telerik version.
In 3 level hierarchical grid,It shows me System.Data.SyntaxErrorException: Syntax error: Missing operand after 's' operator.
when data binding to grid(specially when i tried to save apostrophe(') character) .
If i change or add telerik latest version,still it shows me error.

Help me.
Tsvetoslav
Telerik team
 answered on 13 Apr 2009
3 answers
117 views
I have noticed in the example of the Radwindow versus the browser-popup that the browser-popup fills the entire screen when maximized. but the Radwindow does not. how would one achieve the same functionallity but with the Radwindow.
Georgi Tunev
Telerik team
 answered on 13 Apr 2009
9 answers
309 views
hello,

i have two RadComboBoxes on my page: CarMake, CarModel. when the user selects a CarMake, it initiates a callback via an RadAjaxManager and updates the list collection on CarModel via code-behind.

this works.

however, a problem -- my users use a keyboard and need to tab from one item to the next. currently after the callback completes and the second RadComboBox is bound, the focus is lost..it defaults to the top of the page. no good. ive tried setting the focus in my callback code-behind, but it does nothing.

1) how can i set the focus after an ajax databind?

2) is this how i should be doing the ajax-goodness? or should it use client-side events & handlers?

my ASPX

<Telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
    <AjaxSettings> 
        <%-- Make updates Model --%> 
        <Telerik:AjaxSetting AjaxControlID="rcbVehicleMake"
            <UpdatedControls> 
                <Telerik:AjaxUpdatedControl ControlID="rcbVehicleModel" /> 
            </UpdatedControls> 
        </Telerik:AjaxSetting> 
    </AjaxSettings> 
</Telerik:RadAjaxManager> 
 
 
<span class="formLabel">Make:</span><br /> 
<!-- by setting AutoPostBack=true, and using the AjaxManager, we can make this auto-update the Model list --> 
<Telerik:RadComboBox ID="rcbVehicleMake" DataValueField="MakeCode" DataTextField="Description" Width="150" DropDownWidth="200" ShowToggleImage="false" AllowCustomText="False" MarkFirstMatch="true" OnSelectedIndexChanged="rcbVehicleMake_SelectedIndexChanged" AutoPostBack="true" runat="server"/> 
 
<br/><br/> 
 
<span class="formLabel">Model:</span><br /> 
<Telerik:RadComboBox ID="rcbVehicleModel" DataValueField="ModelID" DataTextField="Description" Width="80" DropDownWidth="125" ShowToggleImage="false" AllowCustomText="False" MarkFirstMatch="true" runat="server" /> 


code-behind

protected void rcbVehicleMake_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e) 
    SetVehicleModel(); 
 
private void SetVehicleModel() 
    //clear old values 
    rcbVehicleModel.Items.Clear(); 
    rcbVehicleModel.Text = string.Empty; 
 
    string make = rcbVehicleMake.SelectedValue; 
 
    if (Strings.Exists(make)) 
    { 
        rcbVehicleModel.DataSource = Lookups.GetVehicleModelsByMake(make); 
        rcbVehicleModel.DataBind(); 
        rcbVehicleModel.Items.Insert(0, new RadComboBoxItem()); 
 
        //trying to set the focus..not working 
        rcbVehicleModel.Focus(); 
        Page.SetFocus(rcbVehicleModel); 
    } 



thanks!
matt
Veselin Vasilev
Telerik team
 answered on 13 Apr 2009
3 answers
93 views
Is there a method that I can call that will get me the NavigateUrl of a RadToolBarButton?
Yana
Telerik team
 answered on 13 Apr 2009
1 answer
114 views
There's been added a new "Document Manager" button right next to the URL textbox in the editor's "Hyperlink Manager".

Is it possible to hide this button?

Cheers,
Ramon
Rumen
Telerik team
 answered on 13 Apr 2009
1 answer
62 views
I have installed the radeditor version 5.4 but have noticed I'm not getting all the tool set that appears on Teleriks page.  Why might that be?  My tool set doesn't look that different then the out of the box sharepoint tool set.   This link shows telerik's radeditor tool having flash, media player, letter strike through, full justification, print, and others.  It just seems we are missing something.  Are there two versions like an ASP.Net and AJAX version or a full featured version?  This is what Telerik shows on their web site.  Link
Stanimir
Telerik team
 answered on 13 Apr 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?