Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
146 views
Hi,

My page contains 2 treeview controls.
in second treeview control i dont want to show plus minus expand images for that i found following in forum

 

div.RadTreeView .rtPlus, div.RadTreeView .rtMinus {
display: none;

 

 

}

but when i apply this css it is appying to both the treeview controls which i dont want, i want  to apply this css to second treeview control.

Thanks

Kate
Telerik team
 answered on 22 Feb 2011
1 answer
308 views
I was having a hard time creating a RadMenu that allows you to pick an item/node, collapses/closes all items, and then lists the selected item on the radmenu after it is collapsed.  The Telerik demos stay expanded after you click an item.  The trick is to set Postback="true" on the items that you want to collapse the RadMenu. When you click on the item, it renames the RadMenu main item to the item you clicked on the server side.  So do I get Telerik some points??? : )

                <telerik:RadMenu ID="RadMenu1" runat="server" ClickToOpen="true" onitemclick="RadMenu1_ItemClick"  >
                    <Items>
                        <telerik:RadMenuItem Text="Main" PostBack="false" >
                            <Items>
                                <telerik:RadMenuItem Text="Item 1" PostBack="false">
                                    <Items>
                                        <telerik:RadMenuItem  Text="Sub Item 1" PostBack="true"  ></telerik:RadMenuItem>
                                    </Items>
                                </telerik:RadMenuItem>
                            </Items>
                        </telerik:RadMenuItem>
                    </Items>
                </telerik:RadMenu>

(server-side code)
    protected void RadMenu1_ItemClick (object sender, RadMenuEventArgs e)
    {
        RadMenu1.Items[0].Text = e.Item.Text;
    }
Dimitar Terziev
Telerik team
 answered on 22 Feb 2011
0 answers
114 views
I have two tabs on a page; the tabs are being created with JavaScript.  The first tab displays a repeater of events, the second tab is suppose to show the month view with the events using the RadScheduler.  When you first go to the page the first tab loads fine then you click on the tab to show the RadScheduler and nothing appears - if you refresh the browser the RadScheduler appears.  Is there some kind of page load event I should add or should I preload something?  This appears to be happening in these browsers IE, Firefox and Chrome (the only ones I tested with).

Any help or advice is greatly appreciated.

Thanks!
Nicole
Nicole
Top achievements
Rank 1
 asked on 22 Feb 2011
4 answers
534 views
Hi Team,

       Now, i'm old project control are replacing with telerik control. I have face with this problem. I call a rad window, after that how can i call a code behind function. Actual i want to call Rad Menu control server side function and link button. Kindly, please advice to me, it is need urgent.

Best Regards,
ALEX
Top achievements
Rank 1
 answered on 22 Feb 2011
3 answers
255 views
Hi ,
I would like to write some custom client code when radgrid columns are resized on the client. But there seems to be some event bubbling after my custom code works which renders my changes useless. Is there some way where I can specify cancelBubble = true for this onColumnResizing event?

Any help would be appreciated.
Kind Regards,
Paul

Vasil
Telerik team
 answered on 22 Feb 2011
0 answers
181 views
Hi,
Im using this RadTreeview when i click on the expand button to view the child nodes the font of the child nodes are increasing for each node.
Ex:
Root(xx-small)
- Child1(x-small)
  -Child1-1(Small)
   - child1-1-1(Medium)
I want to display everything in xx-small font.

<div style="font-size: xx-small">
                  <telerik:RadTreeView ID="rtvTreeView" CheckBoxes="true" runat="server"
                      Font-Size="XX-Small" OnNodeExpand="rtvTreeView_NodeExpand"
                      EnableDragAndDrop="True" EnableDragAndDropBetweenNodes="True"
                      OnNodeDrop="rtvTreeView_NodeDrop">
                      <CollapseAnimation Type="InQuint" Duration="100"></CollapseAnimation>
                      <ExpandAnimation Duration="100" Type="None"></ExpandAnimation>
                  </telerik:RadTreeView>
              </div>

 
