Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
104 views
Hi

I have trubble getting Telerik webcontrols to validate.

This line: 

<

 

TelerikWebControls:RadWindowManager ID="RadWindowManager1" runat="server" VisibleStatusbar="false"/>
generates this error:

 

document type does not allow element "title" here

… class="Telerik_stylesheet" /><title>
So there is a title tag added after the Telerik link, why?







The next error comes from this line:
<a id="OKbtn_{0}" onclick="$find('{0}').callBack(this.parentNode.parentNode.getElementsByTagName('input')[0].value);"    
     class="radwindowbutton" href="javascript:void(0);" >
The error is this:

character "{" is not allowed in the value of attribute "id"

				<a id="OKbtn_{0}" onclick="$find('{0}').callBack(this.parentNode.parentNode.

How can I solve these two errors?


Thanks!





Cecilia
Top achievements
Rank 1
 answered on 28 Sep 2009
12 answers
292 views
Hi,
I'm having a similar issue as the one reported here- http://www.telerik.com/community/forums/aspnet-ajax/grid/pdf-exporting-error.aspx

Essentially you get this exception when using the method-
System.Xml.XmlException: The '*' character, hexadecimal value 0x2A, cannot be included in a name.

I did some debugging and found this in the markup:
<span id="RadGrid1_ctl00_ctl03_ctl01_ChangePageSizeLabel" class="rgPagerLabel">Page size:</span> 
<div id="RadGrid1_ctl00_ctl03_ctl01_PageSizeComboBox" class="RadComboBox RadComboBox_Default " style="width:46px;display:-moz-inline-stack;display:inline-block;zoom:1;*display:inline;margin-left:-1px;margin-right:-1px;white-space:normal;">  

The offending character comes after the 'zoom:1' style on the RadComboBox generated for the grids page size selector (it says 'zoom:1;*display:inline;'  notice the *).

Is this a bug in the RadComboBox or RadGrid or is there some way to remove this style?
Udaya Kumar
Top achievements
Rank 2
 answered on 28 Sep 2009
6 answers
348 views
Hi there,

I'm loading my Radgrid programmatically:

        if (!IsPostBack)
        {

        var gridDS = from statements in db.tblEstatementDetails
                     where statements.EpageStatementId == Convert.ToInt64(cardType)
                     join card in db.tblEpageStatements on statements.EpageStatementId equals card.EpageStatementId
                     select new
                     {
                         statements.EstatementDetailId,
                         card.CardName,
                     };


        RadGrid1.DataSource = gridDS;
        RadGrid1.AllowPaging = true;
        RadGrid1.DataBind();

}

Umm but when the records exceed 10 then the pagination options are available which is great. However when I click next, or previous or even try to expand my record list from '10' to say '20' then the grid just empties as if the Radgrid is not databound any more.

wdudek
Top achievements
Rank 1
 answered on 28 Sep 2009
1 answer
165 views
Hello everybody !

i've got a RadGrid with paging enabled and 1600+ rows.
and i wanted to optimize it's performance by querying data only for items which are currently shown, so i made NeedDatasource event  look like this :

        protected void RadGrid1_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {
            int currentPageIndex = RadGrid1.MasterTableView.CurrentPageIndex;
            int itemsToTake = RadGrid1.PageSize;
            int offset = currentPageIndex * itemsToTake;
            var ds = GetGridDataSource(itemsToTake, offset);
            RadGrid1.DataSource = ds;
        }
it worked, but the pager now dissapeared, i tryed to set VirtualItemCount property to 1600, but nothing happened.

are there any possibility to set Pager pages count ? or maybe there exists better solution to optimize performance ?

Thank You !
Pavlina
Telerik team
 answered on 28 Sep 2009
