| tabStrip.SelectedIndex = (int)Session["SelectedTabIndex"]; |
| multPage.FindPageViewByID(tabStrip.SelectedTab.PageViewID).Selected = true; |
| <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> | <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 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>
| <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
Thanks

