Again a reload fixes this.vark=(l._allowDelete!=null)?l.get_allowDelete():this.get_allowDelete();
Any Ideas?
popUp = eventArgs.get_popUp();popUp.style.position = "fixed";var gridWidth = sender.get_element().offsetWidth - 100;var gridHeight = sender.get_element().offsetHeight + 400;var popUpWidth = popUp.style.width.substr(0, popUp.style.width.indexOf("px"));var popUpHeight = popUp.style.height.substr(0, popUp.style.height.indexOf("px"));popUp.style.left = ((gridWidth) / 2 + sender.get_element().offsetLeft).toString() + "px";popUp.style.top = ((gridHeight) / 2 + sender.get_element().offsetTop).toString() + "px";
var myWidth = 0, myHeight = 0;if (typeof (window.innerWidth) == 'number') { myWidth = window.innerWidth; myHeight = window.innerHeight;} else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) { //IE 6+ in 'standards compliant mode' myWidth = document.documentElement.clientWidth; myHeight = document.documentElement.clientHeight;}else if (document.body && (document.body.clientWidth || document.body.clientHeight)) { //IE 4 compatible myWidth = document.body.clientWidth; myHeight = document.body.clientHeight;}popUp = eventArgs.get_popUp();popUp.style.position = "fixed";var gridWidth = myWidth;var gridHeight = myHeight;var popUpWidth = popUp.style.width.substr(0, popUp.style.width.indexOf("px"));var popUpHeight = popUp.style.height.substr(0, popUp.style.height.indexOf("px"));popUp.style.left = ((gridWidth - popUpWidth) / 2) + "px";popUp.style.top = ((gridHeight - popUpHeight) / 2) + "px"; <telerik:RadGrid ID="dgPlans" GridLines="None" runat="server" AllowAutomaticDeletes="True"
AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AllowPaging="True"
AutoGenerateColumns="False" CellSpacing="0" Width="716px" DataSourceID="sqlPlans"
<telerik:GridDropDownColumn DataField="PlanId" DataSourceID="sqlGetPlans"
HeaderText="Plan" ListTextField="ippPlan" ListValueField="PlanId"
UniqueName="ippPlanId" ColumnEditorID="GridDropDownColumnEditor1">
</telerik:GridDropDownColumn>
UpdateCommand="sp_Update_Plan" UpdateCommandType="StoredProcedure"
<UpdateParameters>
<asp:Parameter Name="EffectiveDate" Type="Datetime"></asp:Parameter>
<asp:Parameter Name="ExpirationDate" Type="Datetime"></asp:Parameter>
<asp:Parameter Name="Split" Type="Decimal"></asp:Parameter>
<asp:Parameter Name="Level" Type="String"></asp:Parameter>
<asp:Parameter Name="PlanId" Type="Int32"></asp:Parameter>
</UpdateParameters>
Like I said the stored procedure name on my SQL box is sp_Update_Plan and it takes several params. But what is used as the @ piece of the parameter? What part of the radgrid become the @piece to pass to my SP? The uniquename? The Datafield has to match the @parameter?
All the examples I have seen just have the SQL statement in the updatecommand I need to use as stored procedure.
thanks,
<telerik:PivotGridRowField DataField="INVENTSITE" Caption="Üretim Mer."> <CellStyle Width="105" /></telerik:PivotGridRowField>so what i did
but problem explained above occur, any suggestion ?...sorry for stretching
<telerik:RadAjaxManagerProxy ID="ctrlAjaxManager" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="cbLocations"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="lbAvailableEmployees" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="cbOccupations"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="lbAvailableEmployees" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings></telerik:RadAjaxManagerProxy>switch (e.CommandName) { case RadGrid.ExpandCollapseCommandName: { gridId = (GridDataItem)e.Item; ViewState["mkAccountID"] = gridId.GetDataKeyValue("mkAccountID").ToString(); ViewState["DecimalPlaces"] = gridId.GetDataKeyValue("DecimalPlaces").ToString(); //Set paramaters for dsAccountTID dsAccountTID.SelectParameters.Clear(); dsAccountTID.SelectParameters.Add("mkAccountId", ViewState["mkAccountID"].ToString()); //Set paramaters for dsAccountCardSchemes dsAccountCardSchemes.SelectParameters.Clear(); dsAccountCardSchemes.SelectParameters.Add("mkAccountId", ViewState["mkAccountID"].ToString()); if (SharedUtilities.ExpandCollapseItems(e.Item)) e.Canceled = true; } break;public static bool ExpandCollapseItems(GridItem item) { try { // expand the grid data item that has been clicked // and collapse any other so that we only ever get // one expanded. foreach (GridDataItem gdi in item.OwnerTableView.Items) { if (gdi.ItemIndexHierarchical == item.ItemIndexHierarchical) { gdi.Expanded = !gdi.Expanded; } else { gdi.Expanded = false; } } return true; } catch (Exception ex) { throw new Exception("ExpandCollapseItems: " + ex); } }
item = combo.FindItemByText("abc");
item.Select()
it works in postback ...but when i use tab button to treverse more control...it again clear or select any other item...
please help to select the combo wrt to above problems
thanks