Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
81 views
Hi!!

I install mono for window on my pc, but now I'd like to test Radcontrols on this enviroment but I dont find any trial to do that, where can I find a trial to work with mono and Telerik controls? Because I have to be sure I this scenario works for my. And I apreciate if anyone like to give more information or a reference manual. I'm sorry, I'm new.

Thanks in advance.
Nenita.
Daniel
Telerik team
 answered on 21 Apr 2009
1 answer
175 views
Hello,

I have a grid with NestedViewTemplate and even though the parent MasterTableViews HierarchyLoadMode is set to "ServerOnDemand", it behaves like if it was "ServerSide".

For the following (simplified) code:

<

 

MasterTableView autogeneratecolumns="False" datakeynames="IdCustomer"

 

 

datasourceid="ObjectDataSource1" HierarchyLoadMode="ServerOnDemand">

 

 

 

<NestedViewTemplate>

 

 

<fieldset style="padding:10px;">

 

 

<legend style="padding:5px;"><b>Details:</b>

 

 

</legend>

 

 

 

<asp:HiddenField ID="ctl_hiddenId" runat="server" Value='<%# Eval("IdCustomer") %>' />

 

 

 

 

 

<asp:ObjectDataSource

 

 

ID="ctl_DetailObjectDataSource" runat="server" SelectMethod="GetDetail"

 

 

TypeName="DataModel.DetailDataSource">

 

 

<SelectParameters>

 

 

<asp:ControlParameter ControlID="ctl_hiddenId" DefaultValue="" Name="IdCustomer"

 

 

PropertyName="Value" Type="String" />

 

 

</SelectParameters>

 

 

</asp:ObjectDataSource>

 

 

 

<table style="width: 100%;">

 

 

<tr>

 

 

<td>

 

//something here

 

</td>

 

 

<td>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td colspan="2">

 

 

<asp:ListView ID="ctl_photoListView" runat="server" DataSourceID="ctl_DetailsObjectDataSource">

 

 

<LayoutTemplate>

 

 

<ul class="ThumbnailsList">

 

 

<asp:PlaceHolder ID="itemPlaceholder" runat="server"></asp:PlaceHolder>

 

 

</ul>

 

 

</LayoutTemplate>

 

 

 

<ItemTemplate>

 

 

<li>

 

 

 

//something here

 

 

</li>

 

 

</ItemTemplate>

 

 

</asp:ListView>

 

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td colspan="2">

 

//

 

</td>

 

 

</tr>

 

 

</table>

 

 

</fieldset>

 

 

</NestedViewTemplate>
//columns

 

</

 

MasterTableView>


It calls the GetDetail method for each row on the initial loading of whole grid (the method is called two times for each row in grid - could it be somehow set to be colled just once), and then on expanding nested template there is no more calling of this metode of the object data source.
 I need to call selecting method of my object data source only when expanding nested template - is there something else that I need to set?

Thank you
Jan

 

Pavlina
Telerik team
 answered on 21 Apr 2009
1 answer
99 views
Hi All

I have a grid with some datas

I have the validation in the edit mode for not entering the special characters.

Its works properly but while closing the form some javascript error appears.

My Code:

<

telerik:GridTemplateColumn AllowFiltering="true" DataField="PseudoName" HeaderStyle-Width ="150px"

 

 

HeaderText="Pseudo Name" UniqueName="PseudoName" SortExpression="PseudoName">

 

 

<ItemTemplate>

 

 

<asp:Label runat="server" ID="lblpsdoName" Text='<%# Eval("PseudoName") %>' />

 

 

</ItemTemplate>

 

 

<EditItemTemplate>

 

 

<asp:TextBox runat="server" MaxLength="100" Style="width: 205px; margin-left: 3px;"

 

 

ID="txpsdoName" Text='<%# Bind("PseudoName") %>' />

 

 

<asp:RequiredFieldValidator ID="Requiredfieldvalidator2" runat="server" ControlToValidate="txpsdoName"

 

 

ErrorMessage="Enter Pseudo Name!" Display="Dynamic" SetFocusOnError="true">

 

 

</asp:RequiredFieldValidator>

 

 

<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txpsdoName"

 

 

ValidationExpression="^[a-zA-Z][a-zA-Z \\s]+$" ErrorMessage="Enter Only Alphabets"></asp:RegularExpressionValidator>

 

 

