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

I use a custom skin for my RadGrid (CustomSkinGrid) and when i launch my project with IE6, i see in the beginning of the load and during a short moment the base skin i use for build CustomSkinGrid (Hay, one of the telerik's skin). After this, when my mouse is on the grid, Hay skin appears sometimes, and can crash my application if i go too quickly !!

My custom is very simply, I have modified the .gif sprite, and i don't see any green now. But on IE6, i can see the same green of Hay skin !

I have no problem with IE7 or Firefox.

In fact, i think that Hay appears behind CustomRadSkin and i don't want this of course !

What are you thinking about this trouble and have you some solutions for me please ?? :)

B
Dimo
Telerik team
 answered on 01 Oct 2008
5 answers
109 views
I have a templated column that contains a Label control (for databinding purposes).  I can set the text of the label just fine but the font for this column does not match the standard databound columns of the grid.  How can I set these templated columns to have the same style as the databound column.

Thanks,
Randy
Top achievements
Rank 1
 answered on 01 Oct 2008
7 answers
672 views

I am using this control for Phone numbers and I need a way to strip out the bad characters when Users are copying/pasting from other applications. If the User tries to paste a phone number that
does not match, it screws up the text. Example:
User tries to paste: 480.123. 4567
Result is: (480) _12-3_45 

What I want to do is capture the event and remove, replace, etc.  the offending character(s) such that they can copy and paste some bad formats. Typical formats;
480.123.4567
480/ 123 4567
480/123-4567
480 123 4567
480-123-4567

How can I capture this event? I have read the documents online and experimented with several events but can’t get anything to work. Thank you for your help.

 Michael J. Boles

Steve Y
Top achievements
Rank 2
 answered on 01 Oct 2008
1 answer
167 views
Hi Telerik$0$0$0$0I am not able to get Rad Editor content when clicked on a button.Both the button and rad Editor are placed in a updatepanel.$0$0It is working in Internet Explore and Netscape. But not able to get the content in FireFox and Google Chrome.$0$0$0$0$0Why is it so?$0$0$0$0$0Regards,$0$0Chandan$0
Rumen
Telerik team
 answered on 01 Oct 2008
3 answers
91 views
Hi,

Can Rad Chart e able to chart graph from a non numeric data? For example i running 10 test but the results is in Pass or Fail. Let's say 9 pass and 1 fail. So could radchart be able to chart this? I'm having problem where it keep on showing error where the data is not numeric therefore it cannot chart. Please help.

Thanks,
Lendi
Giuseppe
Telerik team
 answered on 01 Oct 2008
1 answer
147 views
Hi,

I'm using a Raddatepicker.

I would like to prevent users to click on a lot of dates...

My idea would be to
1/ Disable all the date
2/ Enable somes date wich can be selected

Is it possible ? How ?

Thanks
Maria Ilieva
Telerik team
 answered on 01 Oct 2008
1 answer
108 views
I have combined the two examples. (Treeview in combobox AND Load on demand from code behind)

The problem is the reference to the treeview.
<telerik:RadComboBox ID="RadComboBoxSD" runat="server"
    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
    <ItemTemplate> 
        <div id="div1"
            <telerik:RadTreeView runat="server" ID="RadTreeViewSD"  > 
                <CollapseAnimation Duration="100" Type="OutQuint" /> 
                <ExpandAnimation Duration="100" /> 
            </telerik:RadTreeView> 
        </div> 
    </ItemTemplate> 
    <Items> 
        <telerik:RadComboBoxItem Text="" /> 
    </Items> 
</telerik:RadComboBox> 
 
 
 
    private void LoadRootNodes() 
    { 
        RadTreeView RadTreeViewSD = (RadTreeView)RadComboBoxSD.FindControl("RadTreeViewSD"); 
        SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["RemoteSqlServerData"].ConnectionString); 
        SqlCommand selectCommand = new SqlCommand("SELECT [id],[regionName] FROM tRegion ORDER BY regionName", connection); 
        SqlDataAdapter adapter = new SqlDataAdapter(selectCommand); 
        DataTable data = new DataTable(); 
        adapter.Fill(data); 
        foreach (DataRow row in data.Rows) 
        { 
            RadTreeNode node = new RadTreeNode(); 
            node.Text = row["regionName"].ToString(); 
            node.Value = row["id"].ToString(); 
            node.ExpandMode = TreeNodeExpandMode.ServerSide; 
            RadTreeViewSD.Nodes.Add(node); 
        } 
    } 

