Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
132 views

Hello,

I have 2 RadComboBox.

The first One Is enabled on Page load and shows States, with Checkboxes=true.

Here the user can select one or more States.

The second RadComboBox Is not enabled by default, and became enabled when the user select at least one state in the first combobox.

This combobox should display cities of the states selected in the first combobox.

What Is the best approach (better with examples) to implement this?

Thank you.

Luis

Peter Milchev
Telerik team
 answered on 14 Jul 2020
3 answers
2.8K+ views

Hello,
in my ASP.NET WebForms page I have several RadComboBox like this:

<telerik:RadComboBox ID="radComboBoxFormat"
                EmptyMessage="Format"
                MarkFirstMatch="true" Width="100%" runat="server" CheckBoxes="true"
                DataTextField="Description"
                DataValueField="Code">
</telerik:RadComboBox>

 

Now I'd like to write a method that iterates through selected items 
and compose a List<string>, or a comme separated value long string, 
of the item's selected code, but one only method valid for all 
RadComboBox of the page (for not having duplicated code). 

How can I achieve this?

Thanks a lot in advance. 

Luigi

 

Peter Milchev
Telerik team
 answered on 14 Jul 2020
1 answer
171 views

Hello,
I have this HTML code (for RadAutoCompleteBox) in my aspx page (WebForms): 

<telerik:RadAutoCompleteBox RenderMode="Lightweight" runat="server" ID="acbClient"
                  EmptyMessage="Client" OnClientDropDownItemDataBound="RemoveDuplicated" MaxDropDownHeight="100"
                  DataTextField="RagSoc" DataValueField="CodCli" InputType="Token" DropDownHeight="150px"
                  CssClass="RadAutoCompleteBoxPopup_Default" CollapseAnimation-Type="OutElastic"
                  Width="385">
</telerik:RadAutoCompleteBox>

 

and this in code-behind (VB.NET):

Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
 
    If GetClient(dtClient) = True Then
      acbClient.DataSource = dtClient
      acbClient.DataBind()
    End If
 
End Sub

 

but when I click some letters (for example, "ac" like in the screenshoot), 
seems that don't find the exact matching. 

Why this happens?

Thanks a lot in advance. 

Luis

 

 

 

 

 

 

Peter Milchev
Telerik team
 answered on 14 Jul 2020
1 answer
141 views
Hi,
How can I hide the Add Child and at the same time is displayed Add Above and vice versa hide Add  Below and at the same time is displayed Add Child ?

Doncho
Telerik team
 answered on 14 Jul 2020
2 answers
594 views

Hello,

in the PreRender event of my RadGrid, I have columns with date field in headers.

If I have 

grdPositions.MasterTableView.GetColumn("09/07/2020")

I obtain a GridBoundColumns correctly. 

How can I format this date with day name before? (Mer 09/07/2020)

And If I dont know the exact days, but only that some headers are date field, how can format every one of them?

Thank you. 

Luis

Ciupaz
Top achievements
Rank 2
Veteran
 answered on 13 Jul 2020
2 answers
10.4K+ views
Hi,

I'm betting this is so simple that i'm overlooking things. Currently my dates are being stored as:

"2008/11/08 12:00:00 AM"

The format i'm wanting it to be displayed as should be:

"08 November 2008 12:00:00 AM" or "08/11/2008 12:00:00 AM"

The time whether displayed or not is not that important at the moment.
Thanks,
Eyup
Telerik team
 answered on 13 Jul 2020
2 answers
159 views

Hello,
I have 2 RadComboBox.
The first one select one or more cities:

<telerik:RadComboBox ID="cmbCities"
                EmptyMessage="Cities" runat="server"
                MarkFirstMatch="true" Width="100%"
                CheckBoxes="true" EnableCheckAllItemsCheckBox = "true"
                DataTextField="CityName" AutoPostBack ="true"
                DataValueField="CityCode" 
                OnSelectedIndexChanged="cmbCities_SelectedIndexChanged">
</telerik:RadComboBox>

 

and the second one should is bases on the selected items of the first one, 
and should shows the products available in the selected cities. 

 

<telerik:RadComboBox ID="cmbProducts"
                EmptyMessage="Products" runat="server"
                MarkFirstMatch="true" Width="100%"
                CheckBoxes="true" EnableCheckAllItemsCheckBox = "true"
                DataTextField="ProductName" AutoPostBack ="true"
                DataValueField="ProductCode" 
                OnSelectedIndexChanged="cmbProduct_SelectedIndexChanged">
</telerik:RadComboBox>

 

My problem is that I don't know how to create the query (SELECT) based on the first combobox selection,
something like:

SELECT ProductName, ProductCode FROM Products WHERE CityCode IN (........selectedItems from 1st RadComboBox....)

Can anyone help me?

Thanks a lot. 


Luis

 

 

 

 

 

 

Ciupaz
Top achievements
Rank 2
Veteran
 answered on 13 Jul 2020
5 answers
193 views

Hi,

we are currently trying to migrate our Web application from Telerik controls version 2014.2.724.40 to version 2020.2.617.45. In our code we create GridBoundColumns using

 column = new GridBoundColumn{DataFormatString = "<nobr>{0}</nobr>"};

Now when running the application with version 2020.2.617.45 the <nobr> tags show up in the grid cells, whereas they do not when using version 2014.2.724.40. In the attached picture the above grid is with version 2014.2.724.40 and the lower with version 2020.2.617.45.

What am I missing?

Thanks,

Michael

Michael
Top achievements
Rank 1
Iron
 answered on 13 Jul 2020
12 answers
399 views

Hello,

 

I have an ascx-control is being placed 7 times at the aspx-page.

All controls render the same huge amount of rows: 2400.

 

The 1st control takes ~1 sec to render.

The 2nd - ~3 sec.

The 3rd - ~15 sec.

The 4th - ~25 sec.

The 5th - ~40 sec.

The 6th - ~65 sec.

The 7th - ~105 sec.

To render all controls on client it takes about 6 min, regardless the first 2 controls is being rendered almost immediately.

 

This is reproduced only on the Google Chrome the latest version (83.0.4103.97).

I did a try on the Chrome v.81, and there is no performance issue.

Also, there is no performance issue on the following browsers: Mozilla Firefox, IE 11, Edge.

 

Please see below usage of the RadListBox:

 

<telerik:RadListBox ID="RadListBox1" 

                    OnItemDataBound="RadListBox1_ItemDataBound" 
                    CheckBoxes="true" 
                    OnClientItemChecked="ItemChecked" 
                    Width="100%" Height="200px" 
                    SelectionMode="Single" 
                    DataTextField="Name" 
                    DataValueField="ID" 
                    EmptyMessage="No Rows" 
                    OnClientLoad="SetInitialEnable"
                    runat="server"></telerik:RadListBox>

 

And set items at the ascx.cs:

            DataTable list = GetList();
            RadListBox1.DataSource = list;
            RadListBox1.DataBind();

 

Actually I have tried the Load On Demand feature, the controls have been loaded even immediately, but all custom js were failed.

Please advice.

Peter Milchev
Telerik team
 answered on 13 Jul 2020
6 answers
574 views
Hi,

I am using RadControl Q1 2009.

I am using radscheduler.
In monthview of radscheduler it gives goto dayview  when we click on any date header of monthview.
I want to restrict to go to day view from monthview.
How can i restrict to go tothe day view when click on any date header of monthview ?

Thanks



Zoltán
Top achievements
Rank 1
 answered on 11 Jul 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?