I have some cascading comboboxes. No matter where I am when I start, when I select the first and the other is updated, the 1st keeps focus, but the page scrolls up so that the 1st control is at the very bottom of the browser window. What can I do to change this?
<
table
>
<
tr
>
<
td
>
<
asp:Label
ID
=
"lblPosition"
runat
=
"server"
CssClass
=
"Label"
></
asp:Label
>
</
td
>
<
td
>
<
CW:ComboBox
ID
=
"rcbPosition"
DataTextField
=
"PosName"
DataValueField
=
"PosNum"
Width
=
"204px"
runat
=
"server"
OnSelectedIndexChanged
=
"rcbPosition_SelectedIndexChanged"
AutoPostBack
=
"true"
CausesValidation
=
"false"
AppendDataBoundItems
=
"true"
OnClientSelectedIndexChanged
=
"SelectSaveChangesToAllSessions"
>
<
Items
>
<
Telerik:RadComboBoxItem
Text="<%$Resources:LanguageResource, AllPositions%>" Value="0" />
</
Items
>
</
CW:ComboBox
>
</
td
>
<
td
>
<
asp:Label
ID
=
"lblSubPosition"
runat
=
"server"
CssClass
=
"Label"
></
asp:Label
>
</
td
>
<
td
>
<
CW:ComboBox
ID
=
"rcbSubPosition"
Width
=
"204px"
runat
=
"server"
DataTextField
=
"SubPosName"
DataValueField
=
"SubPosNum"
AppendDataBoundItems
=
"true"
OnClientSelectedIndexChanged
=
"SelectSaveChangesToAllSessions"
>
<
Items
>
<
Telerik:RadComboBoxItem
Text="<%$Resources:LanguageResource, AllSubPositions%>"
Value="0" />
</
Items
>
</
CW:ComboBox
>
</
td
>
</
tr
>
<
tr
>
<
td
>
<
asp:Label
ID
=
"lblDistrict"
runat
=
"server"
CssClass
=
"Label"
></
asp:Label
>
</
td
>
<
td
>
<
CW:ComboBox
ID
=
"rcbDistrict"
DataTextField
=
"DistName"
DataValueField
=
"DistNum"
Width
=
"204px"
runat
=
"server"
OnSelectedIndexChanged
=
"rcbDistrict_SelectedIndexChanged"
AutoPostBack
=
"true"
CausesValidation
=
"false"
AppendDataBoundItems
=
"true"
OnClientSelectedIndexChanged
=
"SelectSaveChangesToAllSessions"
>
<
Items
>
<
Telerik:RadComboBoxItem
Text="<%$Resources:LanguageResource, AllDistricts%>" Value="0" />
</
Items
>
</
CW:ComboBox
>
</
td
>
<
td
>
<
asp:Label
ID
=
"lblBuilding"
runat
=
"server"
CssClass
=
"Label"
></
asp:Label
>
</
td
>
<
td
>
<
CW:ComboBox
ID
=
"rcbBuilding"
DataTextField
=
"BuildName"
DataValueField
=
"BuildNum"
Width
=
"204px"
runat
=
"server"
OnClientSelectedIndexChanged
=
"SelectSaveChangesToAllSessions"
>
<
Items
>
<
Telerik:RadComboBoxItem
Text="<%$Resources:LanguageResource, AllBuildings%>" Value="0" />
</
Items
>
</
CW:ComboBox
>
</
td
>
</
tr
>
</
table
>
<
Telerik:RadAjaxManagerProxy
ID
=
"RadAjaxManagerCourse"
runat
=
"server"
>
<
AjaxSettings
>
<
Telerik:AjaxSetting
AjaxControlID
=
"rcbPosition"
>
<
UpdatedControls
>
<
Telerik:AjaxUpdatedControl
ControlID
=
"rcbSubPosition"
LoadingPanelID
=
"LoadingPanel2"
/>
</
UpdatedControls
>
</
Telerik:AjaxSetting
>
<
Telerik:AjaxSetting
AjaxControlID
=
"rcbDistrict"
>
<
UpdatedControls
>
<
Telerik:AjaxUpdatedControl
ControlID
=
"rcbBuilding"
LoadingPanelID
=
"LoadingPanel2"
/>
</
UpdatedControls
>
</
Telerik:AjaxSetting
>
</
AjaxSettings
>
</
Telerik:RadAjaxManagerProxy
>
<
telerik:RadAjaxLoadingPanel
ID
=
"LoadingPanel2"
runat
=
"server"
/>
The autocomplete box is rendered in a div element, other controls just in a span. If I assign a label to a Telerik control, the control is placed right of the label, but the auto complete box is placed underneath (as it's a div, not just a span).
Can I somehow change that behavior?
In the ListBox ItemTemplate Demo, a numeric textbox is included to allow users to enter order Quantity. No problem creating a similar item template. No problem passing item.Value to SqlParameter and inserting to database. But I cannot figure out how to grab a value from a textbox and pass that as another parameter.
Code below passed an empty string or NULL to @Quantity:
foreach (RadListBoxItem item in collection)
{
cmd4.Parameters.Clear();
cmd4.Parameters.AddWithValue("@Product_ID", item.Value);
cmd4.Parameters.AddWithValue("@Quantity", Convert.ToInt32(item.FindControl("RadNumericTextBox1.Text") as TextBox));
cmd4.ExecuteNonQuery();
}
A few articles I found suggest textbox values are lost during postback? Anyone else run into this problem? Advice appreciated.
Hi guys,
could someone possibly explain me what is the most correct way how to use radeditor in MVC project?
Thanks you !
ScriptManager.RegisterStartupScript(Page, Page.GetType(),
"confirmQuantity"
,
"confirmQuantityCorrection();"
,
true
);
function
confirmQuantityCorrection(){
var
oConfirm = radconfirm(
'Are you sure'
, confirmCallBackQuantity, 280, 150,
null
,
'Confirm'
);
return
false
;
}
Hi, I have upgraded from Q3 promothues to Q1 2008 Ajax
same code, but doesn't work anymore
here is the aspx
<telerik:RadGrid ID="AListingsGrid" runat="server" |
AllowMultiRowSelection="True" AllowPaging="True" AllowSorting="True" |
AutoGenerateColumns="False" GridLines="None" Height="515px" PageSize="300" |
Skin="Vista"> |
<MasterTableView> |
<RowIndicatorColumn Visible="False"> |
<HeaderStyle Width="20px"></HeaderStyle> |
</RowIndicatorColumn> |
<ExpandCollapseColumn Visible="False" Resizable="False"> |
<HeaderStyle Width="20px"></HeaderStyle> |
</ExpandCollapseColumn> |
<Columns> |
<telerik:GridBoundColumn DataField="Href_No" HeaderText="Ref" |
UniqueName="column"> |
</telerik:GridBoundColumn> |
</Columns> |
<EditFormSettings> |
<PopUpSettings ScrollBars="None"></PopUpSettings> |
</EditFormSettings> |
</MasterTableView> |
<ClientSettings> |
<Selecting AllowRowSelect="True" /> |
<Scrolling AllowScroll="True" UseStaticHeaders="True" /> |
</ClientSettings> |
</telerik:RadGrid> |
<telerik:RadAjaxLoadingPanel ID="PnlLoading" Runat="server" |
height="75px" width="75px"> |
<img alt="Loading..." |
src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' |
style="border:0px;" /> |
</telerik:RadAjaxLoadingPanel> |
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> |
<AjaxSettings> |
<telerik:AjaxSetting AjaxControlID = "AListingsGrid"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID ="AListingsGrid" LoadingPanelID="PnlLoading" /> |
</UpdatedControls> |
</telerik:AjaxSetting> |
<telerik:AjaxSetting AjaxControlID = "btnFilter"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID ="AListingsGrid" LoadingPanelID="PnlLoading" /> |
</UpdatedControls> |
</telerik:AjaxSetting> |
</AjaxSettings> |
</telerik:RadAjaxManager> |
Debug.Print(AListingsGrid.SelectedItems.Count)
the AListingsGrid.SelectedItems.Count is always 0
what's wrong?
I assume if I need to get the lat/lon from a given address I need to use another service for this right? I need to place a marker with the given address. I was just checking here anyways.
Thanks,
Warren