Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
221 views
Hi
I undertand I can set width or max-width of node image using css:

#ExploreTreeView img

{

max-width:16px;

max-height:16px

}


I would like to be able to set the image max width programatically though as it needs to be different for certain nodes.
I noticed there is a style property with RadTadTreeNode, I tried this:

C#
newNode.Style.Value= "img {max-width:22px}";
I really don't know if this syntax is correct, but this doesn't work for me.

Can anyone suggect the right way for me to define the image width/max-width programatically?


Thanks
Richard

 

richard
Top achievements
Rank 1
 answered on 09 Jan 2012
0 answers
64 views
Hi,

Using telerik ajax panel. There are a number of buttons and these buttons in the panel due to running events. I am running these events. But i don't use the panel for a while for example 2 minute or 1 minute. Events don't work. The loading panel is calling, do postback but event's doesn't work. What is poblem...
ne2000
Top achievements
Rank 1
 asked on 09 Jan 2012
3 answers
259 views
Hi telerik team,
  
        I have a problem for use rad editor with ribbon mode. i need to hide button and button group on ribbon bar. i use tools file for generate toolbar. Can i do that.


thank for advance :)
Rumen
Telerik team
 answered on 09 Jan 2012
7 answers
387 views
Hello,

I'm having difficulty getting a context menu to expand to the width of the current node's text.  The tree view's context menu in your examples solution always expands to the width of the menu item's text, but I could not find any references where the width of the context menu or its items is explicitly being set.

I'm also using the same jscript function: setMenuItemsState to set the menu item's text.

Please advise.
Kate
Telerik team
 answered on 09 Jan 2012
1 answer
134 views
Hello everyone!

just tried to display in RadSlider tooltip with image. 

with this codes it is ok but displaying 2 image side by side. 
div.innerHTML = "<img src='images/" + slider.get_selectedItems()[0].get_value() + ".gif' width='50' height='64'> <img src='images/"  + slider.get_selectedItems()[1].get_value() + ".gif' width='50' height='64' >";

with this code displaying image good for every step but when i sliding right handle it displaying only  first image 
div.innerHTML = "<img src='images/" + slider.get_selectedItems()[0].get_value() + ".gif' width='50' height='64'> <img src='images/"  + slider.get_selectedItems()[1].get_value() + ".gif' width='50' height='64' >";
        else
 
            div.innerHTML = "<img src='images/" + slider.get_selectedItems()[1].get_value() + ".gif' width='50' height='64'> ";


so target is
when i sliding right handle tooltip displaying right image.
any help?
Regards


Slav
Telerik team
 answered on 09 Jan 2012
1 answer
90 views
Hi
I have a treeview which bind to a Datatable  which is code in the follow
private void fillContractItem()
  
{
  
trvContractItem.DataFieldID = "iNumber";
  
trvContractItem.DataFieldParentID = "iParentNumber";
trvContractItem.DataTextField = "strName";
trvContractItem.DataValueField = "iNumber";
 trvContractItem.DataSource = objContractItem.SelectAll();
trvContractItem.DataBind();
  
}


I want node sort by a filed(name filed is orderfiled in in datatable
how i can move  nodes to up or down in a level  then save order nodes in orderfiled and load nodes by orderfiled and show to users
thanks 
Plamen
Telerik team
 answered on 09 Jan 2012
1 answer
89 views
Im having a problem styling the first level (0) the same as the rest of the levels.
It seems to be the class of the first ul is rsmLevel instead of rsmNodeLines which the other levels has.

Im trying to create a single vertical tree (kind of like a treeview) where all the levels have nodelines, but like I said, the first level looks weird, but all the other levels are fine.

Any suggestions?
Kate
Telerik team
 answered on 09 Jan 2012
2 answers
122 views
I have a form with a RadGrid which is data bound to a DataTable as  the page is loaded server side.  I have defined my grid as :-

<telerik:RadGrid ID="gridParts" runat="server" AllowSorting="True" CellSpacing="0" Height="690px" OnSelectedIndexChanged="gridParts_SelectedIndexChanged" AllowMultiRowSelection="False">
<ClientSettings>
<Selecting AllowRowSelect="True" />
</ClientSettings>
<MasterTableView AutoGenerateColumns="true" TableLayout="Fixed" DataKeyNames="PartNumber" AllowCustomSorting="false" AllowMultiColumnSorting="false" AllowNaturalSort="false" Alloo>
</MasterTableView>
<ClientSettings Selecting-AllowRowSelect="true" EnablePostBackOnRowClick="true">
<Resizing AllowColumnResize="true" ResizeGridOnColumnResize="false" AllowResizeToFit="true" ClipCellContentOnResize="true" EnableRealTimeResize="true" />
<Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True" />
</ClientSettings>
</telerik:RadGrid>

From the documentation this should allow simple sorting to work.  I only have 2 columns in the grid which are auto-generated.  My problem is that nothing appears to happen when I click the column header to sort the items.  To I need to add anything else just to implement simple ascending/descending sorting?
Shinu
Top achievements
Rank 2
 answered on 09 Jan 2012
1 answer
63 views
Hi,
I've experienced odd behavior with the RadTreeView when i got 3 levels of nodes.. first 2 leves are normal checkable nodes and the 3. level is uncheckable nodes for info etc.
When i check any of the nodes on the 2. level, the parent node is checked even though it should be marked as undetermined.. first bug. When i uncheck the node i just checked, the parent node still remain checked.

Markup:
<telerik:RadTreeView ID="RadTreeView1" runat="server" ExpandAnimation-Type="None"
CheckBoxes="true" TriStateCheckBoxes="true">
</telerik:RadTreeView>


Code:
   protected void Page_Load(object sender, EventArgs e)
        {
            RadTreeView1.Nodes.Clear();
            RadTreeNode node = null;
 
            node = new RadTreeNode("AAA", "aaa");
            RadTreeView1.Nodes.Add(node);
            AddNodes(node);
        }
 
        private void AddNodes(RadTreeNode parent)
        {
            RadTreeNode node = null;
 
            node = new RadTreeNode("111", parent.Value + "_111");
            AddInfoNodes(node);
            parent.Nodes.Add(node);
 
            node = new RadTreeNode("222", parent.Value + "_222");
            AddInfoNodes(node);
            parent.Nodes.Add(node);
        }
 
        private void AddInfoNodes(RadTreeNode parent)
        {
            RadTreeNode node = new RadTreeNode("foo", parent.Value + "_bar");
            node.Checkable = false; //Without this line everything works like it should....
            parent.Nodes.Add(node);
        }

Regards
Nikolaj Strauss
GROUP Live
Bozhidar
Telerik team
 answered on 09 Jan 2012
5 answers
1.2K+ views
Hello Team,

I want to find telerik radnumerikbox in javascript on pageload and set the focus. I can't able to find the Id of element in javascript .

<script type="text/javascript" >
       function pageLoad(sender, args) {
           try {
               $find("<%# txtDay.ClientID %>").focus();
           }
           catch (e) {
           }
       }
</script>

For this I did the above code but its not working.

Please help me.

 
Plamen
Telerik team
 answered on 09 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?