Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
290 views
I have a tree that is 7-8 levels deep.  I decided that node levels 0,1,2,3 need to have thier expand/collapse ability disabled and I did it like this:
foreach (RadTreeNode node in radtree.GetAllNodes())  
{  
    int intTest = node.Level;  
    node.Expanded = true;  
    if(intTest <= 3)  
    {  
        node.Enabled = false;  
        node.ForeColor = System.Drawing.Color.Black;  
    }  
 

What I want to know, what property on RadTreeNode lets me change the cursor style?  I was thinking it was RadTreeNode.Attributes["cursor"] = "pointer";  but this doesnt seem to work.

J
J
Top achievements
Rank 1
 answered on 01 Jul 2009
1 answer
355 views
Hello

I have a grouped radgrid. When the one of the groups in the grid is expanded or collapsed the grid makes an ajax postback to the server to populate the expanded group. The postback uses a rad loading panel. The problem I am having is that the rad loading panel covers the entire grid when the user expands a group which makes the grid effectively disappear. Is there anyway to have the loading panel appear just on the space where the details table will appear or failing that to at least keep the column headers of teh grid visible

i'm using q3 2008

thanks
Dimo
Telerik team
 answered on 01 Jul 2009
1 answer
279 views
hi,
i am using radgrid controls for my project.
 i have the following problems.
1. i am using Eval method to bind template fields of the grid. the problem is when page loads and there is no data in the grid then it is not showing its headers , i have marked true the showheaderwhennorecord property of the grid to true.
2. the datasource to the grid is dataset and thos dataset is result of stored procedures not direct connection strings.
so tell me how to update records in this grid.
3. let me know how to use edit,update,cancel commands of radgrid to update data inform mode of edit.
its urgetn please help me as soon as possible.
Veli
Telerik team
 answered on 01 Jul 2009
1 answer
93 views
Hi all..
       Is there any event we could call while expanding or collapsing the grid. Beacuse if am using the filtering with the grid, grouping is working before filtering only.

Plz help me


regards,
Appu

Veli
Telerik team
 answered on 01 Jul 2009
3 answers
135 views
Clicking on the "paste" toolbar button in Firefox, a dialog appears which says "Please use CTRL+V to Paste". But when one uses the shortcut CTRL+V, the same dialog appears again! This instruction is useless and hence, nobody can paste content into the editor field. The only way is to use the "paste as plain text". But clearly, this is not the same.

In ToolsFile.xml, the button is defined by <tool name="Paste" shortcut="CTRL+V" />.

Surprisingly enough, this issue occurs only on some machines, but all have the same configuration.

Stanimir
Telerik team
 answered on 01 Jul 2009
1 answer
56 views
Currently, FireFox doesn't support using "em" units in the "width" attribute of COL elements. This presents a problem because the HeaderStyle.Width property renders in FireFox like so:
<colgroup> 
  <col width="25em"/>  
  <col width="5em"/>  
  <col width="5em"/>  
</colgroup> 

However, em units ARE supported in FireFox if the widths are set using the "style" attribute:
<colgroup> 
  <col style="width:25em"/>  
  <col style="width:5em"/>  
  <col style="width:5em"/>  
</colgroup> 
 
Interestingly, width attributes are rendered in IE without the "em":
<colgroup>    
  <col width="25"/>     
  <col width="5"/>     
  <col width="5"/>     
</colgroup>    
 
Dimo
Telerik team
 answered on 01 Jul 2009
3 answers
239 views
Is anyone familiar with the "create thumbnail" functionality of the Image Manager?

  1. I open the Image Manager
  2. Choose an image URL
  3. Upload an image
  4. Select the uploaded image and click on the "Create thumbnail" icon in the Image Manager

In most of the cases I get a proposed with and height of 35 Pixel although "Constrain proportions" is ticked and the image has a 4 : 3 image proportion.

I then close the Image Manager and reopen it, select the uploaded image and click the "Create thumbnail" icon... and magic: the original width and height of the uploaded image is shown (and the state of "Constrain proportions" was kept).

I then change the width to something smaller than the uploaded image and the height is adjusted correctly. Clicking the "Create" button generates my thumbnail. But if I select now the newly generated thumbnail, the image dimensions displayed are 35 x 35 pixel :( Clicking the "Insert" button adds the new generated image to my html content and ...the dimension are suddenly correct.

I then reopened the Image Manager to generate a thumbnail which was a little bit wider than the one generated in the first round. So I selected the uploaded image (original dimensions correctly displayed, but if I clicked the original image a second time the dimensions always change to 35 x 35 px), ticked "Overwrite if file with such name exists?", changed the width to something larger than for the first generated thumbnail, clicked "Create", selected the new thumbnail and inserted it to my html content... and what I got inserted was the small thumbnail of the first round :(

Only after checking in the publishing page and edit it afterwards again (close the editor) I was able to select the larger thumbnail.

I presume the Image Manager to have two problems:

  1. Image dimensions displayed in the "create thumbnail" area are not always displayed correctly. Reproduceable is the problem when choosing an image, change to create thumbnail and click the image again on the left hand side -> dimensions always change to 35 x 35 Pixel and the only way to see the correct dimensions is to close and reopen the Image Manager
  2. Once a thumbnail is generated it looks like it get's cached ? until the Rad editor is closed. When overwriting the thumbnail the new thumbnail can only be inserted after closing and reopening the Rad editor.

Are these issues already known?

Stanimir
Telerik team
 answered on 01 Jul 2009
1 answer
117 views
is it possible to synchronize the control of two independent splitters so that they appear to be working together?
Svetlina Anati
Telerik team
 answered on 01 Jul 2009
1 answer
62 views
Hi All
I am setting the date from javascript using the following Code.
function ProcessDateSelection(sender, e) 
  { 
   
     var DateControl= $find('<%= rdstartDate.ClientID %>'); 
     var EndDateControl= $find('<%= rdEndDate.ClientID %>'); 
     var EventType=getEventType(); 
       
        if(EventType==-1)//Daily 
         { 
           SetDefaultDate(EndDateControl); 
           var date = DateControl.get_selectedDate(); 
           date.setDate(date.getDate() ); 
           EndDateControl.set_minDate(date); 
           EndDateControl.set_maxDate(date); 
           EndDateControl.set_selectedDate(date); 
         } 
         if(EventType==0)//Daily 
         { 
               var date = DateControl.get_selectedDate(); 
               date.setDate(date.getDate() +1 ); 
               EndDateControl.set_minDate(date); 
               EndDateControl.set_selectedDate(date); 
         } 
          if(EventType==1)//Weekly 
         { 
              var date = DateControl.get_selectedDate(); 
               date.setDate(date.getDate() +7 ); 
               EndDateControl.set_minDate(date); 
               EndDateControl.set_selectedDate(date); 
         } 
          if(EventType==2)//Monthly 
         { 
               var date = DateControl.get_selectedDate(); 
               date.setMonth(date.getMonth() + 1 ); // Java script Month starts from  JAnuary=0 
               EndDateControl.set_minDate(date); 
               EndDateControl.set_selectedDate(date); 
          }     
 } 

But when the page postback  the date control is reset to its previous value.
I have also tried to assign date at server side in page load but in vain.
also note that the date control is in Update panel
Kindly help me out .

Best regards
faiq






Veli
Telerik team
 answered on 01 Jul 2009
2 answers
181 views

Hi
I'm sorry. My English is bad.

Problem:
I have got WebUserControl with Button (OnClick= javascript with alert("aaa"))

I have got Page with:
1. telerik:RadAjaxManager
2. Button (OnClick = "WebUserControl.Visible = !WebUserControl.Visible")
3. WebUserControl

A. If initial WebUserControl.Visible=false, then after Page.Button.Click
 WebUserControl.Button  appear and if WebUserControl.Button.Click appear error.

B. If initial WebUserControl.Visible=true, then OK.

C. If RadAjaxManager.EnableAJAX=false, then OK.

What would you propose then? (A.)

Page:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Tst_Default" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Src="WebUserControl.ascx" TagName="WebUserControl" TagPrefix="Controls" %>
<!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>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
       <asp:ScriptManager ID="ScriptManager1" runat="server"/>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="Button1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="WUC" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click"  />
      <Controls:WebUserControl ID="WUC" runat="server" Visible="false" />
   
    </form>
</body>
</html>

 

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Tst_Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        WUC.Visible = !WUC.Visible;
    }
}

Control:

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="WebUserControl.ascx.cs" Inherits="Tst_WebUserControl" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<script type="text/javascript" language="javascript" >
    function bt_Click(){alert("aaa");}
</script>
    <input id="Button1" type="button" value="button" OnClick="bt_Click()"/>

 

Kokorev
Top achievements
Rank 1
 answered on 01 Jul 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?