<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderMain" runat="server"> <telerik:RadScriptBlock ID="RadScriptBlockAssignmentManager" runat="server"> <script type="text/javascript"> </script> </telerik:RadScriptBlock> <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxyAssignmentManager" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RadComboBoxCoordinators"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="PanelAssignmentManager" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="ButtonUpdate"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="PanelAssignmentManager" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManagerProxy> <telerik:RadFormDecorator ID="RadFormDecoratorAssignmentManager" runat="server" DecorationZoneID="divRoot" DecoratedControls="All" /> <div id="divRoot" style="width: 890px;"> <asp:Panel runat="server" ID="PanelAssignmentManager" Width="890px"> <table id="tableRoot" width="400px" cellpadding="0" cellspacing="0"> <tr> <td style="width: 400px; text-align: left;"> <fieldset id="fieldsetCoordinators" style="width: 378px"> <legend>Locum Coordinator:</legend> <telerik:RadComboBox ID="RadComboBoxCoordinators" runat="server" SkinID="RadComboBoxWidthless" DataSourceID="LinqDataSourceLocumCoordinators" DataTextField="FullName" DataValueField="OID" Skin="Office2007" Width="100%" AppendDataBoundItems="True" AutoPostBack="True" OnDataBound="RadComboBoxCoordinators_DataBound" OnSelectedIndexChanged="RadComboBoxCoordinators_SelectedIndexChanged" /> </fieldset> </td> </tr> <tr> <td style="text-align: left; width: 400px;"> <fieldset id="fieldsetListCounties" style="width: 378px"> <legend>County List:</legend> <asp:Panel ID="PanelScroll" runat="server" ScrollBars="Vertical" Height="300px"> <asp:CheckBoxList ID="CheckBoxListCounties" runat="server" DataSourceID="LinqDataSourceCounties" DataTextField="CName" DataValueField="OID" Width="100%" /> </asp:Panel> </fieldset> </td> </tr> <tr> <td style="text-align: center; width: 400px"> <br style="clear: both;" /> <asp:Button ID="ButtonUpdate" runat="server" Text="Update" OnClick="ButtonUpdate_Click" /> </td> </tr> </table> <br style="clear: both;" /> <div id="divNotification" style="width: 800px; padding: 2px; text-align: left; vertical-align: middle;"> <asp:Label ID="LabelNotification" runat="server" /> </div> <br style="clear: both;" /> </asp:Panel> </div> <asp:LinqDataSource ID="LinqDataSourceLocumCoordinators" runat="server" ContextTypeName="ExciteEngine2.DAL.LINQ.ExciteEngine2DataContextDataContext" Select='new (OID, String.Concat(FirstName, " ", LastName) AS FullName)' TableName="Users" Where="UserTypeID == @UserTypeID && IsActive == @IsActive"> <WhereParameters> <asp:Parameter DefaultValue="2" Name="UserTypeID" Type="Int32" /> <asp:Parameter DefaultValue="true" Name="IsActive" Type="Boolean" /> </WhereParameters> </asp:LinqDataSource> <asp:LinqDataSource ID="LinqDataSourceCounties" runat="server" ContextTypeName="ExciteEngine2.DAL.LINQ.ExciteEngine2DataContextDataContext" OrderBy="Name" Select='new (OID, String.Concat(Name, " (", OID.ToString(), ")") As CName )' TableName="Counties" /></asp:Content>hi telerik community,
i have an telerik application with two main areas (RadPanes) divided by RadSpliterBar. within the left RadPane i have an RadPanelBar as a menu. in the right RadPane is a combination of RadTabStrip and RadMultiPage. the RadTabs and PageViews were added dynamically. within each RadPageView i have usercontrols. but there can be more than one tab-pageview combination from one specific type of tab-pageview. this means that I can have two tab-pageview combinations with two instances of the same usercontrol inside.
what is the best way to ajaxify this kind of application?
thank you for your help
bernhard
<form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <div> <telerik:RadGrid ID="RadGrid1" runat="server" OnNeedDataSource="RiskGrid_NeedDataSource" OnItemCreated="RiskGrid_ItemCreated"> <MasterTableView commanditemdisplay="Bottom"> <Columns> <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn"> <HeaderStyle Width="2%" /> <ItemStyle CssClass="MyImageButton" /> </telerik:GridEditCommandColumn> </Columns> </MasterTableView> </telerik:RadGrid> </div> </form>protected void RiskGrid_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e) { if (e.Item is GridEditableItem && e.Item.IsInEditMode) { GridEditableItem item = e.Item as GridEditableItem; GridDateTimeColumnEditor editor = (GridDateTimeColumnEditor)item.EditManager.GetColumnEditor("DateReported"); TableCell cell = (TableCell)editor.PickerControl.Parent; RequiredFieldValidator validator = new RequiredFieldValidator(); editor.PickerControl.ID = "rdpDateRecorded"; validator.ControlToValidate = editor.PickerControl.ID; validator.ErrorMessage = "*"; cell.Controls.Add(validator); } }function onGridCommand(sender, args) { var OldSortExpression = SortExpression; var sortExpressions = sender.get_masterTableView().get_sortExpressions(); // SortExpression (global) is passed to webservice on rebind of grid. SortExpression = sortExpressions.toString();}<form id="form1" runat="server"> <asp:ScriptManager ID="masterScriptManager" runat="server" EnablePageMethods="true"> <Scripts> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" /> <asp:ScriptReference Path="~/JScript.js" /> </Scripts> </asp:ScriptManager> <div> <telerik:RadXmlHttpPanel ID="pnlMain1" runat="server" OnServiceRequest="OnServiceRequest" EnableClientScriptEvaluation="true"> <table> <tr> <td> <telerik:RadToolBar ID="widgetTools" runat="server" Width="100%" EnableShadows="true" OnClientButtonClicked="widgetToolsButton_Clicked"> <Items> <telerik:RadToolBarButton ImageUrl="report_16x16.png"> </telerik:RadToolBarButton> <telerik:RadToolBarSplitButton CommandName="interval" ImageUrl="report_16x16.png" EnableDefaultButton="false" Value="intervalSelector"> <Buttons> <telerik:RadToolBarButton Text="One Week" Value="W" ImageUrl="report_16x16.png" /> <telerik:RadToolBarButton Text="Two Week" Value="B" ImageUrl="report_16x16.png" /> <telerik:RadToolBarButton Text="One Month" Value="M" ImageUrl="report_16x16.png" /> </Buttons> </telerik:RadToolBarSplitButton> </Items> </telerik:RadToolBar> </td> </tr> <tr> <td> <asp:Label ID="lblResponse" runat="server"></asp:Label> </td> </tr> </table> </telerik:RadXmlHttpPanel> <telerik:RadXmlHttpPanel ID="pnlMain2" runat="server" OnServiceRequest="OnServiceRequest" EnableClientScriptEvaluation="true"> <table> <tr> <td> <telerik:RadToolBar ID="RadToolBar1" runat="server" Width="100%" EnableShadows="true" OnClientButtonClicked="widgetToolsButton_Clicked"> <Items> <telerik:RadToolBarButton ImageUrl="report_16x16.png" Text="Foobar"> </telerik:RadToolBarButton> <telerik:RadToolBarSplitButton Text="Foobar" CommandName="interval" EnableDefaultButton="false" ImageUrl="report_16x16.png" Value="intervalSelector"> <Buttons> <telerik:RadToolBarButton Text="One Week" Value="W" ImageUrl="report_16x16.png" /> <telerik:RadToolBarButton Text="Two Week" Value="B" ImageUrl="report_16x16.png" /> <telerik:RadToolBarButton Text="One Month" Value="M" ImageUrl="report_16x16.png" /> </Buttons> </telerik:RadToolBarSplitButton> </Items> </telerik:RadToolBar> </td> </tr> <tr> <td> <asp:Label ID="Label1" runat="server"></asp:Label> </td> </tr> </table> </telerik:RadXmlHttpPanel> </div> </form>
Hi,
I need to retrive ComboBox id which was in RadGrid EditItemTemplate.
Here is my code:
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e) { if (e.Item is GridEditFormItem && e.Item.IsInEditMode)// if EditMode is EditForm or PopUp { GridEditFormItem editItem = (GridEditFormItem)e.Item; RadComboBox ddlCity = editItem.FindControl("gvddlPOWCity") as RadComboBox; string city = ddlCity.SelectedValue; . . . . . . . . } }<MasterTableView DataKeyNames="POWId" EditMode="EditForms">
Eventhough I am getting e.Item.IsInEditMode is always false.
Is there any more modifications need to perform.Please tell me...
Thanks...