Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
1.6K+ views

Hello

I somehow can't find a way to programmatically set selected values of RadMultiSelect when page opening on the server.
Can you help me?
Thank you.

Peter Milchev
Telerik team
 answered on 25 Nov 2020
1 answer
109 views

Hello,

I am using HeaderContextMenu in my Grid. I am using it together with GlobalRosources.
I am also using filterlist.
Everything works as expected. Just the Search and "Check All" checkbox doesnt get translated.

I managed to translate Search using "HeaderContextMenu_ItemCreated", but couldn't find a way to do it for "check all"

Regards

Doncho
Telerik team
 answered on 25 Nov 2020
7 answers
372 views
Hello,

I have a page that has RadMenu Ajax and RadWindow.  When I use the RadWindow to pop up a page, the menu sits on top of the Window?

Bug or easy to fix?

Thanks

Tim
Vessy
Telerik team
 answered on 25 Nov 2020
3 answers
108 views

Hi,

I have a problem with RadScheduler when running on production server.

The DayView and the fill of the appointment is black and not the color defined by design.

In WeekView and MonthView the Friday cells are even black.

So no text is visible.

 

Running on my development machine everything is fine.

Now I have installed VS on the production server. Running the site as debug everything is well displayed.

Deploying the app using folder profile: DayView etc is black...

 

Do you have a tip to fix this problem?

 

Regards

Hardy

Vessy
Telerik team
 answered on 24 Nov 2020
1 answer
111 views

Hello Telerik-Team,

I am using RadDiagram to move shapes on a picture. My issue is if I move shapes, i can't place it on exact position like I want.

Is there a possibility to move the shapes finer?

Regards

Vessy
Telerik team
 answered on 23 Nov 2020
2 answers
126 views

<label class="lbl"><%= Resources.Resource.frmDate%></label>

I am getting below error when i call a global resource file in my page which has a radgrid.

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

Doncho
Telerik team
 answered on 20 Nov 2020
7 answers
749 views
category1
  -  category2
       -  item1
       -  item2
       -  item3
  -  category3
       -  item4
category4
  -  item5
  -  item6
category5
  -  category6

Above is an example of my treeview I'm working with.  I would like to conditionally enable/disable drag and drop functionality per node type. 
If a node is an item:
  -  it can be dragged into (over) a node that is empty or already has other items in it
  -  it can be dragged next to (above/below) a node that is

If a node is a category:
  -  it can be dragged into (over) a node as long as that destination node does not have item child nodes

Is there any way to set this in code when the page loads either through code or attributes?  I have dropping disabled on all item nodes.  I know that I can check the node types on postback, but I'm wanting to not let the user perform the drop initially based on the above criteria, therefore eliminating the unnecessary  postback.  Please help.
Erik
Top achievements
Rank 1
 answered on 19 Nov 2020
3 answers
73 views
I have a RadGrid ASP.NET AJAX control. About a half dozen columns are set with Filters (AutoPostBackOnFilter=True) so you can filter as well you can sort on all columns by clicking any column in the first row. I also have a RadSlidingPane that shows another half dozen filtering choices that apply to the entire grid, allowing you to optionally filter by geography, client, that sort of thing. All of this has worked for many years on my Visual Studio dev machine as well as our production web server (Win2003 with IIS 6). The production web server is an old machine so I spun up a new web server to move the code to. I copied the directory without any changes, to the new web server, configured it in IIS 10.0 correctly (I think) but it doesn't quite work the same. Certain features fail:

The RadGrid loads all data, however when I try to filter any column, or sort any column, or apply any filters in the RadSlidingPane, the page flashes and no sorting or filtering gets applied. You also don't see a column highlighted if you had chose to sort it. It also doesn't remember any choices I had made in any of the RadComboBox's available in the RadSlidingPane. Basically, it's reloading the entire page instead of just the RadGrid.

Here is some database layer clues: Normally when someone sorts or filters, the RadGrid is only supposed to refresh one DataSource, what is bound to the RadGrid, the DataSourceID="empMainGrid" - not all 9 DataSource's that are defined on the page. I'm tracing what is happening at the SQL Server Database Layer and I can see all 9 stored procedures being called each time, which is a clear sign something is wrong and the whole page is reloading. On my dev machine and old production web server, only 1 database call happens which is what is supposed to occur.

Why. This is the exact same directory of files that works perfectly on the old webserver and my dev machine. Moving it to a new machine fails?

I also tried this upgrade about 4 years ago and gave up. Back then, it was another new web server (Windows 2012 with IIS 6.2) but same issue. I'm trying again now on this latest new web machine (Windows 2019 with IIS 10), it's still failing. My code was built targeting Telerik ASP.NET AJAX v.2016.3.1222.40. Further back, a Telerik v2011 version also worked fine.

Since it's failing, I just tried upgrading to the most current version of Telerik on my Dev VM: ASP.NET AJAX v2020.3.1021. In my Dev VM, it works on Telerik v2016 as well as the upgraded Telerik v2020. So I tried deploying this new directory to new web server, it still fails. Thus, upgrading to the latest Telerik is probably not the solution. It seems like something is configured wrong on the IIS web server. But what? Or is it something else obvious that I've missed?

My app is targeting ASP.NET v4.0.30319.

Thank you for reading all this and please help if you can. I'm out of ideas and feel stuck on this old hardware without a way to upgrade to a new web server.
Attila Antal
Telerik team
 answered on 19 Nov 2020
3 answers
277 views
I have a page with three tabs and three pageviews. Each tab/pageview has a radgrid. I have a button that calls server side code that does a MasterTableView.ExportToCSV. I would like to be able to determine which tab/pagewview is selected so that I can do the export for the grid in that selected pageview.
Vessy
Telerik team
 answered on 18 Nov 2020
1 answer
115 views

Hi, I am trying to bind into a FormTemplate for editing from a GridBoundColumn 'value' where on ItemDataBound I pulled the information from multiple other columns in my Data Table (value_int, value_string, value_bit).  For each row only one column would have information and the rest are null. 

 

I haven't been able to figure out how to populate the textbox from 'value' let alone eventually write this back.  Another thing I have tried other than (unsuccessfully) getting the data from the 'value' column in my grid was to use bind() for each column in the data table as such:

<asp:TextBox ID="txtBoxValue" runat="server" Text='<%# Bind("Value_string") ?? Bind("value_decimal18_2") ?? Bind("value_bit") %>'></asp:TextBox>

 

But this only binds whatever value_bit shows as either true/false or a space as it doesn't seem to be a null.  code behind to bind the 'value' column is the following:

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
        {
 
            if (e.Item is GridDataItem && e.Item != null)
            {
                GridDataItem item = (GridDataItem)e.Item;
                DataRowView drv = (DataRowView)e.Item.DataItem;
 
                if (drv["value_type"] != null)
                {
                    if ((string)drv["value_type"] == "value_string")
                    {
                        item["Value"].Text = drv["value_string"].ToString();
                    }
                    else if ((string)drv["value_type"] == "value_bigint")
                    {
                        item["Value"].Text = drv["value_bigint"].ToString();
                    }
                    else if ((string)drv["value_type"] == "value_decimal18_2")
                    {
                        item["Value"].Text = drv["value_decimal18_2"].ToString();
                    }
                    else if ((string)drv["value_type"] == "value_bit")
                    {
                        item["Value"].Text = drv["value_bit"].ToString();
                    }
                }
}

 

 

Attila Antal
Telerik team
 answered on 18 Nov 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?