Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
164 views

Using an Editor demo available from the demos, switch to HTML view and paste the following HTML into it:

<div class="row g-3">
<div class="col-6">
<h4>Left column...</h4>
<br />
This selector will match any element that has a class attribute starting with "col-". For example, it will match elements with classes like "col-1", "col-2", "col-header", etc.<br />
<br />
</div>
<div class="col-6"><span>Right column...</span></div>
</div>

Now, switch again to the Design mode.

Try to add some text after the "Right column..." text by placing the cursor in the end of the text, pressing enter and writing something, or just try to change that text format into an H4.

Editor will insert a new paragraph with the col-6 class and outside that DIV!

Here's the result:

<div class="row g-3">
<div class="col-6">
<h4>Left column...</h4>
<br />
This selector will match any element that has a class attribute starting with "col-". For example, it will match elements with classes like "col-1", "col-2", "col-header", etc.<br />
<br />
</div>
<div class="col-6"><span>Right column...</span></div>
<p class="col-6"><span>Just want to add more text...</span></p> --> this should not be here!
</div>

How can this be fixed? Need to provide some snippets but they are unusable this way.

Thank you

Hugo Augusto
Top achievements
Rank 2
Iron
Veteran
Iron
 updated question on 21 Jun 2023
1 answer
435 views

Hello.

Just renewed license.

I have a project with version 2022.3.913.40, wich came from previous versions always regularly upgraded with the extension from Visual Studio 2019.

Now I dowmloaded the latest, version 2023.2.606.45, but when I try to upgrade with the Upgrade Wizard from the extensions, the wizard says "no available Telerik projects that can be upgraded" and I can't upgrade.

What can I do?

Matteo

Matteo
Top achievements
Rank 1
Iron
 answered on 20 Jun 2023
0 answers
108 views

I have a rad grid with toggle buttons if i select one i need the grid to be disabled and if i switch to another it needs to be enabled i am using onclientcheckedchanged event.

All other buttons are disabled apart from that, but not the whole grid, atleast i need the checkboxed in the grid to be disabled.

could you give me a solution.


rithik
Top achievements
Rank 1
 updated question on 20 Jun 2023
1 answer
432 views

Hello,

We have an application that is used by clients from different countries in multiple languages. The date and number formats have to be the same for all clients in a certain country, the language can be selected by the user.

This works well by specifying the Thread.CurrentThread.CurrentCulture for the date and number formats and the Thread.CurrentThread.CurrentUICulture for the culture of the user's language.

When formatting dates, the names of the days and months are taken from the CurrentCulture. To make sure these names match the UICulture, we copy the names from the UICulture to the Culture. This works fine in most situations (for example in the DateTime.Format() function).

The behaviour of the RadDatePicker and RadMonthYearPicker seems a bit off though. In the picker (popup) the day and month names are correctly taken from the culture as we set them. In the input field however, the original day and month names are used. This seems wrong to me. Are we doing something wrong, or is this a bug in how the date pickers use the culture settings?


            var uiCulture = CultureInfo.CreateSpecificCulture("nl-NL");

            var customCulture = CultureInfo.CreateSpecificCulture("en-US");
            customCulture.DateTimeFormat.AbbreviatedDayNames = uiCulture.DateTimeFormat.AbbreviatedDayNames;
            customCulture.DateTimeFormat.DayNames = uiCulture.DateTimeFormat.DayNames;
            customCulture.DateTimeFormat.AbbreviatedMonthGenitiveNames = uiCulture.DateTimeFormat.AbbreviatedMonthNames;
            customCulture.DateTimeFormat.AbbreviatedMonthNames = uiCulture.DateTimeFormat.AbbreviatedMonthNames;
            customCulture.DateTimeFormat.MonthNames = uiCulture.DateTimeFormat.MonthNames;
            customCulture.DateTimeFormat.MonthGenitiveNames = uiCulture.DateTimeFormat.MonthGenitiveNames;
            customCulture.DateTimeFormat.ShortestDayNames = uiCulture.DateTimeFormat.ShortestDayNames;


            Thread.CurrentThread.CurrentCulture = customCulture;
            Thread.CurrentThread.CurrentUICulture = uiCulture;

 


The day and month names of the picker are localized, the input field is not.

 

Thanks for any suggestions,
Cloud9Software.

MC
Top achievements
Rank 1
Iron
 updated answer on 19 Jun 2023
1 answer
676 views

Hi,

I have several PDFViewer in different pages of my application, contained in div that can be collapsed.

Depending of the pages the div can be collapsed or not at loading of the page.

For the ones that are not collapsed, the PDFViewer scale is set to "Fit to Width" and the scaling is ok.

