Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
107 views
I need to add functionality to a raddatepicker such that typing "t" will change to today's date, "t-x" will subtract x days from today, and finally "t+x" will add x days to today.  I used OnValueChanging and have it working, however after everything has run through it seems to override the "t-x" and "t+x" to be "m/x/yyyy" where m is the current month, x is the number I typed, and yyyy is the current year.  Is there a better way to do this or a way of stopping the override.
Eyup
Telerik team
 answered on 10 Dec 2018
9 answers
348 views
We are using RAD Grid.(2011.1.519.35)

For ADA compliance , we need to be able to browse through all the cells in the grid so that screen reader can read the data in each cell.

We are using bound fields and template fields

Issue is that the tab does not work for bound fields, it works only for the link button fields.

How can the tabbing be enabled for bound field as the same is required for ADA compliance.

Thanks,


Eyup
Telerik team
 answered on 10 Dec 2018
6 answers
203 views

Hello, please open a demo page https://demos.telerik.com/aspnet-ajax/datetimepicker/overview/defaultcs.aspx?skin=Bootstrap and select Bootstrap skin.

Note that the left top & bottom corners are not rendered correctly. Most likely it's related to the "box-sizing: content-box".

Rumen
Telerik team
 answered on 10 Dec 2018
3 answers
303 views

I just took over an app that is using the Editor control and users are unable to indent line by line. When they try to indent to indents everything in the box. I have to go to the HTML tab and remove the <p> text</p> tags to have it indent line by line. Is there a fix for this somewhere or do we need to upgrade? It's happening with IE 11.

 

The Telerick.Web.UI dll we are referencing is version:

2011.1.413.35

runtime version is: v2.0.50727

 

I have the app rendering in IE 9 mode in IE 11, however, it's still not working correctly with the formatting pieces

Rumen
Telerik team
 answered on 10 Dec 2018
2 answers
293 views
Hello,

I have a master page in which I have rad tree view with check boxes (this forms the left menu of the page).
I created another page which refers to above master file.
In the content tab , I have created RadTabs (this has panel in it).

My requirement is that , when the user checks a checkbox node,  a text box should get dynamically added to the rad tab's panel.

How can I do this ( sample will help. )

Should I ajaxify and write server side code - how ( becuase rad controls are already ajaxified.) . I think this should be done client side , so should i use javascript (but this will be complicated I think). Any other approach

Help appreciated.
Naveed
Top achievements
Rank 1
 answered on 08 Dec 2018
6 answers
1.0K+ views
Hi,
    I have a radgrid in default.aspx page. I want show some data in radgrid with paging. But I dont have the whole datasource at the Need_DataSource event. My backend is like, passing the pagecount and the service will return only 100 records of the Nth page. I dont know the approximate total rows count. How do I achieve paging in radgrid without having the whole datasource and total rows count?
Please guide me.


Thanks,
Tamil
Sean
Top achievements
Rank 1
 answered on 07 Dec 2018
12 answers
276 views

Hi,

My company has a requirement to build a User Control that has 3 tabs Current, Original and Final.

Current tab will display the current content of the RadEditor including all the Track Changes information.

Original tab will display the original content of the RadEditor before changes are made (all the changes are rejected).

Final tab will display the final content of the RadEditor if all the changes are accepted.

 

To achieve this I have tried 2 methods.

First, I tried to use the server-side methods AcceptTrackChanges to get the content for Final and RejectTrackChanges to get the content for Original.

However, this did not work because AcceptTrackChanges and RejectTrackChanges does not accept or reject text formatting changes like Bold, Italics, etc.

 

The second method I tried was to use the client-side workaround suggested by http://feedback.telerik.com/Project/108/Feedback/Details/88678-when-accepttrackchanges-method-is-being-used-from-the-code-behind-inline-forma.

Unfortunately that did not work either.

 

Is there another way to achieve what we want?

Rumen
Telerik team
 answered on 07 Dec 2018
1 answer
227 views

I've been learning about CosmoDB in Azure. I've moved some data to Azure CosmoDB to test/learn with. I'm really looking for an example with CosmoDB and Web Forms with Telerik Grid control. 

I'm trying to understand what Telerick controls have support for CosmoDB. 

ASP.NET AJAX Grid Support CosmoDB (yes/no)?  
ASP.NET MVC (yes/no)?
Does Telerik have support ASP.Net Razor Pages and can you connect to CosmoDB from Razor (yes/no).

Any links to Telerik Docs would be super helpful. I read all the docs.microsoft pages on CosmoDB. 

Any samples? I searched around Telerik site but found very little info CosmoDB.

Thanks
Jason

 

Tsvetomir
Telerik team
 answered on 07 Dec 2018
2 answers
188 views

     Hi,

So far the radscheduler has proved to be a very useful asset. However I am stuck with one issue. As part of my apptemplate on the instantiation of the control I want to set the 'Appointment' with the 'data-toggle', 'data-placement' and 'title' attributes in order to use a Bootstrap 3 tooltip rather than the generic one. At runtime it ignores what I've set and sets the title as the content of the appointment. 

Is there a way to do this? Or is something happening in the background which removes it. Example below. None of the 'app.Attributes' get appended.

public void InstantiateIn(Control container)
            {
                SchedulerAppointmentContainer aptCont = (SchedulerAppointmentContainer)container;
                Appointment app = aptCont.Appointment;
                app.Attributes.Add("data-toggle", "tooltip");
                app.Attributes.Add("data-placement", "right");
                app.Attributes.Add("title", "Radscheduler is the best!");
 
                LinkButton lbs = new LinkButton();
                lbs.ID = "btnConductAppointment";
                lbs.Text = "This is a linkbutton";
 
                container.Controls.Add(lbs);
            }
Milton
Top achievements
Rank 1
 answered on 07 Dec 2018
3 answers
363 views
I have a radalert that we are trying to load HTML content into server side.  For some reason if there are multiple paragraph tags it causes the javascript to error with "Invalid or unexpected token". It looks like it placed the 2nd paragraph on a new line.  Is there a workaround for something like this?

 

This is what is rendered when there are multiple paragraph tags and the error is thrown:

<script type='text/javascript' id='7221d910'>
                     function RadWindowManager1_radalert_7221d910()
                     {
                       $find('RadWindowManager1').radalert('<p><strong><span style="font-size: 24px;">This is the <span style="color: #c00000;">sold out</span> message </span></strong></p>
<p><strong><span style="font-size: 24px;">Just another paragraph</span></strong></p>', null, null, 'Sold Out', null, 'null');
                       Sys.Application.remove_load(RadWindowManager1_radalert_7221d910);
                       var scriptBlock = document.getElementById('7221d910');
                       if(scriptBlock)
                       {
                           var parent = scriptBlock.parentNode;
                           if(parent) parent.removeChild(scriptBlock);
                       }
                  };
                  Sys.Application.add_load(RadWindowManager1_radalert_7221d910);</script>

 

This throws the error:

<p><strong><span style="font-size: 24px;">This is the <span style="color: #c00000;">sold out</span> message </span></strong></p>  <p><strong><span style="font-size: 24px;">Just another paragraph</span></strong></p>

 

This works correctly:

<p><strong><span style="font-size: 24px;">This is the <span style="color: #c00000;">sold out</span> message </span></strong><strong><span style="font-size: 24px;">Just another paragraph</span></strong></p>
Vessy
Telerik team
 answered on 07 Dec 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?