win
Top achievements
Rank 1
 asked on 22 Feb 2011
1 answer
45 views
Hi,

I'm looking for a sample to edit title bar as described here Dock / Edit Title just for programmatically created Docks. How can I achieve this?

Thanks
Pero
Telerik team
 answered on 22 Feb 2011
3 answers
200 views
I have an ItemTemplate defined for my RadListBox. My list box is bound to the results of a Linq to SQL Query. In this case, it's bound to objects of type MyObject.

I'd like to be able to add a new RadListIBoxItem defined by the user. Ideally, I'd like to create a new MyObject instance and call myListBox.Items.Add(new RadListBoxItem(myNewObject)). This would then create a new item and bind the values in the ItemTemplate appropriately.

Of course, this isn't an option. I can only pass a text and value to the new RadListBoxItem, and this of course won't map to many of the controls in my ItemTemplate.

So what's the correct approach here? Is this simply the wrong control to use?
Dimitar Terziev
Telerik team
 answered on 22 Feb 2011
2 answers
144 views
I am applying a theme to RadTab strip and I isolated the problem to a snippet of code in css file:

.RadTabStrip

 

 

.rtsLevel1 .rtsLink

 

{

 

 

background-image: url('TabStrip/office2007.gif');

 

 

 

 

background-color: transparent;

 

 

 

 

background-repeat: no-repeat;

 

 

}

on running, the application appears as in the attached file, with the text running out of the tab shape. Is there any solution to this?

Alex Fefer
Top achievements
Rank 1
 answered on 22 Feb 2011
4 answers
112 views
I am hoping someone can solve my issue with the colorpicker.  I need to add a colorpicker icon to the radpanelbar but all it seems to do is display the icon on its initial load (even outside the scrolling region) and when the scroll bar is moved, the colorpicker icons remain in place.

I have started with the demo of the Scheduler / First Look which shows on the left side of the splitter, 2 stacked calendars and a radPanelBar with selectable "Team Calendars" and "My Calendar".  I have a replaced the existing radPanelBar of the demo with mine as follows:

<telerik:RadPanelBar id="rpbMyCalendars" runat="server" width="220px" ExpandMode="MultipleExpandedItems"
PersistStateInCookie="true" CookieName="xyzMyCalendarPanelBarCookie"/>


I have isolated a bit of test code to populate this radPanelBar by calling the function testLoad() during Page Load:

protected void testLoad()
{
    rpbMyCalendars.Items.Clear();
    createPanel(1, 8);
    createPanel(2, 8);
}
 
protected void createPanel(int panelNum, int count)
{
    var rpiRoot = new RadPanelItem("Root Panel " + panelNum);
    rpbMyCalendars.Items.Add(rpiRoot);
 
    for (var i = 1; i < count; i++ )
    {
        var rpiSub = new RadPanelItem("");
        rpiRoot.Items.Add(rpiSub);
 
        var literal = new Literal
        {
            Text = "<div title='Sub Panel " + i + "'>Sub Panel " + i + "</div>",
            ID = "tx_" + i,
        };
        rpiSub.Controls.Add(literal);
 
        var cp = new RadColorPicker
        {
            ID = "cp_" + i,
            ShowIcon = true,
            SelectedColor = Color.FromArgb(i * 0x100 + i * 0x10 + i),
            PaletteModes = PaletteModes.HSB,
            AutoPostBack = true
        };
        cp.ColorChanged += cpMyCalendar_OnColorChanged;
        rpiSub.Controls.Add(cp);
    }
}

This works just fine under IE8, Google Chrome, Firefox and Safari.  But under IE7, I get rendering issues of the colorpicker icon as show in the attached picture.  When I scroll the left side, the colorpicker icons remain where they were initially rendered.

I attempted to add the style rule "position:relative" to the owning parent(s) but all this did was make the parent exhibit the same behavior as the icon.

Thanks in advance for helping me out on this.

Ed
Ed
Top achievements
Rank 1
 answered on 22 Feb 2011
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?