Telerik Forums
Community Forums Forum
6 answers
290 views
Hi....

I am using a RadTreeView.

- Menu groups collapse when I click a sub menu item.

Expected:
- Menu group should stay open until I
click the divot to collapse the menu group
OR
click the divot to expand a different menu group
OR
go to a different tab.

This is working fine on localhost but not on server. If there is any change to be done in code while loading on server please let me know..
I am storing the value of node in session, to check if the node is clicked or not.
Boyan Dimitrov
Telerik team
 answered on 24 Aug 2012
1 answer
155 views
Hi,
I am doing a site in Sitefinity5. I am using telerik radmenu to display menu items. Here is my code.
public void HorizontalRadMenu_ItemDataBound(object sender, RadMenuEventArgs e)
    {
        string[] strNavigationPages = { "Menu1", "Menu2", "Menu3", "Menu4", "Menu5", "Menu6", "Menu7", "关于我们", "联系我们", "视频", "租赁业务", "客户服务", "手持式 XRF技术" };
        
        if (e.Item != null)
        {
            if (e.Item.Level == 0)
            {
                parentPageId = ((Telerik.Sitefinity.Web.PageSiteNode)(e.Item.DataItem)).Id.ToString();
            }
 
            string currentPageId = ((Telerik.Sitefinity.Web.PageSiteNode)(e.Item.DataItem)).Id.ToString();
            string findThisString = e.Item.Text;
 
            int strIndex = -1;
            int flag = -1;
            if (!String.IsNullOrEmpty(findThisString) && ((Telerik.Sitefinity.Web.PageSiteNode)(e.Item.DataItem)).ShowInNavigation)
            {
                for (int strNumber = 0; strNumber < strNavigationPages.Length; strNumber++)
                {
                    strIndex = strNavigationPages[strNumber].IndexOf(findThisString);
                    if (strIndex > -1)
                    {
                        flag = 1;
                      //e.Item.NavigateUrl
 
                      
                    }
                }
 
                if (flag == -1 && ((Telerik.Sitefinity.Web.PageSiteNode)(e.Item.DataItem)).ParentKey != parentPageId && e.Item.Level < 2)
                {
                    e.Item.Remove();
                }
            }
            else
            {
                e.Item.Remove();
            }
        }
}
  I need to show the language folder appended to the href in menu

<li class="rmItem ">
<a class="rmLink" href="/en/page1/subpage1" /instead of 
<a class="rmLink" href="page1/subpage1" 

Is there any way. Can anybody pls help me.

Thanks,
Surya. 
Ivan Dimitrov
Telerik team
 answered on 24 Aug 2012
0 answers
86 views
Hi team,

when we copy the content from website and paste it in the telerik control, it is distorting the text formatting..
could you let us know if there is any fix for this as we are using this control and creating problems for us

Thanks,
Shankar.
Shankar
Top achievements
Rank 1
 asked on 23 Aug 2012
0 answers
144 views
I am working in telerik grid .but my Problem is how to bind two radio button yes and No and text box in column.my scenario is mentioned below


 1. if yes is clicked then text should be display in grid
 2. if no is clicked then text should not be display in grid
 3. in page load how to visible text box  if radio button  yes is checked

how to achieve this problem in server side or client side
please Provide the best solution
S
Top achievements
Rank 1
 asked on 21 Aug 2012
0 answers
192 views

I have 10 telerik tabs in which each page is a partial view.

 

On click of first tab a grid appears which has few records in it and a row in the grid is highlighted upon some condition.

There are few buttons in the page which has different functionality each.

Onclick of any button an action happens and grid rebinds accordingly(i.e the data in the grid changes based on the button action).

For this I am using grid.rebind();

 

Again I am checking for the condition to highlight the same row which was highlighted before through jQuery like this
var parentTR = $("input:checkbox[class=check-box]:checked").parent().parent();
                                        $(parentTR).addClass("hover_active");

But whichever class I add or delete to grid rows nothing is updated to the grid.

 

May I know the solution for this?

Shruthi
Top achievements
Rank 1
 asked on 07 Aug 2012
0 answers
226 views
I'm considering getting a license for the Windows 8 controls, primarily for a bunch of decent chart controls. I see that a subscription is mentioned, the search engine doesn't spit out anything useful about it. Does a subscription mean just regular code updates until it expires, or does it also stop the design mode in Visual Studio from working upon expiration.

Thanks for any information.
-mg

--edit: Found the FAQ, my questions have been positively answered.
Glowtape
Top achievements
Rank 1
 asked on 03 Aug 2012
1 answer
317 views
Hi,

Could anyone list it out what is the main difference between two with functionalities of the controls that we can do with Telerik and we cant do with ASP.NET Controls.

Thanks
Nidhi
Andrey
Telerik team
 answered on 02 Aug 2012
0 answers
99 views
Hi. i want to maintain scroll position of rad panel bar. my rad panel bar is placed in page which is on auto refresh. when i scroll the bar downward of rad panel bar it goes upward on page refresh. it should not. i am trying to handle it with following code but its not working. is am missing some thing? please help.

