Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
222 views
Hi to all,
I validated my XHTML Transitional page using W3C online validator and following error comming from RadButton was obtained
Line 192, Column 289: there is no attribute "align" 
…><span class="rbText rbPrimary" align="center">Obsah spravodajcu []</span><inp…✉ 
You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using ....

My Radbutton is defined in markup:
<td style="width:190px;white-space:nowrap;text-align:right">
   <telerik:RadButton ID="btnDoc" runat="server" ButtonType="LinkButton" Width="190px"
        Text='<%# "Obsah spravodajcu [" + Utils.GetFileLengthFriendly(Server.MapPath("~/Documents/" +  Eval   ("Document"))) + "]" %>' NavigateUrl='<%# "~/Documents/" +  Eval("Document")%>' Target="_blank" Visible='<%# Eval("Document") != null %>' CausesValidation="false" CssClass="unwrapped">
        <Icon PrimaryIconUrl="~/Styles/icon_pdf.png" />
    </telerik:RadButton>    
 </td>

I can not find the reason why not allowed attribute align="center" is rendered for relevant span tag.
Any idea?
Thanks
-Marian
Marian
Top achievements
Rank 1
 answered on 14 Sep 2011
3 answers
367 views
Hello,

All my RadGrid Columns are dynamic i have to create columns based on current a page state. I ll come to know the columns to be created only on a selection of a dropdownlist in the same page.
Please let me know the right RadGrid event to create a dynamic columns in the RadGrid.

Appreciate you quick response.

Thanks
Prabhu
Petrofac
Top achievements
Rank 1
 answered on 14 Sep 2011
1 answer
170 views
dear sir,
we need single button clcik we can upload the file and save to particular folder (without file upload control).
pls help me.
Regards
padmanaban.
Prangadj
Top achievements
Rank 1
 answered on 14 Sep 2011
1 answer
136 views
I create an Appointment template dynamically and I want to create a Hyperlink as subject. The problem that I have is that I need to use a value of the Datatable that is datasource of the RadScheduler. See definition of the DataTable.  IN the AppointmentDataBound I know I can use the DataRowVIew to get the values of the DataItem but in the Appointment Template does not work. How can I get the values of the DataItem in the appointment Template? See the appointment template below.


 

 

protected void RadScheduler_AppointmentDataBound(object sender, SchedulerEventArgs e)

 

{

 

 

if (e.Appointment.DataItem != null)

 

{

 

 

int argb = Int32.Parse(((System.Data.DataRowView)(e.Appointment.DataItem)).Row.ItemArray[11].ToString().Replace("#", ""), NumberStyles.HexNumber);

 

e.Appointment.BackColor =

 

Color.FromArgb(argb);

 

}

 

}


/*****DataTable definition*****/

DataTable

 

 

dtAppointments = new DataTable("Appointments");

 

dtAppointments.Columns.Add(

 

"ItemID", typeof(string));

 

dtAppointments.Columns.Add(

 

"Title", typeof(string));

 

dtAppointments.Columns.Add(

 

"CalendarType", typeof(string));

 

dtAppointments.Columns.Add(

 

"StartDate", typeof(DateTime));

 

dtAppointments.Columns.Add(

 

"EndDate", typeof(DateTime));

 

dtAppointments.Columns.Add(

 

"hasEndDate", typeof(bool));

 

dtAppointments.Columns.Add(

 

"Description", typeof(string));

 

dtAppointments.Columns.Add(

 

"Location", typeof(string));

 

dtAppointments.Columns.Add(

 

"RecurrenceRule", typeof(string));

 

dtAppointments.Columns.Add(

 

"RecurrenceParentID", typeof(Int64));

 

dtAppointments.Columns.Add(

 

"IsRecurrence", typeof(bool));

 

dtAppointments.Columns.Add(

 

"Color", typeof(string));

 

dtAppointments.Columns.Add(

 

"NavigationUrl",typeof(string));

/******* AppointTemplate Class.I took this from the forum*****/

 

 

 

public class AppTemplate : ITemplate

 

 

 

 

 

