| <script type="text/javascript"> |
| function realPostBack(eventTarget, eventArgument) |
| { |
| __doPostBack(eventTarget, eventArgument); |
| } |
| </script> |
| <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="AjaxLoadingPanel1"> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="rdgResults"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="rdgResults" LoadingPanelID="AjaxLoadingPanel1" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| </telerik:RadAjaxManager> |
| <asp:panel id="pnlsearch" runat="server" DefaultButton="btnSearch"> |
| ... |
| <telerik:RadGrid ID="rdgResults" runat="server" AllowPaging="True" AllowSorting="True" EnableEmbeddedSkins="False" Skin="radGridSkin" Width="100%" EnableOutsideScripts="True" GridLines="None"> |
| <MasterTableView AutoGenerateColumns="False" AllowNaturalSort="False" NoMasterRecordsText="No Special Permission Requests Found." |
| PageSize="20" DataKeyNames="RequestID" BorderColor="#B5E9AD"> |
| ... |
| <Columns> |
| ... |
| <telerik:GridTemplateColumn UniqueName="tmpEditColumn"> |
| <HeaderTemplate> |
| Edit |
| </HeaderTemplate> |
| <ItemTemplate> |
| <div class="functionButtons"> |
| <asp:Button runat="server" Text="" CssClass="btnEdit" ID="btnEdit" CommandName="EditCustom" /> |
| </div> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| </Columns> |
| </MasterTableView> |
| </telerik:RadGrid> |
| <asp:panel id="pnlReqEntry" runat="server"> |
| Protected Sub rdgResults_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles rdgResults.ItemCreated |
| If (TypeOf e.Item Is GridDataItem) Then |
| Dim dataItem As GridDataItem = CType(e.Item, GridDataItem) |
| Dim button1 As Button = CType(dataItem("tmpEditColumn").FindControl("btnEdit"), Button) |
| button1.Attributes.Add("onclick", String.Format("realPostBack('{0}', '{1}'); return false;", button1.UniqueID, button1.CommandArgument)) |
| End If |
| End Sub |
| <compilation debug="true"> |
| <assemblies> |
| <add assembly="Telerik.Web.Design, Version=2009.2.826.20, Culture=neutral, PublicKeyToken=121FAE78165BA3D4" /> |
| <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> |
| </assemblies> |
| </compilation> |
| <httpHandlers> |
| <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2009.2.826.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" verb="*" validate="false" /> |
| </httpHandlers> |
| </system.web> |
| <system.webServer> |
| <validation validateIntegratedModeConfiguration="false" /> |
| <handlers> |
| <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" /> |
| </handlers> |
Andrew

| <telerik:RadContextMenu ID="RCMU" runat="server" ... > |
| <Items> |
| ... |
| <telerik:RadMenuItem Value="5"> |
| <ItemTemplate> |
| <telerik:RadComboBox ID="CMRDDLC" runat="server" |
| ShowMoreResultsBox="false" EnableVirtualScrolling="true" EnableItemCaching="true" |
| EnableTextSelection="true" EnableViewState="False" |
| EnableLoadOnDemand="true" ZIndex="10000" |
| OnClientItemsRequesting="OnClientItemsRequesting"> |
| <WebServiceSettings Path="~/.asmx" Method="GetMethod" /> |
| <CollapseAnimation Duration="100" Type="OutQuint" /> |
| </telerik:RadComboBox> |
| </ItemTemplate> |
| </telerik:RadMenuItem> |
| ... |
| </Items> |
| </telerik:RadContextMenu> |
I recently purchased the AJAX RADControls since read that it is one of the best AJAX libraries available.
I am trying to move my web apps into AJAX. I use server controls only for the initial page rendering of the DOM elements and then make web-service calls (using PageMethods or WCF) to populate or manipulate any grids, forms or data that exist in the page.
I added some of the Telerik controls to replace plain HTML tags (such as drop-down lists, inputs, etc.) but it is difficult it is to find these controls in the DOM in order to manipulate them (especially when they are embedded within other ASP.Net server controls).
To find a Telerik Control I have to resort to such calls as:
var combo = $find("<%= RadComboBox1.ClientID %>");
var item = combo.findItemByText(text);
(By the way, this code above will NOT run when you place your script code in a separate JS file which is a best practice that I prefer to follow.)
I am trying to use these controls for 100% strictly data access via AJAX.
I don't need the ASP.Net engine to assign them an ID in the DOM, I want to control this ID myself so that I can more easily access them from my scripts.
Can I define my own Client IDs when I place controls on a page declaratively or programmatically?
Can I assign the Client IDs of the RADControls when using ASP.NET MVC?
Let me know if this level of control is possible with RADControls.
Klaus Barkhausen
<
httpHandlers>
<
remove verb="*" path="*.asmx"/>
<
add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<a
dd verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
<
add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
<
add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
</
httpHandlers>
<handlers>
<
remove name="WebServiceHandlerFactory-Integrated"/>
<
remove name="ScriptHandlerFactory"/>
<
remove name="ScriptHandlerFactoryAppServices"/>
<
remove name="ScriptResource"/>
<
add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource"/>
<
add name="CrystalImageHandler.aspx_GET" verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" preCondition="integratedMode"/>
</
handlers>
I would appreciate any help that is given.
Hello,
We have a straight behavior and don’t know how we can fix it.
We have an autocomplete textbox and in the next line right below, we have a RadCombobox.
Scenario:
A user tips some characters in the autocomplete textbox and the autocomplete list is shown. -> OK.
The user selects a item of the list with a mouse click. -> OK
The item will be selected -> OK
The list will be closed -> OK
The list of the RadCombobox will be opened -> Not OK!!!
The behavior appears only if the mouse cursor is over the combobox-textfield.
How can we fix it?
best regards
lemon