<script type="text/javascript">
function
SetScrollPositionOnlineContacts() {
                      
                     //var pane = splitter.GetPaneById("RadPanelBarRoster");
                     //document.getElementById("RadPanelBarRoster").scrollTop;
                     
                    var splitter =$find("RadSplitterBottomParent");
                    var intY =  splitter.GetPaneById("RadPanelBarRoster").scrollTop;
 
                    var date = new Date();
                    date.setTime(date.getTime() + (1 * 60 * 60 * 1000));
                    var expires = "; expires=" + date.toGMTString();
                    document.cookie = "cookieDivOnlineContacts" + "=" + intY + expires + "; path=/";
                    //document.title = intY;
                }
                function readCookieOnlineContacts(name) {
                    var nameEQ = name + "=";
                    var ca = document.cookie.split(';');
                    for (var i = 0; i < ca.length; i++) {
                        var c = ca[i];
                        while (c.charAt(0) == ' ') c = c.substring(1, c.length);
                        if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
                    }
                    return null;
                }
    </script>





Html is here
   <telerik:RadSplitter ID="RadSplitterBottomParent" runat="server" Height="100%" Width="100%"
            Orientation="Vertical" BackColor="#ECECFF" Skin="WebBlue" LiveResize="True" SplitBarsSize=""
            HeightOffset="124" Visible="true" BorderSize="0" PanesBorderSize="0">
            <!-- Start Left Roster Panel -->
            <telerik:RadPane ID="RadPaneRoster" runat="server" Width="220px" Scrolling="None">
                <telerik:RadContextMenu ID="RadContextMenuRoster" runat="server" OnClientItemClicked="onRosterContextMenuClick"
                    EnableShadows="True">
                    <Items>
                        <telerik:RadMenuItem runat="server" Text="View Conversation">
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem runat="server" Text="View Properties">
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem runat="server" Text="Add to Favourites" Enabled="False">
                        </telerik:RadMenuItem>
                    </Items>
                </telerik:RadContextMenu>
                <telerik:RadPanelBar ID="RadPanelBarRoster" runat="server" Skin="Metro" Width="100%" onscroll="SetScrollPositionOnlineContacts()"
                    Height="3000px" OnClientItemClicked="onRosterClick" OnClientContextMenu="onRosterContextMenu"
                    PersistStateInCookie="True" Style="width: 100%; border-top: 0; border-bottom: 0;
                    z-index: 2" ExpandMode="FullExpandedItem" EnableViewState="True" ViewStateMode="Inherit"
                    OnItemClick="RadPanelBarRoster_ItemClick">
                </telerik:RadPanelBar>
            </telerik:RadPane>
</telerik:RadSplitter>



  code behind is here
protected void Page_Load(object sender, EventArgs e)
        {
          
if (!IsPostBack)
            {
                StringBuilder sbScript = new StringBuilder();
                sbScript.Append("<script language='JavaScript' type='text/javascript'>");
                //For order Panel
                sbScript.Append("document.cookie = cookieDivOnlineContacts + \"=\" + \"\" + -1 + \"; path=/\";");
 
                sbScript.Append("</script>");
                //// Make use ScriptManager to register the script
                ScriptManager.RegisterStartupScript(this, this.GetType(), "@@@@MyCallBackAlertScript", sbScript.ToString(), false);
            }
 
        StringBuilder sbScript1 = new StringBuilder();
        sbScript1.Append("<script language='JavaScript' type='text/javascript'>");
        //For order Panel
        sbScript1.Append("var strCookOnlineContacts = readCookieRfqOrder(\"cookieDivOnlineContacts\"); " +
        "document.getElementById(\"RadPanelBarRoster\").scrollTop = strCookOnlineContacts;");
 
        sbScript1.Append("</script>");
 
        // Make use ScriptManager to register the script
        ScriptManager.RegisterStartupScript(this, this.GetType(), "@@@@MyCallBackAlertScript", sbScript1.ToString(), false);
 
}


Thanks
Kahloon
Kahloon
Top achievements
Rank 1
 asked on 01 Aug 2012
1 answer
103 views
hello,
I'm using Telering Reporting ultimate 2012 for designing reports.

When i bind my report with and a chart on my report with a same data source, the report work parfectly while the chart throws an exception related to the datasource.
Can anybody help me about this?
Steve
Telerik team
 answered on 31 Jul 2012
1 answer
133 views
Hello All

Currently I am using the RadScheduler in my project.I want to show the dates in the Hebrew Language.
I have used the Culture property of the RadScheduler but it will show the month names and days names in the Hebrew language but I want to show the dates in the Hebrew Language. See the next image


Here is the calendar and on the place of the the "Black Box" I want to show the Hebrew date. So is there any way of doing this?

Thanks in Advance to all.


Peter
Telerik team
 answered on 24 Jul 2012
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?