While using the filter fix suggested in the documentation here , it causes an issue when tabbing into and then immediately out of a combobox.
If you tab into a combobox with the fix in place and then tab out without entering any other text, the tab out causes the suggested fix to fire sender.showDropDown(). At this point you've already moved to the next field, so I think what is happening is the dropdown gets shown then hid and in that process it then selects the first item in the list as the SelectedItem, but it doesn't change the actually item displayed in the combobox. So this results in a different item being reported as selected compared to what the user sees.
Changing the suggested fix to not fire for the tab key fixes the problem. Suggested fix should be:
<
telerik:RadComboBox
RenderMode
=
"Lightweight"
ID
=
"rco_1"
Filter
=
"Contains"
AllowCustomText
=
"false"
OnClientKeyPressing
=
"HandleComboBoxKeyPress"
runat
=
"server"
>
</
telerik:RadComboBox
>
<script type=
"text/javascript"
>
function
HandleComboBoxKeyPress(sender, e) {
if
(!sender.get_dropDownVisible()) {
if
(e.get_domEvent().keyCode != 9) {
// not tab out, show the dropdown to filter
sender.showDropDown();
}
}
}
</script>
Hello,
I have a form where i put 2 related RadGrid.
The first RadGrid is the parent which contain the list of my SKUs.
My DataKeyNames is composed of 3 elements: Style, Color and Size which is my primary key.
My second RadGrid is the child of the first one.
So, once i click on any row on the first Grid, i want to display the list of my related POs in my second Grid.
I have done it before with one value and it worked fine. By my only problem, i don't know how to pass my 3 values. I tried to use in my ObjectDataSource PropertyName="SelectedValue" but it didn't work.
Can anyone help me ?
Thank you
Paul
Here's my ASPX code:
<
script language='javascript'>
function
RowSelected()
{
window["<%= rgPOs.ClientID %>"].AjaxRequest("<%= rgPOs.UniqueID %>", "");
}
</script>
<radG:RadGrid id="RadGrid1" runat="server" AllowPaging="True" AllowSorting="True"
EnableAJAX="True"
GridLines="None" DataSourceID="ObjectDataSource1" Skin="Web20"
OnItemDataBound="RadGrid1_ItemDataBound" AutoGenerateColumns="False">
<clientsettings allowexpandcollapse="True">
<ClientEvents OnRowSelected="RowSelected" />
<Selecting AllowRowSelect="True"></Selecting>
</clientsettings>
<mastertableview datasourceid="ObjectDataSource1" pagesize="20"
DataKeyNames="Style,Color,Size">
<AlternatingItemStyle BackColor="Gainsboro" Wrap="True" Font-Italic="False" Font-Strikeout="False" Font-Underline="False" Font-Overline="False" Font-Bold="False"></AlternatingItemStyle>
<Columns>
<radG:GridBoundColumn DataField="Style" UniqueName="Style" HeaderText="Style"></radG:GridBoundColumn>
<radG:GridBoundColumn DataField="Color" UniqueName="Color" HeaderText="Color"></radG:GridBoundColumn>
<radG:GridBoundColumn DataField="Size" UniqueName="Size" HeaderText="Size"></radG:GridBoundColumn>
<radG:GridBoundColumn DataField="Quantity_Ordered" UniqueName="Quantity_Ordered" HeaderText="Ordered">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
</radG:GridBoundColumn>
<radG:GridBoundColumn DataField="Quantity_In_Production" UniqueName="Quantity_In_Production" HeaderText="In Production">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
</radG:GridBoundColumn>
<radG:GridBoundColumn DataField="Quantity_Produced" UniqueName="Quantity_Produced" HeaderText="Produced">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
</radG:GridBoundColumn>
<radG:GridBoundColumn DataField="Quantity_Shipped" UniqueName="Quantity_Shipped" HeaderText="Shipped">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
</radG:GridBoundColumn>
<radG:GridBoundColumn DataField="Quantity_To_Produce" UniqueName="Quantity_To_Produce" HeaderText="Units To Produce">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
</radG:GridBoundColumn>
<radG:GridBoundColumn DataField="Balance_To_Produce" UniqueName="Balance_To_Produce" HeaderText="Balance To Produce">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
</radG:GridBoundColumn>
<radg:GridTemplateColumn UniqueName="TemplateEditColumn">
<ItemTemplate>
<asp:HyperLink ID="ViewPO" runat="server" Text="View POs"></asp:HyperLink>
</ItemTemplate>
</radg:GridTemplateColumn>
<radg:GridTemplateColumn UniqueName="TemplateEditColumn">
<ItemTemplate>
<asp:HyperLink ID="ProductionStatus" runat="server" Text="Production status"></asp:HyperLink>
</ItemTemplate>
</radg:GridTemplateColumn>
<radg:GridTemplateColumn UniqueName="TemplateEditColumn">
<ItemTemplate>
<asp:HyperLink ID="Move2Production" runat="server" Text="Move to production"></asp:HyperLink>
</ItemTemplate>
</radg:GridTemplateColumn>
<radg:GridTemplateColumn UniqueName="TemplateEditColumn">
<ItemTemplate>
<asp:HyperLink ID="Move2Produced" runat="server" Text="Move to produced"></asp:HyperLink>
</ItemTemplate>
</radg:GridTemplateColumn>
</Columns>
<ExpandCollapseColumn>
<HeaderStyle Width="19px"></HeaderStyle>
</ExpandCollapseColumn>
<RowIndicatorColumn Visible="False">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
</mastertableview>
</radG:RadGrid>
<!-- -------------------------------------------------------------------- -->
<!-- List of POs -->
<!-- -------------------------------------------------------------------- -->
<radG:RadGrid id="rgPOs" runat="server" AllowPaging="True" AllowSorting="True"
EnableAJAX="True" DataSourceID="ObjectDataSource2" ShowStatusBar="true"
GridLines="None" Skin="Web20">
<clientsettings>
<Selecting AllowRowSelect="True"></Selecting>
</clientsettings>
<MasterTableView pagesize="20" autogeneratecolumns="False" DataKeyNames="PO_No">
<AlternatingItemStyle BackColor="Gainsboro" Wrap="True" Font-Italic="False" Font-Strikeout="False" Font-Underline="False" Font-Overline="False" Font-Bold="False"></AlternatingItemStyle>
<Columns>
<radG:GridBoundColumn DataField="PO_No" UniqueName="PO_No" HeaderText="PO #"></radG:GridBoundColumn>
<radG:GridBoundColumn DataField="Quantity_Ordered" UniqueName="Quantity_Ordered" HeaderText="Units Ordered">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
</radG:GridBoundColumn>
<radG:GridBoundColumn DataField="Quantity_In_Production" UniqueName="Quantity_In_Production" HeaderText="Units in Production">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
</radG:GridBoundColumn>
<radG:GridBoundColumn DataField="Quantity_Produced" UniqueName="Quantity_Produced" HeaderText="Units Produced">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
</radG:GridBoundColumn>
<radG:GridBoundColumn DataField="Quantity_To_Produce" UniqueName="Quantity_To_Produce" HeaderText="Units To Produce">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
</radG:GridBoundColumn>
<radG:GridBoundColumn DataField="Balance_To_Produce" UniqueName="Balance_To_Produce" HeaderText="Balance To Produce">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
</radG:GridBoundColumn>
<radG:GridBoundColumn DataField="Estimated_Completed_Date" UniqueName="Estimated_Completed_Date" HeaderText="ECD" DataFormatString = "{0:dd-MM-yyyy}" >
<ItemStyle width="70px"></ItemStyle>
</radG:GridBoundColumn>
<radG:GridBoundColumn DataField="Days_In_Production" UniqueName="Days_In_Production" HeaderText="Days in Production">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
</radG:GridBoundColumn>
</Columns>
<RowIndicatorColumn Visible="False">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
</mastertableview>
</radG:RadGrid>
<!-- -------------------------------------------------------------------- -->
<!-- Data source -->
<!-- -------------------------------------------------------------------- -->
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="FetchSKUByStage"
TypeName="PO_Tracking_WS.Service">
<SelectParameters>
<asp:Parameter DefaultValue="02,04" Name="p_stage" Type="String" />
<asp:Parameter DefaultValue="2" Name="p_indicator" Type="Int32" />
</SelectParameters>
</asp:ObjectDataSource>
<asp:ObjectDataSource ID="ObjectDataSource2" runat="server"
SelectMethod="FetchSKUInALLPOs" TypeName="PO_Tracking_WS.Service">
<SelectParameters>
<asp:ControlParameter ControlID="RadGrid1" Name="p_style" PropertyName="SelectedValue" Type="String" />
<asp:ControlParameter ControlID="RadGrid1" Name="p_color" PropertyName="SelectedValue" Type="String" />
<asp:ControlParameter ControlID="RadGrid1" Name="p_size" PropertyName="SelectedValue" Type="String" />
<asp:Parameter DefaultValue="2" Name="p_indicator" Type="Int32" />
<asp:Parameter DefaultValue="04" Name="p_stage" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
I have a ASP-Button that is supposed to do two things when clicked:
1. Call onClientClick to save radgrid content (batcheditmode) clientside, because radgrid doesnt provide serverside methode :-(
2. Fire Click (postback) to save other content
Approach 1:
btnOk.OnClientClick="SaveChangesToGrid();";
btnOk.Click += new EventHandler(btnOk_Click);
- Click is fired
- javascript function "SaveChangesToGrid();" is called, but the grid doesnt save.
Approach 2:
btnOk.OnClientClick="SaveChangesToGrid();return false;";
btnOk.Click += new EventHandler(btnOk_Click);
- Click is not !! fired
- javascript function "SaveChangesToGrid();" is called and saves then grid.
Using the built-in save buttun works.
Is there any possiblity to save a RadGrid AND other page-content with only clicking one button ??
I have searched this forum for more than a day, but nothing works for me.
Thanks for any help
onClientItemClicked / onClientItemClicking prevents that itemClick is fired.
I'm working on replacing a standard asp.net menu with RadMenu. I used this to come up with something I think I can live with on the desktop and mobile:
https://docs.telerik.com/devtools/aspnet-ajax/controls/menu/how-to/auto-height-of-mobile-radmenu-items-group-popup?_ga=2.68372561.1121007008.1609881912-1221423875.1609164691
The auto height fixes the scroll bar issue, but in mobile render, the expand icon is so far over it is off the background for the pop-up. They are very light in color and once they are off the pop-up background, really hard to see.
See attached image.
If I could get this fixed, I think I could live with this setup. Thanks.
And for the record, searching the documentation for this subject doesn't turn up much.
Hi
I'm using RadScriptManager to bundle external scripts like jquery.
There are other components in my project that use assembly resources to add scripts like jQuery.Ui.
the problem is that ScriptResource.axd is added to the page before Telerik.WebResource.axd so jquery is not added and it does not work.
is there any way to change this ordering and force telerik webresource for radscriptmanager to be added first.
best regards.
i would like to know how do i set the NumberFormat in code behind on runtime as my control are created dynamically during Page_Init event.
Hi,