Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
224 views
Hi,

I'm attempting to switch the RadTab and RadMultiPage when my ASP.NET page loads using something like this:

tabStrip.SelectedIndex = (int)Session["SelectedTabIndex"];  
multPage.FindPageViewByID(tabStrip.SelectedTab.PageViewID).Selected = true

However, as my Page only Renders the selected Tab the RadPageView doesn't actually exist and the FindPageViewByID returns null.

Is there a way to select a different Page View and keep the renderselectedpageonly="true" property?

Thanks

Dave
Martin
Top achievements
Rank 1
 answered on 24 Nov 2008
2 answers
213 views
<p><asp:Button ID="rightButton" runat="server" Text="Right" /> | <asp:Button ID="leftButton" runat="server" Text="Left" /></p
<p><a href="javascript:void(0);" onclick="$find('<%=RadRotator1.ClientID%>').showNext(Telerik.Web.UI.RotatorScrollDirection.Right);">Right</a> | <href="javascript:void(0);" onclick="$find('<%=RadRotator1.ClientID%>').showNext(Telerik.Web.UI.RotatorScrollDirection.Left);">Left</a></p
<telerik:RadRotator ID="RadRotator1" runat="server" Height="300px" Width="500px" ItemHeight="300px" ItemWidth="500px" RotatorType="SlideShowButtons" ScrollDirection="Left,Right" SlideShowAnimation-Type="fade"
    <ItemTemplate> 
        <%# Eval("Name")%> 
    </ItemTemplate> 
    <ControlButtons LeftButtonID="leftButton" RightButtonID="rightButton" /> 
</telerik:RadRotator> 
 

I have the above code on a test page attempting to test out the Rotator functionality and I found this functionality to be a little peculiar. When using the ControlButtons method of progressing the slides, it's working as expected. However, if I use the corresponding JavaScript method the slides go in reverse.

For instance, the leftButton moves the slides to the left as expected. But the showNext(Telerik.Web.UI.RotatorScrollDirection.Left) Javascript method will move the slides to the right.

This is obviously not a show stopper or anything, but I figured I'd let you guys know.
Jonathan Hunter
Top achievements
Rank 2
 answered on 24 Nov 2008
4 answers
204 views

 

 

 

I want to call the click event handler for my iteminsert / itemupdate button from javascript.  How can i reference this button with ID="btnUpdate" as shown below.

I try to use document.getElementById but it is not found. I am guessing this is because the edit form is hidden.
Any help would be appreciated.

Thanks,

 

 

<

EditFormSettings EditFormType="Template">

 

 

 

<FormTemplate>

 

 

 

....
<

asp:Button ID="btnUpdate" TabIndex="3" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'

 

 

 

 

runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'>

 

 

 

</asp:Button>

 

 

 

 

 

Jeff
Top achievements
Rank 1
 answered on 24 Nov 2008
3 answers
151 views
Is there a way to disable the Sliding Pane?  I tried setting it it to visible=false but the it gives me javascript errors.

So now I would like to just disable it instead. Perferable on server-side but if client-side is the only way then I'd have to work with that.
Fred
Top achievements
Rank 1
 answered on 24 Nov 2008
1 answer
435 views
Hi,

when combining scripts i still get a number of script references on my page.

In particular a webresource.axd with about 500 lines of code (containing "function WebForm_PostBackOptions(eventTarget, eventArgument, validation, validationGroup, actionUrl, trackFocus, clientSubmit) {", etc)

My script manager block (which i place in a masterpage) is as follows:

 <telerik:RadScriptManager ID="RadScriptManager1" EnablePartialRendering="false" EnableScriptCombine="True" 
        EnableViewState="false" runat="server" OutputCompression="Disabled" ScriptMode="Release" LoadScriptsBeforeUI="false" 
        CompositeScript-ScriptMode="Release">  
        <CompositeScript> 
            <Scripts> 
                <asp:ScriptReference Name="MicrosoftAjax.js" NotifyScriptLoaded="true" /> 
                <asp:ScriptReference Name="MicrosoftAjaxWebForms.js" /> 
            </Scripts> 
        </CompositeScript> 
    </telerik:RadScriptManager> 

this brings it down to two references (webresource.axd  and Telerik.Web.UI.WebResource.axd )

When i didn't include the <compositeScript> and the two references to Microsofts .js files, i got a number of scriptResources.axd's on my page.  Ditto if i set EnablePartialRendering=true.

the page itself, contains a menu and a drop down.


Also - i have set loadscriptsbeforeGUI to false - expecting the larger Telerik.Web.UI.WebResource.axd to render at the bottom of the page.  However, it is actually rendering nearer the top - just after the body tag.

My desired outcome is to have all the script in one referenced file, linked to the page at the bottom.  Is this possible?  Can you tell me what i may be doing wrong?

 

 

thanks,

 

 

Richard

Peter
Telerik team
 answered on 24 Nov 2008
3 answers
341 views
I want to disable the column header checkbox on a GridClientSelectColumn. The behaviour of the checkbox is to check or uncheck all items. I wish to not have that functionality.
Jeff
Top achievements
Rank 1
 answered on 24 Nov 2008
5 answers
218 views
I am trying to use the client api for the radeditor in a sharepoint (wss) site.  Specifically, I am trying to open the dialogs from a seperate button.  I have figured it out for the ImageManager using the function:
    $find("<%=radEditor.ClientID%>").showDialog("ImageManger", null, ClientCallBackFunction);

I have also discovered that the return value from the dialog can be found in the resultObj parameter in the ClientCallBackFunction(sender, resultObj) function.  (Specifically in the resultObj['Result']['outerHTML']).

I am trying to figure the same for the other dialogs, specifically the Document Manager, Flash Manager, and Media Manager.  Can you please provide me how to:
    1. Call the the specific Dialogs.  (i.e. When I try showDialog("DocumentManger", null, ClientCallBackFunction); I get a javascript error).
    2. The parameters for the showDialog function. (i.e. I have seen documentation on the showDialog, but it is specific to custom dialogs.  I need to know the parameters for the Sharepoint specific dialogs).
    3. How to retrieve the result of the the dialogs.  (i.e. When I tried it with the FlashManager, I cannot seem to find the correct property in the resultObj that outputs the <object> tag for the selected flash (.swf) file.

Thanks

Lini
Telerik team
 answered on 24 Nov 2008
1 answer
66 views
Hello,

i want to do following:

I get a list of costum objets to display in a radgrid. when i select on object, i load a single new object with additional informations to the original object. there are about 50 new fields to display and edit for this new object.
for editing, i made a custom html-template.

is it possible, that i also use a custom template for the detailtable or is it only possible to use a gridtable?


thanks
Robert
Vlad
Telerik team
 answered on 24 Nov 2008
6 answers
415 views
Hi..

I have a problem with refreshing scheduler after update/insert operation. It looks that RadScheduler doesnt rebind data from datasource but after update/insert adds new/existing item to appointments collections. Becouse I have some filters on page this is not good for me (sometimes user creates appointments that shouldn't be visible). I tried to use Rebind method on radscheduler in sqldatasource OnUpdate/OnInsert but this doesnt help. How to correctly rebind grid?

Regards
Peter
Telerik team
 answered on 24 Nov 2008
1 answer
53 views
I am using the RadInputManager in Q3 2008 and defining a NumericTextBoxSetting to use with the html text input conrols on the page.

Everything works fine until I change the style of the input boxes to be text-align: right; whereupon the caret (the vertical text position bar) dissapears.

Is there anyway to right justify my numeric text without loosing the caret?

Many thanks,
Jason
Dimo
Telerik team
 answered on 24 Nov 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?