</EditItemTemplate>

 

 

</telerik:GridTemplateColumn>

Advance Thanks

-Anto

 

Pavlina
Telerik team
 answered on 21 Apr 2009
2 answers
90 views
Hi,
i've a page that contains a RadUpload control and some other controls that are contained in an UpdatePanel. I underline that RadUpload IS NOT inside the UpdatePanel.

Now i select the file to be uploaded, then I do an async postback changing on of the controls in the UpdatePanel. RadUpload correctly doesn't loose selected file and upload doesn't automatically start.
Than I click on a submit button (outside UpdatePanel) to do a normal Postback. Upload is correctly performed BUT... progress area doesn't appear.

Is that normal? Is there some kind of workaround?

Thanks,
Marco
Marco
Top achievements
Rank 1
 answered on 21 Apr 2009
1 answer
93 views
Pretty simple question and I'm sure there's a good solution for this: I want to keep my UI very consistent.  I'm going to have lots of pages that make use of the RadGrid control.  What I want to avoid is having to re-create the default properties, i.e - setting page size, allow sorting, skin, etc, etc.

I'm guessing I would create some kind of wrapper for the Grid control and set its default values there.  Then instead of using <telerik:RadGrid... I can use <customtelerik:RadGrid... that uses my default settings.  Of course, I would want the ability to override those in the specific pages if I have to.

Any ideas?
Bruno
Top achievements
Rank 2
 answered on 21 Apr 2009
2 answers
186 views
Hi there,

I am experiencing a problem with the RadEditor for ASP.Net AJAX. When I'm trying to paste content into my Radeditor on my page, IE7 causes 100% cpu usage and hangs. I have to use CTRL+ALT+DELETE to shut down IE. This is on my development machine. I use the standard RadEditor, all tools enabled. This problem occurs only in IE7, and not in other browsers. I do not get any errormessage's or whatsoever. The version I'm using is Q1 2009 (which I just downloaded, and I upgraded from Q3 2008, which had the same problem).

So I'm wondering what I should do to resolve this?
This is the code in my .ascx webcontrol:

<telerik:RadEditor id="rteTekst" Width="640px" Height="300px" Runat="server" DialogHandlerUrl="~/Telerik.Web.UI.DialogHandler.axd"></telerik:RadEditor>

Regards,
Thomas Schepers
Rumen
Telerik team
 answered on 21 Apr 2009
4 answers
491 views

This is a problem using the javascript functions of the asp.net validators on the client with the rad editor.

I did not have problems when I was using the validators on a page but when i want to do validation on the client using the client side javascript function of the asp.net validators I get this error:

the validator always is triggered and fails the validation even thought there is some text in the editor. But if I put an <img></img> tag then it passes the validation:

for example this does not validate:

iuyuy<br />
qqwwq<br />
<br />
<span style="color: #ff0000">qwwqe</span><br />

but this does validate:

iuyuy<br />
qqwwq<br />
<br />
<span style="color: #ff0000">qwwqe</span><br /><img></img>

this small example reproduces the problem:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default43.aspx.vb" Inherits="Default43" %>

 

 

 

<%

@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

 

 

 

 

 

<!

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

 

 

<

html xmlns="http://www.w3.org/1999/xhtml">

 

 

 

<

head runat="server">

 

 

 

 

 

 

<title></title>

 

</

head>

 

 

 

<

body>

 

 

 

 

 

 

<form id="form1" runat="server">

 

 

 

 

<asp:ScriptManager ID="ScriptManager1" runat="server">

 

 

 

 

</asp:ScriptManager>

 

 

 

 

<div>

 

 

 

 

<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>

 

 

 

 

<asp:RequiredFieldValidator ControlToValidate="TextBox1" ID="RequiredFieldValidator2" runat="server"

 

 

 

 

ErrorMessage="RequiredFieldValidator" Display="Dynamic"></asp:RequiredFieldValidator>

 

 

 

 

 

 

<telerik:RadEditor ID="RadEditor1" Runat="server">

 

 

 

 

<Tools>

 

 

 

 

<telerik:EditorToolGroup>

 

 

 

 

<telerik:EditorTool Name="AddImageBut" ShowIcon="true" />

 

 

 

 

<telerik:EditorTool Name="AddVideoBut" ShowIcon="true" />

 

 

 

 