However, for the ones that are in collapsed div, the "Fit to Width" setting is not processed.

Attached is a project with the described behavior.

 

Is there a way to manage the scaling properly on collapsed PDFViewer ?

Attila Antal
Telerik team
 answered on 15 Jun 2023
1 answer
151 views

I'm using RadListBox as as RadTreeview in my page.

I'm binding data to RadTreeview with:

            List<SiteDataItem> siteData = GetNotificationTree();

            treeView.DataTextField = "Text";
            treeView.DataFieldID = "ID";
            treeView.DataFieldParentID = "ParentID";
            treeView.DataSource = siteData;
            treeView.DataBind();

 

Serverside I want to read the Value of the checked items. In Listbox that works with:

ListBox.CheckedItems.Select(_ => int.Parse(_.Value))

But in Treeview I'm not able to access the values e.g. with:

Treeview..CheckedNodes.Select(_ =>int.Parse(_.Value)). I'm only able to read the text property but not the value bound to the TreeView.

 

Doncho
Telerik team
 answered on 13 Jun 2023
1 answer
162 views

I've been attempting to use RadHTMLChart and have a few questions: 

  1. Is there any way to trigger some behaviour when a user clicks on text in the X axis? Ideally a postback telling me which value was clicked so I can then display more detail on it. 
  2. When using a percent stacked bar chart, it can be very difficult to read small percent values if one item is at 90% or something like that. However, if I use the legend to hide the one value then all the percentages change so that the currently displayed items all add up to 100%. Is there any way to keep the original percentages?
  3. Through testing we've discovered various characters that can't be used in the label/value fields, such as an apostrophe. Is there a list of these anywhere? 

Thanks in advance.

Doncho
Telerik team
 answered on 12 Jun 2023
0 answers
132 views

Good morning,

i have page where top consist of a form and bottom consist of grid data. Grid data has 4 types of record:

'S' -  saved record where when i click on the row in the grid top of the page is fill out and I may modify radnumerictextbox and set the max value of radnumerictexbox in code behind

'P' - pending record where when i click on the row in the grid top of the page is fill out and I cannot modify radnumerictextbox  however the requested hours which i get from SP into the grid  has to go to radnumericbox instead max value is going into box.

For example: from 'S' saved record i set max value to 100. After that when i click on ''P' record instead of going 200 hours(from SP) into radnumeric box it will show max value from 'S' saved record which is 100.

My question is: is there possibilty to initialize max value when i click on 'P' record to show me actually reguested hours instead of max value set manually from previous clicked even though requested hours is greater than max value. if not then what other option do i have?

Thanks so much for your help.

Vitaly.

     

Vitaly
Top achievements
Rank 1
Iron
Iron
 asked on 12 Jun 2023
1 answer
120 views

Happens when upgrading to 2023.2.606

What can I do about this one?

 

Marc

Fit2Page
Top achievements
Rank 2
Bronze
Iron
Iron
 answered on 12 Jun 2023
0 answers
110 views

I have a RadGrid that I want to bind totally on the client side. I used a RadClientDataSource and it populates nicely. I have many records, so I want to use custom paging and sorting so I am only pulling 5 records at a time. When I click on a row, I have it use an ajax call from jquery to get the VirtualItemCount and use set_virtualItemCount() to set property on RadGrid.

This all seems to work okay. But when I click on a sort column or a pager item, it blanks the whole grid. What events handler can I implement on client side to handle the sort event and the PageIndexChanged event? Here is my how I am handling the row clicked event:

 function rowClick(sender, eventArgs) {
            var nodeid = eventArgs._dataKeyValues["NodeId"];
            var masterTable = sender.get_masterTableView();
            var url = "/myservice.asmx/GetRowCount";
            var params = JSON.stringify({ NodeId: nodeid });
            $.ajax({
                method: "POST",
                url: url,
                data: params,
                dataType: "json",
                contentType: "application/json; charset=utf-8",
            })
                .done(function (msg) {
                    masterTable.set_virtualItemCount(msg.d);
                    window.nodeId=nodeid;
                    masterTable.rebind();
                });
        }
and here is how I handle the parameter mapping event:
   function ParameterMap(sender, args) {
        if (args.get_type() == "read" && args.get_data()) {
            var skip = window.pageSize * window.pageIndex;
            var take = window.pageSize;
            var params = { NodeId: window.nodeId, Skip: skip, Take: take, SortExpression: window.sort};
            var paramstr = JSON.stringify(params);
            args.set_parameterFormat(paramstr);
        }
    }

Mike
Top achievements
Rank 1
 asked on 11 Jun 2023
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?