Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
146 views
Hello

I've got a user control featuring the RadEditor, and I've been using the OnClientPasteHtml event handler to strip out html pasted into the content pane via Ctl-V.  I'm maintaining a clients' code base and they report this was working okay until recently.  They're using 2013.2.717.45 of Telerik.Web.UI.

I've found that the unwrapped version of RadEditor fires OnClientPasteHtml just fine.  If I create a usercontrol, add an Editor instance with the exact same configuration, and add the usercontrol to the page, the client side event no longer fires.

Issue occurs in IE11, FF, Chrome and Safari.

Help or guidance would be appreciated, thanks very much.

Michael
Rumen
Telerik team
 answered on 31 Jul 2018
4 answers
245 views
We intially had textarea being used in our application. When we changed to RadEditor, all our old records did not apply line breaks, since there were no <br> tags. They had new line characters. So I am using <pre> tag inside RadEditor to display them in next line. But now there is an issue while we copy and paste text from an editor. The text wrapping does not occur and we get horizontal scroll. Need help to wrap the text.
Yuvaraj
Top achievements
Rank 1
 answered on 31 Jul 2018
8 answers
1.0K+ views
hi

i am having an issue with the programmatic creation of series and data , i have many series to add to a line chart , but the data is based on a time series so i am struggling to get it properly into a system.

would anyone be able to provide an example of programmatic creation of multiple series data based on a time series ?

Peter.

Vessy
Telerik team
 answered on 30 Jul 2018
1 answer
88 views

 

How to show time picker even if I create appointment on month view or week view? any chance to achieve that?

 

Regards

Peter Milchev
Telerik team
 answered on 30 Jul 2018
7 answers
1.4K+ views
Hello.

Inside an UpdatePanel, I have a "search" button and a RadGrid. The grid is programatically data-bound whenever the search button is clicked. I also have a RadAjaxManager which enables the paging (otherwise, "next" and "back" always return the first set of results). The problem is, if I select say the second page of a set of results, then click "search" to create a different set of results, the grid shows the correct results but the paging is still on page 2, and I'd like it to start on page 1.

I have tried to reset the paging index to 1 on my search button onclick, to no avail. I cannot set it on the databind bit, since that is called whenever a new page is selected.

Any help appreciated.

Bérénice
Christopher Lee
Top achievements
Rank 1
 answered on 30 Jul 2018
2 answers
749 views

I am trying to implement server side custom paging and using https://demos.telerik.com/aspnet-ajax/grid/examples/functionality/paging/custom-paging/defaultcs.aspx as a reference. 

Please refer to your following code

protected void RadGrid1_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
        {
            MyBusinessObjectCollection MyBusinessObjectCollection1 = new MyBusinessObjectCollection();
            int startRowIndex = (ShouldApplySortFilterOrGroup()) ?
                0 : RadGrid1.CurrentPageIndex * RadGrid1.PageSize;
  
            int maximumRows = (ShouldApplySortFilterOrGroup()) ?
                MyBusinessObjectCollection1.SelectCount() : RadGrid1.PageSize;
  
            RadGrid1.AllowCustomPaging = !ShouldApplySortFilterOrGroup();
  
            RadGrid1.DataSource = MyBusinessObjectCollection1.Select(startRowIndex, maximumRows);
        }

 

If the user uses filtering, say in the example, searching for Unit Price 9, in this case, your ShouldApplySortFilterOrGroup() would return a true. That means maximumRows will be count of entire dataset. So, MyBusinessObjectCollection1.Select(0, 100000); would be very expensive.

 

I also noticed, that when filtering, items in pages in the bottom right of the grid doesnt display the correct item count.

 

Do you have another working example of server side paging which allows filtering?

Thank you

Attila Antal
Telerik team
 answered on 30 Jul 2018
2 answers
193 views

I am in the process of adding Time Zone functionality into our existing Scheduler which did not include it.  I am having an issue when I set a TimeZoneId on the Scheduler and then use the Advanced Form with EnableTimeZonesEditing turned on.  The times of the appointment that get stored in UTC reflect the time zone of the Scheduler, not for the appointment.  For example, if I set the TimeZoneId of the Scheduler to "Pacific Standard Time" and add an appointment for July 25, from 1:00 PM to 2:00 PM with a timezone of "Eastern Standard Time", I would expect the stored time of the appointment to be 17:00 to 18:00 UTC.  However, when I view the appointment in the AppointmentInsert event, the start time is 20:00 UTC and then end time is 21:00 UTC, even though the TimeZoneId of the appointment shows as "Eastern Standard Time".

Am I supposed to do the calculation myself when adding an appointment with a different timezone than the Scheduler, or should this be done automatically?  Looking at the code for the Time Zones demo for the Scheduler, I don't see any additional code for this calculation, yet it seems to work as expected.

Peter Milchev
Telerik team
 answered on 30 Jul 2018
1 answer
93 views
how can i Combine Browse and Upload or (submit) into one step, combine them and have one button that says “Browse & Upload”
Rumen
Telerik team
 answered on 30 Jul 2018
4 answers
197 views

Hi everyone !

I have a page with my group of products and my products based on a TreeList (retrieved from database - See : "GroupProduct.png") It's a RadTreeList. Every item should have some parameters that expands once user clicks on the product or group of products based on a table "group_product_ext" in the same way shown in "Mockup.png" (It can be a GridView or whatever). Parameter should be editable with AJAX and user can apply or cancel his changes.

The problem is : How should I use the ascx control ? Which item would go for parameters that can expands ? And how to link the ascx control containing these parameters just under the groups of products and the products?

 

Some help for include a custom ascx control to my page containing a label, a checkbox and a textbox for the parameter would be awesome (it can be filled with basic data just for test)

 

A simple project of the radtreelist : Link removed by Admin because the project violates the UI for ASP.NET AJAX EULA.

A similar result to my expectation is something like this : https://www.telerik.com/clientsfiles/331457_TreeView.png?sfvrsn=9f67e1ee_0

 

 

Hamza
Top achievements
Rank 1
 answered on 30 Jul 2018
6 answers
694 views

I have been banging my head on this for a couple days. I have a simple radgrid in which I am doing batch editing. The problem I have is that when I change the page or sort a column any changes made are lost. I want the changes to automatically be saved via the BatchEditCommand server-side event before the page flip or sort occurs.  I have subscribed to the RadGrid's OnCommand client side event and the function is below. 

The javascript function is being executed properly when I page or sort and everything seems fine at each point when debugging. The server side function--BatchEditcommand--functions properly, but it is simply not being executed from this point.

I know the grid.get_batchEditingManager().saveChanges(grid.get_masterTableView()); is being executed because this function runs again immediately and the args.get_commandName() returns "BatchEdit" as it should.  

The only way I can get the BatchEditCommand server side event to fire is if i put a args.set_cancel(true); after the grid.saveChanges in the javascript, but then that cancels the paging or sorting action which I want to still happen after saving the changed data. I feel like this should work since the paging action and the saving action both cause postback anyway.

 Any ideas?

Thanks.

function UserAction(sender, args) {       
    var grid = $find("<%= grdWaterUses.ClientID %>");     if (args.get_commandName() == "Sort" || args.get_commandName() == "Page") {         if (grid.get_batchEditingManager().hasChanges(grid.get_masterTableView())) {           
          document.getElementById("<%= hiddenPostbackCommand.ClientID %>").value = "ClientSave";           grid.get_batchEditingManager().saveChanges(grid.get_masterTableView());         
        }       
    }     
}

Marcus
Top achievements
Rank 1
 answered on 27 Jul 2018
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?