</telerik:EditorToolGroup>

 

 

 

 

<telerik:EditorToolGroup>

 

 

 

 

<telerik:EditorTool Name="Bold" />

 

 

 

 

<telerik:EditorTool Name="JustifyCenter" />

 

 

 

 

<telerik:EditorTool Name="Italic" />

 

 

 

 

<telerik:EditorTool Name="Underline" />

 

 

 

 

<telerik:EditorSeparator />

 

 

 

 

<telerik:EditorTool Name="ForeColor" />

 

 

 

 

<telerik:EditorTool Name="BackColor" />

 

 

 

 

<telerik:EditorSeparator />

 

 

 

 

</telerik:EditorToolGroup>

 

 

 

 

</Tools>

 

 

 

 

<Content></Content>

 

 

 

 

</telerik:RadEditor>

 

 

 

 

 

</div>

 

 

 

 

<asp:Button OnClientClick="ValidateMe();return false;" ID="Button1" runat="server" Text="Button" />

 

 

 

 

<asp:RequiredFieldValidator ControlToValidate="RadEditor1" ID="RequiredFieldValidator1" runat="server"

 

 

 

 

ErrorMessage="RequiredFieldValidator" Display="Dynamic"></asp:RequiredFieldValidator>

 

 

 

 

</form>

 

</

body>

 

 

 

</

html>

 

 

 

<

script type="text/javascript" language="javascript">

 

 

 

 

 

 

var val = '<%= RequiredFieldValidator1.ClientID %>';

 

 

 

 

var val2 = '<%= RequiredFieldValidator2.ClientID %>';

 

 

 

 

var edi = '<%= RadEditor1.ClientID %>';

 

 

 

 

function ValidateMe() {

 

ValidatorValidate($get(val));

ValidatorValidate($get(val2));

 

 

 

if ($get(val).isvalid && $get(val2).isvalid) {

 

alert(

 

 

'valid');

 

}

 

 

else {

 

alert(

 

 

'not valid');

 

}

}

 

 

</

script>

 

 

 

Rumen
Telerik team
 answered on 21 Apr 2009
1 answer
63 views
I have created a grid using GroupByExpressions.
I have set the  GroupHeaderItemStyle  font-size to medium.

 <GroupHeaderItemStyle Font-Size=Medium />

The grid contains a template colmun having asp dropdownlist with autopostbask=true. when the dropdownlist value is changed i am rebindingg the grid using RadAjax.

The problem is that when the grid is rebinded using RadAjax the GroupHeaderItemStyle font-size=medium property not works.

If i rebind the grid without using the RadAjax it works properly.

Thanks.
Iana Tsolova
Telerik team
 answered on 21 Apr 2009
1 answer
67 views
Hi,

   I have used multiselect items in combobox as shown in Q1 2009(ComboBox -> Functionality -> Templates). In that i have seen as:

<ItemTemplate>
                            <divonclick="StopPropagation(event)" class="combo-item-template">

  When i use this in my project which is currently using Q3 2008, giving a message called "css class not found". I think this class is only included in 2009. Can i use this in 2008 by adding any references in my project? If it can be used please tell how to add references.


Thanks,
Josh.
Helen
Telerik team
 answered on 21 Apr 2009
1 answer
128 views
Hi there,

I can see in the RadRotator For ASP.NET AJAX's Multiple Rotators sample (URL : http://demos.telerik.com/aspnet-ajax/rotator/examples/multiplescroller/defaultcs.aspx) two differences with the RadRotator For ASP.NET's sample (URL : http://demos.telerik.com/aspnet/rotator/examples/functionality/MultipleScroller/DefaultCS.aspx).

 

  • First, in the way the scroll is performed. With RadRotator For ASP.NET, scroll does not stop. I would like to reproduce this behavior with the RadRotator For ASP.NET AJAX, is it possible? If not, why?
  • An other difference with the font anti-aliasing under IE7. There is a thread about it and I saw that we can "fix it" by changing the CSS bakground color. But after this change, font is not really smooth as it is under FF for example. I guess that opacity filter used in the fade out FX is the key. It would be great that Telerik developers reconsider this issue. In enterprise environment, where IE is really present, it is a pity to see such a regression!

Thanks.

Best regards,

Damien

Fiko
Telerik team
 answered on 21 Apr 2009
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?