1 answer
100 views
This problem only presents itself in ie6. Not Firefox or IE7 or 8. (not concerned with mac)
When I mouse over a top level menu item and the .slide .vertical.group.level1 slides down, the panel bar which is in a template slides down, and all underlying "select" inputs are properly hidden. If I then expand a panelbar item (within the template), the slide height increases and all "select" form inputs show thru any additional height on the slid out menu. If i mouse off the top level menu item and mouse back over it, at that point, the panel bar remembers that it is open, still has the greater height, but the select items on the underlying page do NOT show thru the additional height.

Is there a quick fix to this?

If this is unclear, I can create a simplified version of my page and supply the source (but am trying to save some time).
Thank you ahead of time,
Erik
Paul
Telerik team
 answered on 28 Sep 2009
3 answers
142 views

 

Hello i need to convert from GridView to RadGrid, can anyone give me some suggestions on how to do this with RadGrid please?
IE, i basically would like to just loop thru each Grid Row and each Grid Column and if find that the Row.Cell approach is very intuitive, is there such an intuitive approach with the RadGrid?

Thanks very much for any pointers!

protected
void dgColumns_RowDataBound(object sender, GridViewRowEventArgs e)

 

{

 

try

 

{

 

if (e.Row.RowType == DataControlRowType.DataRow)

 

{

 

SelectedColumn col = AllSelCols[e.Row.RowIndex];

 

(e.Row.Cells[2].FindControl(

"txtAlias") as System.Web.UI.WebControls.TextBox).Text = col.Alias;

 

(e.Row.Cells[3].FindControl(

"chkOutput") as CheckBox).Checked = col.Output;

 

 

if (col.SortType != string.Empty)

 

{

(e.Row.Cells[4].FindControl(

"ddlSortType") as DropDownList).Items.FindByText(col.SortType).Selected = true;

 

}

(e.Row.Cells[5].FindControl(

"txtSortOrder") as System.Web.UI.WebControls.TextBox).Text = col.SortOrder;

 

}

}

 

catch (Exception ex)

 

{

lblErrorScriptManager.Visible =

true;

 

lblErrorScriptManager.Text = ex.Message;

}

}

Bob
Top achievements
Rank 1
 answered on 28 Sep 2009
1 answer
139 views
Would it be possible to enhance the Binaryimage so you could save only the filename in the SQLDB and read the image from disc?
It would benefit a lot for liveresize and so on....
Sebastian
Telerik team
 answered on 28 Sep 2009
3 answers
357 views
I have a masked text box for a phone number (###) ###-####.

But when the user clicks on the box it select whereever they clicked.  Is there a way to make it act like a text box and go ot the far left place?
Dimo
Telerik team
 answered on 28 Sep 2009
3 answers
490 views
I don't know where else to ask this, but I figured this was as good a forum as any other.

I am making a number of web user controls and each control has a property for which skin should be applied to all of the Telerik RAD AJAX controls in my web user control. Right now there are at least 15 Telerik skinnable controls on the page.

What I want to do is to write a piece of code suchly:

If (CustomSkinName <> "") Then
For Each Control In Page.Controls
If ([[Control is a Telerik Skinnable Control]]) Then
Control.EnableEmbeddedSkins = False
Control.Skin = CustomSkinName
End If
Next Control
End If

First question is: How do I determine "Control is a Telerik Skinnable Control"? 

Secondly, it would appear that Grids and Charts don't share any common ancestor that has the skinning properties. What would the proper ancestor class be? Is there a better way? Reflection?
Dimo
Telerik team
 answered on 28 Sep 2009
1 answer
233 views
Hi there,

We are using the RadCalendar, Version: 2008.2 1001 and have managed to set a dynamic date range where the inactive days are faded and the active days bolded. 

There is the class...

.outOfRange_Telerik span

which sets the inactive days to a certain colour. And.....

.TableLayout_Telerik a,
.TableLayout_Telerik span


Which sets the active days in the range to a another colour.

Now in the active date range only some of the days are actually active where the user can physically click on the days but we are not sure whether or not we can set these days to a specific colour in the css as well. Can this be done?

Many thanks,

Patrick
Dimo
Telerik team
 answered on 28 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?