Telerik Forums
Community Forums Forum
0 answers
74 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
66 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
88 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
1 answer
64 views
Hi,
     I am new to telerik controls.I trying to use this skin concept in telerik But i am not able to get this how to use .skin file.And to apply custom CSS  to Rad controls what we have to do:
ex: i have to work with Radmenu and radpanelbar.  i am not able to appy forecolor for radmenu controls. Plzzzz help me
and can place usercontrol in radpanelbar???
Pavel Benov
Telerik team
 answered on 20 Jul 2012
0 answers
83 views
Hi,

Where can I get Telerik.Framework.dll and Telerik.Cms.Tools.WebControls.dll

Thanks.
Surya CD
Top achievements
Rank 1
 asked on 18 Jul 2012
0 answers
101 views
Hello All,

I am currently using Rad Scheduler in my project and I am displaying it in different languages using the "culture" property.

I am also using the Hebrew culture but now I want to show the scheduler control in Hebrew format.

For example currently in Hebrew format it is year 5772 and in English Calender it is year 2012.
So i want the whole scheduler to be converted in the Hebrew calender. I don't want to show the scheduler in the Hebrew language but in Hebrew format.

Thanks in advance
Hardik
Hardik
Top achievements
Rank 1
 asked on 16 Jul 2012
3 answers
112 views
All,

I'm trying to turn on the media manager for use in the telerik control - and it appears no matter what I do when I select the media manager in the control - even though - I have some files which meet the filter requirements - I don't see any media to add. Therefore, to date to turn this item on I've edited:

RadControls\Editor\ConfigFile.xml so it has the following items in it - the files/uploads/media path does exist and it has the proper permissions for the website user:

<property name="MediaPaths">
  <item>~/files/uploads/Media</item>
 </property>
 <property name="UploadMediaPaths">
  <item>~/files/uploads/Media</item>
 </property>
 <property name="DeleteMediaPaths">
  <item>~/files/uploads/Media</item>
 </property>
 <property name="MediaFilters">
  <item>*.avi</item>
  <item>*.mpeg</item>
  <item>*.mpg</item>
  <item>*.mov</item>
 </property>

I also edited the ToolsFile.xml so this property is enabled (it was commeneted out at one time)

 <tool name="MediaManager"/>

Therefore, any guidance on how to get this to work would be great.

Rumen
Telerik team
 answered on 12 Jul 2012
0 answers
169 views
Hi,
In our project the menu is done using the telerik radmenu. For some pages that are not shown in navigation, it is throwing an exception.

The website id done using the cms Sitefinity.

'SiteMap.CurrentNode.NextSibling' threw an exception of type 'System.ArgumentNullException' System.Web.SiteMapNode {System.ArgumentNullException}.
It is the same error with PreviousSibling.


public void HorizontalRadMenu_ItemDataBound(object sender, RadMenuEventArgs e)
{
string[] strNavigationPages = { "Home", "About", "Product", "Sales", "Marketing", "Partners", "Resources", "...", "...", "...", "...", "...", "..." };
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;
}
}
 
 
if (flag == -1 && ((Telerik.Sitefinity.Web.PageSiteNode)(e.Item.DataItem)).ParentKey != parentPageId && e.Item.Level < 2)
{
e.Item.Remove();
}
}
else
{
e.Item.Remove();
}
 
 
}
}



When does the SiteMap.CurrentNode.NextSibling and the PreviousSibling becomes null? 
Can anyone please help me.


Thanks,
Surya.
Surya CD
Top achievements
Rank 1
 asked on 03 Jul 2012
0 answers
101 views
Hello, Telerik guys (and girls). Thank you for this wonderful resource - tv.telerik.com.

I have one question. While downloading some files for offline viewing, I noticed that there is two locations from which files can be downloaded:
1) telerik.a.ec.viddler.com - this is from where video in flash player downloading.
2) (telerik, xxx).src.a.ec.viddler.com, wds.mp.advection.net - this is target for direct download.

My question is - where is video with better quality ( I assume it will be original video)?
Should I prohibit  downloading from telerik.a.ec.viddler.com?

Feature request.
Please, create one torrent file with all video on site. Of course, with tags, and categories support
Pavel
Top achievements
Rank 1
 asked on 24 Jun 2012
5 answers
118 views
Hi, I just signed up for the Q2 2012 Webinars and noticed afterwards that they are very early in the morning for us on the West Coast.  7AM is earlier than most of us start work over here, so if I can make the suggestion that you either:

a) Have a second broadcast later in the day.
b) Have a later broadcast that works for both sides of the country.
Nick
Top achievements
Rank 1
 answered on 21 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?