Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
212 views
(I was surprised that "custom" and "attributes" returned nothing in the search!)

I'm following the "Custom resources and attributes" section of the RadScheduler tree
(http://www.telerik.com/help/aspnet-ajax/schedule_designcustomresourcesandattributes.html)

and am trying to add an attribute.

There's a seemingly throw-away line at the bottom that says "If you enable custom attribute editing, be sure that your insert and update statements accept a parameter with the name of the custom attribute."

Since I'm using a custom "MyDbScheduleProvider" to do all the work, can someone post an example of how I would alter the GetAppointments, Insert, and Update functions to accomidate the new attribute?

Thanks!

Peter
Telerik team
 answered on 06 Apr 2010
2 answers
203 views
Hi,
        I am using radalert in javascript as below.

radalert("Saved Successfully.", 400, 150,

"Title");

 

window.location.href =

"Common.aspx";

Here the problem is before i click on OK button shown in Radalert, it is getting redirected to Common.aspx.
How to avoid this? I want to remain in the same page till i click on OK.

Note: This doesnt happen in default alert.

Thank You.

 

Swapna M
Top achievements
Rank 1
 answered on 06 Apr 2010
1 answer
190 views
Hi,

I have users pasting content into a radEditor in a content management system. Unfortunately the tools they are pasting from have some funny ideas about what constitutes valid HTML.

In one case, the user pasted this:

<ul> 
        <li> 
            <div style="text-align: left;"> 
                BLAH BLAH BLAH BLAH<span style="font-family: arial; font-size: 10px;">6 
                    <div> 
                    </div> 
                    <li> 
                        <div style="text-align: left;"> 
                        </div> 
                    </li> 
                </span> 
            </div> 
        </li> 
    </ul> 

You will notice that there is an <li> tag inside a <span> inside another <li> tag.

<understatement> This caused a problem. </understatement>

After this content had been saved to the database, the UpdatePanel where it was displayed could no longer successfully execute postbacks. Attempts to save the object hosting this content via a button in the panel consistently threw a JSON serialization error (Invalid JSON Primitive: .) From what I can gather, the updatePanel tried to package this invalid content up as part of its AJAX request, and the deserializer on the server blew up when presented with it. After removing the offending markup (extra <li>) in the database, the panel returned to normal operation and save attempts succeeded.

So, my question is, how can I validate user-pasted garbage to ensure that the JSON deserializer will be able to handle it? Is there an option on the editor or a recommended approach? And, when encountering invalid pasted content, is there a way to strip the offending markup?

Thanks in advance,

Jordan


Dobromir
Telerik team
 answered on 06 Apr 2010
1 answer
168 views
I use a radotator with a DataSet DataSource. The dataset contains a table with 3 columns.

I can detect the current item using the get_currentItem() method. How do i get the value of a DataItem Column ClientSide?
Fiko
Telerik team
 answered on 06 Apr 2010
6 answers
169 views
Hello,

I am using the RAD Editor to post articles. We would like the HTML formatting to be retained. But when we save it to the database the HTML tags are converted to blocks

e.g. <BR /> is converted to [BR/] which causes the formatting to be completely lost.

Can anyone please assist?

Thanks
Bala
Rumen
Telerik team
 answered on 06 Apr 2010
7 answers
227 views
Hi,
I'm using RadGrid. I implement paging and sorting on the grid but the header text is missing after i click the header text for the sorting.
Paging is working fine.

<telerik:RadGrid ID="RadGrid" runat="server" AllowPaging="True" AllowSorting = "True" PageSize="10" AutoGenerateColumns="false" GridLines="None" OnNeedDataSource="RadGrid_NeedDataSource"> 
   <PagerStyle Visible="True" /> 
   <MasterTableView TableLayout="Fixed" AllowMultiColumnSorting="true" > 
   </MasterTableView> 
   <SortingSettings SortedBackColor="Azure" EnableSkinSortStyles="false" /> 
   <ClientSettings> 
      <Selecting AllowRowSelect="true" /> 
   </ClientSettings> 
</telerik:RadGrid> 

Is there something i missing here?
Pavlina
Telerik team
 answered on 06 Apr 2010
3 answers
163 views
Hi.

We are developing a grid to use it as data support for a customizable report. The data can be grouped by several columns (one or more), or cannot be grouped. Another possibility is to freeze some columns depends of the data.

Well, suppose we want to group the data by some columns, to make it easy, only one column. If I don't freeze any columns, in the GridGroupHeaderItem I see, in the appropiate cell, the grouped data criteria as {field_name}: {value} (it's possible to make only appears {value}?). But if i freeze some columns, it doesn't matter the number of frozen columns, at the same cell it don't appear any data. Why this change of behaviour? It's possible to see this data using frozen columns?

Thanks in advance.

Jesús
Pavlina
Telerik team
 answered on 06 Apr 2010
1 answer
105 views
I have an issue thats weird to me. I have deployed my application to my server's IIS. When I access it internally e.g. http://myserver/app then it works like it should.
However, when I access from our external address e.g. http://myapp.mycompany.com/, I get Sys is undefined errors and none of the AJAX works.
Has anyone seen this before. Really really stuck on this! Thanks!
Shinu
Top achievements
Rank 2
 answered on 06 Apr 2010
3 answers
145 views
Hi

Is it possible, that ServerSideCallBack dose not work when the Treeview is in a RadSplitter?

Regards Markus
macy
Top achievements
Rank 1
 answered on 06 Apr 2010
1 answer
169 views
hi all,

    can i place a validation summary inside the editmode popup. if not, tell me how to keep two different user controls one for insert mode and 1 for edit mode.

Regards
Saravanan K
Yavor
Telerik team
 answered on 06 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?