{

 

 

public void InstantiateIn(Control container)

 

{

 

 

Literal subject = new Literal();

 

subject.DataBinding += subject_DataBinding;

container.Controls.Add(subject);

}

 

 

private void subject_DataBinding(object sender, EventArgs e)

 

{

 

 

Literal subject = (Literal)sender;

 

 

 

IDataItemContainer aptContainer = (IDataItemContainer)subject.BindingContainer;

 

 

 

 

 

int argb = Int32.Parse(((System.Data.DataRowView)(aptContainer.DataItem)).Row.ItemArray[11].ToString().Replace("#", ""), NumberStyles.HexNumber);

 

 

 

int lId = Convert.ToInt32(DataBinder.Eval(aptContainer.DataItem, "ID"));

 

 

 

string strSubject = HttpUtility.HtmlEncode((string)DataBinder.Eval(aptContainer.DataItem, "Subject"));

 

 

 

SPWeb oWeb = null;

 

oWeb =

 

SPContext.Current.Web;

 

 

 

String requestListName = "TravelCalendarList";

 

 

 

SPListItem itm = oWeb.Lists[requestListName].GetItemById(Convert.ToInt32(lId));

 

 

 

if (itm != null)

 

{

 

 

if (null != itm["RequestId"])

 

{

subject.Text =

 

"<a href=\"" + oWeb.Url + "/default.aspx?ListId=" + lId + "\">" + strSubject + "</a>";

 

}

 

 

else

 

 

 

 

 

{

subject.Text = strSubject;

}

}

}

}

}

Peter
Telerik team
 answered on 14 Sep 2011
1 answer
75 views
Hello,

in our current development, we make heavy use of fixed size buttons, decorated in Vista style.

the issue we have is that, when testing in IE9, the button is not rendered correctly, looks like a space appears between the rounded part of the button on the right and the rest of the button

I do not have a screenshot at hand, but is this issue already identified ? Is there a workaround out of getting rid of fixed sized buttons ?

Best regards

Philippe
Bozhidar
Telerik team
 answered on 14 Sep 2011
3 answers
342 views
Under ASP.NET 4.0,  when using System.Web.Routing  (URL Routing)  with telerik controls on the rendered page.  I am encountering ASP.NET Ajax client-side framework failed to load.

<

 

 

script src="/ThriventPromoRad40/WebResource.axd?d=kuV-9BW9vUE9mrfKFZ3iarEeZ53VRoFdPvU6l_eVkRJWggZVCdkkPTfmCxIghLXyMbupWxfy9hdfoXjjTxbduMDzGQNVIEKoR1dpIpiTxB81&amp;t=634226478236080422" type="text/javascript"></script>

 

<

 

 

script src="/ThriventPromoRad40/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&amp;compress=1&amp;_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a1f68db6e-ab92-4c56-8744-13e09bf43565%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-US%3aaa801ad7-53c4-4f5c-9fd3-11d99e4b92f4%3a16e4e7cd%3aed16cbdc%3a7165f74" type="text/javascript"></script>

 

<

 

 

script type="text/javascript">

 

//<![CDATA[

if

 

 

(typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client-side framework failed to load.');

 


 
If I remove the routing options or if I replace the Telerik controls with generic ASP.NET controls.  (IE: Radbutton with ImageButton).  The page functions correctly. 

Any suggestions?

Brete


Erik
Top achievements
Rank 2
 answered on 14 Sep 2011
3 answers
133 views
Having another issue with the RadSplitter, in that if you had a minimum size, or the header is smaller than a certain size... then when trying to reduce it past this size.. we get a transparent splitter.. as you can see in the following video (from the telerik demo) (this was tested in IE7, 8 and 9.. the video shows IE9)

http://www.youtube.com/watch?v=8pUvnGGpTOA

Niko
Telerik team
 answered on 14 Sep 2011
3 answers
130 views

Is there any way to put image in right side of the toolbar , while RadButtons are in left order?

I have a lot of space in my toolbar and I need to use it for Logo.

The best is if I can have some of RadButtons in right order

 

Kate
Telerik team
 answered on 14 Sep 2011
3 answers
133 views
Hi,

I'm currently working on a website that needs a 'price' slider from £100 to £100,000, with two pickers.

Most customers will slide values between £100 - £4,000 with perhaps 5% or less looking in a range up to £100,000

Other than writing custom multipliers when the slider reaches certain points, is there any built-in property of the rad slider which allows you to have 50% of the physical slider represent half the range (e.g. £100 to £4,000) and then the remaining 50% to represent the final half (e.g. £4,100 - £100,000)?

This would be useful for people who want to dynamically represent min and max values in their databases too, especially if they have a few records with exceptionally high or low values.

Cheers!
Niko
Telerik team
 answered on 14 Sep 2011
1 answer
80 views
Hi,
            I am using Radscheduler to show appointments, but here the problem is when ever i am trying to decrease the Radscheduler size by giving Daystart and Dayend time, the calender popup is going beyond to scheduler, i am attaching the screen shot with this thread, the problem which i am facing. Please look into that and help me out as early as possible, its very urgent requirement.
Peter
Telerik team
 answered on 14 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?