Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
175 views
Hi,

I am using RadListBox in one of my project.I just want to set my own css classes to the buttons(To left,To right,All right,All Left)buttons
i didn't find any properties to set these css classes and i dnt want to use default skins/classes provided by telerik
Can you please suggest some thing on this

Regards
Kumar

Doncho
Telerik team
 answered on 12 Jan 2021
1 answer
132 views

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>
Vessy
Telerik team
 answered on 12 Jan 2021
1 answer
328 views
Hi, Can I check if there is existing toolbar allow end user to rotate the PDF itself?
Vessy
Telerik team
 answered on 12 Jan 2021
19 answers
692 views
Hi,

I have used a RAD tab strip which has multiple pages. When I click any tab the page gets refreshed.

Also, I cannot use combo box and date time picker in TAB pages.

How can I achieve this?

Thanks,

Kishor.
Vessy
Telerik team
 answered on 11 Jan 2021
2 answers
376 views

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>

SMc
Top achievements
Rank 2
Iron
Veteran
Iron
 answered on 08 Jan 2021
15 answers
1.2K+ views

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.

Doncho
Telerik team
 answered on 08 Jan 2021
1 answer
158 views

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.

 

 

 

Doncho
Telerik team
 answered on 08 Jan 2021
1 answer
186 views

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.

 

Attila Antal
Telerik team
 answered on 08 Jan 2021
1 answer
245 views

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.

 

 

Doncho
Telerik team
 answered on 08 Jan 2021
2 answers
316 views

Hi,

     

Peter Milchev
Telerik team
 answered on 06 Jan 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?