Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
101 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
538 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
9.9K+ 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
104 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
152 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
314 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
509 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
3 answers
124 views

Hi !

I try to manage default sorting on my grid. I add this markup into the MasterTableView :

<SortExpressions>
    <telerik:GridSortExpression FieldName="Prenom" SortOrder="Descending"/>
</SortExpressions>

But the datas are not sorted and the code :

$find('RadGrid1').get_masterTableView().get_sortExpressions()

return an empy array.

Is it normal ?

Doncho
Telerik team
 answered on 10 Jul 2020
2 answers
361 views

I have been trying to diagnose some annoying intermittent errors I see thrown by AWSSDK, which include it trying to locate my AWSSDK profile/credentials files.
I used this guide to create them:  https://docs.aws.amazon.com/sdk-for-net/v3/developer-guide/net-dg-config-creds.html

To fix this, I created the profiles and credentials in a flat file and put references to them in <appSettings>:
<add key="AWSProfilesLocation" value="C:\Users\Administrator\.aws\credentials" />
<add key="AWSProfileName" value="default" />
<add key="AWSAccessKey" value="ABC123" />
<add key="AWSSecretKey" value="DEFG6789" />
<add key="AWSBucketName" value="media.mysite.com" />


This addition works well in projects I use that do not have CloudUploaders, such as WebAPIs and services. Unfortunately, if I add these lines to a project with CloudUploader, it makes it so the uploader barks on every single upload, as if all files are invalidated or errored when attempting to select one. The project doesn't spit out a useful error so I'm not 100% sure whats happening.

Peter Milchev
Telerik team
 answered on 10 Jul 2020
1 answer
114 views

Hi sir,

 

           I use rad splitter i give color but not display so how i give color  but rad splitter now work.

Note: 

     I need give color for i mark in screenshot pls reply ASAP

 

Vessy
Telerik team
 answered on 10 Jul 2020
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?