RadTreeView RadTreeViewSD = (RadTreeView)RadComboBoxSD.FindControl("RadTreeViewSD"); does not work.
RadTreeViewSD.Nodes.Add(node) - object is null

Please help, Ive search the site and found the client side way of doing this. How do you do this server side?


Guss
Top achievements
Rank 2
 answered on 01 Oct 2008
4 answers
203 views
Hi,

i'm having some trouble setting the styles to content iframe of radeditor. If i set it up like this:

<telerik:RadEditor ID="RadEditor1" runat="server" ToolbarMode="Default" Width="600px" Height="600px" EditModes="Design">
    <CssFiles>
        <telerik:EditorCssFile Value="~/Css/EditPageContentMiska.css" />
    </CssFiles>
    <Content>
    </Content>
</telerik:RadEditor>

everything works just fine (the defaults styles are imported from css file), while as to if i do it behind the code like:

RadEditor1.CssFiles.Add("~/Css/EditorPageContentMiska.css");

then the styles dont apply to my content area. I'm setting editor's css file on Page_Load event. Am i doing something wrong? (need this coz the style defaults will be changed based on login)

thanks in advance,
Žiga


*** edit

The behind code works just fine - i had some trouble with cached css i guess. But the problem is still described in my 2nd post (only css defaults for body element are applyed)

Ziga HABJAN
Top achievements
Rank 1
 answered on 01 Oct 2008
2 answers
220 views

Hopefully this inqury is a quick one although I have 2 issues.

I just migrated to the ajax asp treeview.


1.



I want a tree inside a combo box type of functionality. Following a sample I found on this site, my original setup looked like this:

<

asp:TextBox ID="txtSelection" ReadOnly="true" runat="server"></asp:TextBox>
<asp:Image runat="server" ID="imgBoxArrow" ImageUrl="~/Images/boxArrow.gif" onclick="ToggleTreeView()" />
<asp:RequiredFieldValidator ID="required" runat="server"Text = "*" Visible= "true" ControlToValidate="txtSelection" Display="Dynamic" />
<div id="tvDiv" class="treeDiv">
<asp:UpdatePanel ID="UpdatePanelTreeView" runat="server">
<ContentTemplate>
<radT:RadTreeView ID="tv" runat="server" Height="200px" Width="100%" EnableViewState="true"RetainScrollPosition="true" RadControlsDir="/RadControls/" SkinsPath="/RadControls/Treeview/Skins"AutoPostBack="False" OnNodeExpand="tv_OnNodeExpand" BeforeClientClick="BeforeClientNodeClick"AfterClientClick="AfterClientNodeClick" />
</ContentTemplate>
</asp:UpdatePanel>
</div>

You Click on the arrow image and it fires a java script function to show the div that contains the tree view.

This is probably rather old school since I should be able to use the item template of a rad combo.

I have an example that I'm trying to follow here
http://demos.telerik.com/aspnet/prometheus/TreeView/Examples/Functionality/TreeViewComboBox/DefaultCS.aspx

Seems simple enough but if the tree view is in the item template of the combo box, how can I get a reference to the tree view server side?


2.



Also... Pretend that the rad tree view in that above sample is the ajax asp tree. When I expand the node on the ajax asp tree view, the validators on my page all fire and if not all satisfied then the expand will not complete. This was not happening with the classic tree. Any thoughts? It's triggering a full post back whereas the classic one did not?

I thought I might be able to leverage the before and after clicks: disable the validators before click. As it stands, however, the post back will occur after the after node click fires client side at which point I should be turning the validators back on in case they need to block the postback...


Regards.

towpse
Top achievements
Rank 2
 answered on 01 Oct 2008
1 answer
179 views

We are using rad ajax panels in our system, and we are getting viewstate erros linked to the members clicking the back button in there browser.

Typical example.

  1. Member views page, and because they are not logged in, just see the login control.
  2. member logs in, and uses site
  3. member click back in browser, but browser has cached page, so they see the login box again
  4. member tries to login again, and gets viewstate error

Failed to load viewstate.  The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.  For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.

This doesnt happen,  when we dont use ajax. the member obviously see the login box again, but it doesnt error if they login.

what can we do to stop these viewstate errors while using ajax?

Iana Tsolova
Telerik team
 answered on 01 Oct 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?