Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
256 views
I have used rad slider for showing a age slider. And using telerik ajax for calling the value changed event.

I have problem in such that the event is not called when slider thumb is dragged back to start value (Zero is my start value).

Thanks
Shinu
Top achievements
Rank 2
 answered on 19 Jul 2012
8 answers
456 views

I am developing an asp.net web application. I am using a RadDate picker to select a date to fix appointments for particular days.
Is there any way that I can mark the selected dates(already booked dates with a line strike-through) in the calendar so that the user can know that the dates are already selected.

Princy
Top achievements
Rank 2
 answered on 19 Jul 2012
1 answer
217 views
Hi,

 I want to drag a treeview (Telerik) node and drop into text area. I am able to achive it but the problem(limitation) is, first i have to place the cursor in the position i want to drop the text and then i have to drag the node text. But i want to drag into any where in the text area (in any position).

(Note : i am expecting the feature like, if we select any content from any website and it can be selected by mouse and can be dropped into anywhere in a textbox).

Thanks
R.Vasanth
Plamen
Telerik team
 answered on 19 Jul 2012
7 answers
514 views
Hello,

I have been slowly replacing our RadChart controls with the new RadHtmlChart with small issues here and there as I have posted on the forums.  I have come across a couple of additional issues while trying to replace some of our stacked bar charts.

Below is the HTML markup for the chart that I am trying to implement which is a column series with the property for stacked on the first series set to true as indicated by the documentation on how to create a stacked chart.  However, the rendering of the chart does not produce the intended results.  Although the columns do stack on one another, the YAxis max value is a much larger number than what it needs to be.  This causes the bars to be small compared to the chart and hard to distinguish the stacks series.  For instance, the data being returned in this case would not cause a stacked bar to have a total of more than about 90 to 100.  When the chart renders, the YAxis max value is set to 500 with step increments of 100.  The problem is further exasperated when retrieving larger numbers such as getting the monthly logon count totals versus the daily.  In this case the total count of a stacked column is no more than 13,000 to 14,000.  When the chart renders in this case, the YAxis max value is set to 500,000 with step increments of 100,000.  As you can imagine, at this point the stacked columns are nearly visible they are so small.

If I remove the stacked property and instead let the chart render each series as individual columns, the chart renders perfectly fine with a proper YAxis max value and step increment making an easy to read chart.  However, there are times I need to use the stacked column approach as it lends more to the data I am trying to display.  I cannot set a YAxis max value in the HTML because the data is based on the user's criteria for amount of time such as daily, weekly, monthly or yearly.

Lastly, one other issue I have seen not just in this chart but in all the charts is with the Tooltip DataFormatString.  In the same markup below you will see I use a format of {0:N0} in order to show the comma placement in large numbers.  This works perfectly fine for the YAxis labels, but the tooltip format will not change and will just show the number without the commas in them.  I have another post where this is an issue with formatting the axis labels for date as well.

<telerik:RadHtmlChart runat="server" ID="MetricsDataChart" Width="660" Height="400"
    Transitions="true" DataSourceID="MetricsDataSource">
    <ChartTitle Text="Outlook Web Access Logon Traffic">
        <Appearance Align="Center" Position="Top" />
    </ChartTitle>
    <Legend>
        <Appearance Visible="true" Position="Top" />
    </Legend>
    <PlotArea>
        <XAxis MajorTickType="Outside" MinorTickType="None" DataLabelsField="Date">
            <LabelsAppearance DataFormatString="{0}" RotationAngle="75" />
            <TitleAppearance Visible="true" Text="Date" />
            <MinorGridLines Visible="false" />
        </XAxis>
        <YAxis MajorTickType="Outside" MinorTickType="None">
            <LabelsAppearance DataFormatString="{0:N0}" RotationAngle="0" />
            <TitleAppearance Visible="true" Text="Logons" />
            <MinorGridLines Visible="false" />
        </YAxis>
        <Series>
            <telerik:ColumnSeries Name="Successful Logons" DataField="Success" Stacked="true">
                <LabelsAppearance Visible="false" />
                <TooltipsAppearance DataFormatString="{0:N0}" />
            </telerik:ColumnSeries>
            <telerik:ColumnSeries Name="Failed Logons" DataField="Failure">
                <LabelsAppearance Visible="false" />
                <TooltipsAppearance DataFormatString="{0:N0}" />
            </telerik:ColumnSeries>
        </Series>
    </PlotArea>
</telerik:RadHtmlChart>

Thanks in advance,
Ron
Slav
Telerik team
 answered on 19 Jul 2012
2 answers
132 views
HI, i tried to use the radpanelbar to build with my asp.net page. one of my panel item with a custom user control and the custom user control combin with multi control (radtextbox, radButton, raddatapicker and radtextbox). i found the panel bar cannot expand if i use custom user control with controls combin of radtextbox, radButton, raddatapicker and radtextbox and load the control in code behind. the issue is not occur if i don't use custom user control.

custom user control

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ProspectSearchCtl.ascx.cs" Inherits="Control_SearchControl_ProspectSearchCtl" %>
  
<telerik:RadComboBox ID="RadComboBox2" runat="server">
</telerik:RadComboBox>
<telerik:RadDateInput ID="RadDateInput2" runat="server">
</telerik:RadDateInput>
<telerik:RadTextBox ID="RadTextBox2" runat="server">
</telerik:RadTextBox>

Main_New.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Main_New.aspx.cs" Inherits="STEPS_Pages_EditForm_Edit_MySearch"  %>
  
<%@ Register src="~/Control/ClientSelectCtl.ascx" tagname="ClientSelectCtl" tagprefix="uc1" %>
  
<%@ Register src="~/Control/ClientRegCtl.ascx" tagname="ClientRegCtl" tagprefix="uc2" %>
  
<%@ Register src="~/Control/TransactionSearchCtl.ascx" tagname="TransactionSearchCtl" tagprefix="uc3" %>
  
<%@ Register src="~/Control/TransactionSearchResultCtl.ascx" tagname="TransactionSearchResultCtl" tagprefix="uc4" %>
  
<%@ Register src="../Control/SearchControl/ProspectSearchCtl.ascx" tagname="ProspectSearchCtl" tagprefix="uc5" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  
<head runat="server">
    <title></title>
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <base target="_self">
    <style type="text/css" >
         html, body, form  
    {  
        height: 100%;  
        margin: 0px;  
        padding: 0px;  
        overflow: hidden;  
    }  
    </style>
    <style type="text/css"
    * + html .buttonsPane
    {
        position: relative;
    }
</style>
  
    <link href="~/css/common2.css" type="text/css" rel="stylesheet"/> 
      
</head>
<body >
<script language="javascript" type="text/javascript">
    function spbLeft_OnClientItemClicked(sender, args) {
        var selectedPanelBar = args.get_item().get_value();
        var mpgMain = $find("<%= mpgMain.ClientID %>");
        if (selectedPanelBar == "Stock") {
            mpgMain.set_selectedIndex(0);
        } else if (selectedPanelBar == "Client") {
            mpgMain.set_selectedIndex(1);
        } else if (selectedPanelBar == "Global") {
            mpgMain.set_selectedIndex(2);
        } else if (selectedPanelBar == "Invoice") {
            mpgMain.set_selectedIndex(3);
        } else if (selectedPanelBar == "Building") {
            mpgMain.set_selectedIndex(4);
        } else if (selectedPanelBar == "Prospect") {
            mpgMain.set_selectedIndex(5);
        } else if (selectedPanelBar == "Transaction") {
            mpgMain.set_selectedIndex(6);
        } else if (selectedPanelBar == "Report") {
            mpgMain.set_selectedIndex(7);
        } else if (selectedPanelBar == "Profile") {
            mpgMain.set_selectedIndex(8);
        }
    }
    </script>
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <div style="height:100%; overflow:hidden"
            <telerik:RadSplitter ID="sptMainFrame" runat="server" Orientation="Vertical" SplitBarsSize=""  Width="100%" Height="100%">
                <telerik:RadPane ID="splLeft" runat="server" Width="200px" Visible="true" >
                    <telerik:RadPanelBar 
                        runat="server" ID="spbLeft"
                        Height="100%" ExpandMode="FullExpandedItem" Width="200px" OnClientItemClicked="spbLeft_OnClientItemClicked">
                        <Items>
                            <telerik:RadPanelItem Text="Stock"  Expanded="true" Value="Stock" Visible="false" ImageUrl="~/Images/Home_16x16.png"  >
                                  
                            </telerik:RadPanelItem>
                            <telerik:RadPanelItem Text="Company/Contact"  Expanded="true" Value="Client" Visible="false" ImageUrl="~/images/User_16x16.png" >
                                  
                            </telerik:RadPanelItem>
                            <telerik:RadPanelItem Text="Global"  Expanded="true" Value="Global" Visible="false" ImageUrl="~/Images/global_16x16.PNG">
                                  
                            </telerik:RadPanelItem>
                            <telerik:RadPanelItem Text="Invoice"  Expanded="true" Value="Invoice" Visible="false" ImageUrl="~/Images/Invoice_16x16.PNG">
                                  
                            </telerik:RadPanelItem>
                            <telerik:RadPanelItem Text="Building"  Expanded="true" Value="Building" Visible="false" ImageUrl="~/Images/hospital-icon_16x16.png">
                                <Items>
                                    <telerik:RadPanelItem >
                                       <ItemTemplate>
                                  
                                           <asp:Button ID="Button1" runat="server" Text="Button" />
                                       </ItemTemplate>
                                    </telerik:RadPanelItem>
                                </Items>
                            </telerik:RadPanelItem>
                            <telerik:RadPanelItem Text="My Prospects"   Value="Prospect" Visible="false" ImageUrl="~/Images/Invoice_16x16.PNG">
                                <Items>
                                    <telerik:RadPanelItem Value="ProspectSearch" >
                                        <Items>
                                            <telerik:RadPanelItem runat="server" Value="ProspectSearchTemplateHolder" >   
                                                  
                                            </telerik:RadPanelItem
                                        </Items>
                                    </telerik:RadPanelItem>
                                </Items>
                            </telerik:RadPanelItem>
                            <telerik:RadPanelItem Text="Transaction"  Expanded="true" Value="Transaction" Visible="false" ImageUrl="~/Images/Invoice_16x16.PNG">
                                  
                            </telerik:RadPanelItem>
                            <telerik:RadPanelItem Text="Reports"  Expanded="true" Value="Report" Visible="false" ImageUrl="~/Images/Invoice_16x16.PNG">
                                 
                            </telerik:RadPanelItem>
                            <telerik:RadPanelItem Text="My Profile"  Expanded="true" Value="Profile" Visible="false" ImageUrl="~/Images/MyProfile_16x16.PNG">
                                  
                            </telerik:RadPanelItem>
                            <telerik:RadPanelItem runat="server" >
                                <ItemTemplate>
                                    <asp:Image ID="imgSavillsTechnology" Width="180px" runat="server" ImageUrl="~/Images/savillsTechnology_jpg_Resize.jpg" />
                                </ItemTemplate>
                            </telerik:RadPanelItem>
                        </Items>
                    </telerik:RadPanelBar>
                </telerik:RadPane>
                <telerik:RadPane ID="splMain" runat="server" Width="100%" CssClass="buttonsPane" Scrolling="None" Height="100%">
                    <telerik:RadMultiPage ID="mpgMain" runat="server" SelectedIndex="0">
                        <telerik:RadPageView ID="pvwStock" runat="server"  >
                        stock
                        </telerik:RadPageView>
                        <telerik:RadPageView ID="pvwClient" runat="server">
                        client
                        </telerik:RadPageView>
                        <telerik:RadPageView ID="pvwGlobal" runat="server">
                        global
                        </telerik:RadPageView>
                        <telerik:RadPageView ID="pvwInvoice" runat="server">
                        invoice
                        </telerik:RadPageView>
                        <telerik:RadPageView ID="pvwBuilding" runat="server">
                        building
                        </telerik:RadPageView>
                        <telerik:RadPageView ID="pvwProspect" runat="server">
                        prospect
                        </telerik:RadPageView>
                        <telerik:RadPageView ID="pvwTransaction" runat="server">
                        transaction
                        </telerik:RadPageView>
                        <telerik:RadPageView ID="pvwReport" runat="server">
                        report
                        </telerik:RadPageView>
                        <telerik:RadPageView ID="pvwMyProfile" runat="server">
                        profile
                        </telerik:RadPageView>
                    </telerik:RadMultiPage>
                </telerik:RadPane>
            </telerik:RadSplitter>
        </div>
        <telerik:RadAjaxManager runat="server">
        </telerik:RadAjaxManager>
          
    </form>
</body>
</html>


Main_New.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
  
using Savills.Web;
using Savills.DataSource;
using Telerik.Web.UI;
  
public partial class STEPS_Pages_EditForm_Edit_MySearch : CommonPage
{
  
    //private long? _recordId = null;
    private long? _mySearchId = null;
    private long _clientId;
    private long? _assoClientId;
    private string _action = null;
    private bool _isCreateNewMySearch = false;
    private bool _isShowClientInfo = true;
    private string _menu = null;
    private string _multiLocationList = null;
    private string _leaseStatus = null;
    private string _tenureType = null;
    private bool _showSearchPane = true;
    private string _fromCond = null;
  
    #region properties
    //protected long? RecordId { 
    //    get { return _recordId ; }
    //    set { _recordId = value; }
    //}
    protected long? MySearchId
    {
        get { return _mySearchId; }
        set { _mySearchId = value; }
    }
    protected long ClientId {
        get { return _clientId; }
        set { _clientId = value; }
    }
    protected long? AssoClientId
    {
        get { return _assoClientId; }
        set { _assoClientId = value; }
    }
    protected string Action {
        get { return _action; }
        set { _action = value; }
    }
    public string multiLocationList
    {
        get { return _multiLocationList; }
        set { _multiLocationList = value; }
    }
    public string leaseStatus
    {
        get { return _leaseStatus; }
        set { _leaseStatus = value; }
    }
    public string tenureType
    {
        get { return _tenureType; }
        set { _tenureType = value; }
    }
    public bool showSearchPane
    {
        get { return _showSearchPane; }
        set { _showSearchPane = value; }
    }
    public string fromCond
    {
        get { return _fromCond; }
        set { _fromCond = value; }
    }
  
    protected string IsCreateNewMySearch
    {
        get { return _action; }
        set { _action = value; }
    }
  
    protected bool isShowClientInfo
    {
        get { return _isShowClientInfo; }
        set { _isShowClientInfo = value; }
    }
    #endregion
  
    #region page events
    protected void Page_Init(object sender, EventArgs e)
    {
        //if (Page.IsPostBack)
        //{
            //initForm();
        //}
    }
  
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Cache.SetCacheability(HttpCacheability.NoCache);
        Response.Cache.SetExpires(DateTime.Now.AddSeconds(-1));
        Response.Cache.SetNoStore();
  
        if (Page.IsPostBack)
        {
            //if (ViewState["RecordId"] != null) {
            //    _recordId = long.Parse(ViewState["RecordId"].ToString());
            //}
  
            if (ViewState["MySearchId"] != null)
            {
                _mySearchId = long.Parse(ViewState["MySearchId"].ToString());
            }
  
            if (ViewState["ClientId"] != null)
            {
                _clientId = long.Parse(ViewState["ClientId"].ToString());
            }
            if (ViewState["AssoClientId"] != null)
            {
                _assoClientId = long.Parse(ViewState["AssoClientId"].ToString());
            }
            if (ViewState["Action"] != null)
            {
                _action = ViewState["Action"].ToString();
            }
            if (ViewState["IsCreateNewMySearch"] != null)
            {
                _isCreateNewMySearch = (bool)ViewState["IsCreateNewMySearch"];
            }
            if (ViewState["IsShowClientInfo"] != null)
            {
                _isShowClientInfo = (bool)ViewState["IsShowClientInfo"];
            }
            if (ViewState["Menu"] != null)
            {
                _menu = ViewState["Menu"].ToString();
            }
            if (ViewState["multiLocationList"] != null)
            {
                _multiLocationList = ViewState["multiLocationList"].ToString();
            }
            if (ViewState["leaseStatus"] != null)
            {
                _leaseStatus = ViewState["leaseStatus"].ToString();
            }
            if (ViewState["tenureType"] != null)
            {
                _tenureType = ViewState["tenureType"].ToString();
            }
            if (ViewState["showSearchPane"] != null)
            {
                _showSearchPane = (bool)ViewState["showSearchPane"];
            }
            if (ViewState["fromCond"] != null)
            {
                _fromCond = ViewState["fromCond"].ToString();
            }
            initForm();
        }
        else {
            //if (Request.QueryString["RecordId"] != null) {
            //    _recordId = long.Parse(Request.QueryString["RecordId"].ToString());
            //    ViewState["RecordId"] = _recordId;
            //}
  
            if (Request.QueryString["MySearchId"] != null)
            {
                _mySearchId = long.Parse(Request.QueryString["MySearchId"].ToString());
                ViewState["MySearchId"] = _mySearchId;
            }
  
            if (Request.QueryString["ClientId"] != null)
            {
                _clientId= long.Parse(Request.QueryString["ClientId"].ToString());
                ViewState["ClientId"] = _clientId;
            }
            if (Request.QueryString["AssoClientId"] != null)
            {
                _assoClientId = long.Parse(Request.QueryString["AssoClientId"].ToString());
                ViewState["AssoClientId"] = _assoClientId;
            }
            if (Request.QueryString["Action"] != null)
            {
                _action = Request.QueryString["Action"].ToString();
                ViewState["Action"] = _action;
            }
            if (Request.QueryString["IsCreateNewMySearch"] != null)
            {
                _isCreateNewMySearch = (Request.QueryString["IsCreateNewMySearch"].ToString() == "1");
                ViewState["IsCreateNewMySearch"] = _isCreateNewMySearch;
            }
            if (Request.QueryString["Menu"] != null)
            {
                _menu = Request.QueryString["Menu"].ToString();
                ViewState["Menu"] = _menu;
            }
            if (Request.QueryString["multiLocationList"] != null)
            {
                _multiLocationList = Request.QueryString["multiLocationList"].ToString();
                ViewState["multiLocationList"] = _multiLocationList;
            }
            if (Request.QueryString["leaseStatus"] != null)
            {
                _leaseStatus = Request.QueryString["leaseStatus"].ToString();
                ViewState["leaseStatus"] = _leaseStatus;
            }
            if (Request.QueryString["tenureType"] != null)
            {
                _tenureType = Request.QueryString["tenureType"].ToString();
                ViewState["tenureType"] = _tenureType;
            }
            if (Request.QueryString["showSearchPane"] != null)
            {
                _showSearchPane = (Request.QueryString["showSearchPane"].ToString() == "1");
                ViewState["showSearchPane"] = _showSearchPane;
            }
            if (Request.QueryString["fromCond"] != null)
            {
                _fromCond = Request.QueryString["fromCond"].ToString();
                ViewState["fromCond"] = _fromCond;
            }
            initForm();
            loadData();
        }
    }
    #endregion
  
    #region page functions
  
    private void initForm() {
        checkAccessRight();
        //RadComboBox cbo = new RadComboBox();
        //spbLeft.FindItemByValue("Prospect").Items[0].Controls.Add(cbo);
        Control_SearchControl_ProspectSearchCtl prospectSearchCtl = Page.LoadControl("~/Control/SearchControl/ProspectSearchCtl.ascx") as Control_SearchControl_ProspectSearchCtl;
        prospectSearchCtl.ID = "prospectSearchCtl";
        spbLeft.FindItemByValue("Prospect").Items[0].Controls.Add(prospectSearchCtl);
                //if (_showSearchPane)
                //{
                //    spbLeft.FindItemByValue("Transaction").Visible = true;
                //    Control_TransactionSearchCtl TransactionSearchCtl = Page.LoadControl("~/Control/TransactionSearchCtl.ascx") as Control_TransactionSearchCtl;
                //    TransactionSearchCtl.ID = "TransactionSearchCtl";
                //    TransactionSearchCtl.employeeId = long.Parse(this.employeeId);
                //    TransactionSearchCtl.langDB = base.langDB;
                //    spbLeft.FindItemByValue("Transaction").Controls.Add(TransactionSearchCtl);
                //    spbLeft.FindItemByValue("Transaction").Selected = true;
                //}
                //else
                //{
                //    sptMainFrame.GetPaneById("splLeft").Visible = false;
                //}
                //Control_TransactionSearchResultCtl TransactionSearchResultCtl = Page.LoadControl("~/Control/TransactionSearchResultCtl.ascx") as Control_TransactionSearchResultCtl;
                //TransactionSearchResultCtl.ID = "TransactionSearchResultCtl";
                //TransactionSearchResultCtl.employeeId = long.Parse(this.employeeId);
                //TransactionSearchResultCtl.unitId = -1;
                //TransactionSearchResultCtl.multiLocationList = _multiLocationList;
                //TransactionSearchResultCtl.tenureType = _tenureType;
                //TransactionSearchResultCtl.leaseStatus = _leaseStatus;
                //TransactionSearchResultCtl.langDB = base.langDB;
                //TransactionSearchResultCtl.fromCond = _fromCond;
                //pvwTransaction.Controls.Add(TransactionSearchResultCtl);
                
  
                //sptMainFrame.GetPaneById("splLeft").Visible = false;
                //spbLeft.FindItemByValue("Prospect").Visible = false;
                //spbLeft.FindItemByValue("Prospect").Selected = false;
                  
                //Control_ClientRegCtl ClientRegCtl = Page.LoadControl("~/Control/ClientRegCtl.ascx") as Control_ClientRegCtl;
                //ClientRegCtl.employeeId = long.Parse(this.employeeId);
                //ClientRegCtl.clientId = _clientId;
                //ClientRegCtl.assoClientId = _assoClientId;
                //ClientRegCtl.mySearchId = _mySearchId;
                //ClientRegCtl.langDB = base.langDB;
                //ClientRegCtl.action = _action;
                //ClientRegCtl.isShowClientInfo = _isShowClientInfo;
                //ClientRegCtl.isCreateNewMySearch = _isCreateNewMySearch;
                //ClientRegCtl.systemName = base.systemName;
                //pvwProspect.Controls.Add(ClientRegCtl);
                 
    }
  
    private void loadData()
    {
          
         
    }
  
  
  
  
    private void checkAccessRight()
    {
        if (CommonFunction.IsSystemParameterExist("BOAccess", "Home", this.employeeId))
        {
        }
        else
        {
        }
  
        if (CommonFunction.IsSystemParameterExist("BOAccess", "Report", this.employeeId))
        {
            spbLeft.FindItemByValue("Report").Visible = true;
            spbLeft.FindItemByValue("Report").Selected = true;
            spbLeft.FindItemByValue("Report").Expanded = true;
        }
        else
        {
            spbLeft.FindItemByValue("Report").Visible = false;
        }
  
        if (CommonFunction.IsSystemParameterExist("BOAccess", "Transaction", this.employeeId))
        {
            spbLeft.FindItemByValue("Transaction").Visible = true;
            spbLeft.FindItemByValue("Transaction").Selected = true;
            spbLeft.FindItemByValue("Transaction").Expanded = true;
        }
        else
        {
            spbLeft.FindItemByValue("Transaction").Visible = false;
        }
  
        if (CommonFunction.IsSystemParameterExist("BOAccess", "Building", this.employeeId))
        {
            spbLeft.FindItemByValue("Building").Visible = true;
            spbLeft.FindItemByValue("Building").Selected = true;
            spbLeft.FindItemByValue("Building").Expanded = true;
        }
        else
        {
            spbLeft.FindItemByValue("Building").Visible = false;
        }
  
        if (CommonFunction.IsSystemParameterExist("BOAccess", "Invoice", this.employeeId))
        {
            spbLeft.FindItemByValue("Invoice").Visible = true;
            spbLeft.FindItemByValue("Invoice").Selected = true;
            spbLeft.FindItemByValue("Invoice").Expanded = true;
        }
        else
        {
            spbLeft.FindItemByValue("Invoice").Visible = false;
        }
  
        if (CommonFunction.IsSystemParameterExist("BOAccess", "Client", this.employeeId))
        {
            spbLeft.FindItemByValue("Client").Visible = true;
            spbLeft.FindItemByValue("Client").Selected = true;
            spbLeft.FindItemByValue("Client").Expanded = true;
        }
        else
        {
            spbLeft.FindItemByValue("Client").Visible = false;
        }
  
  
        if (CommonFunction.IsSystemParameterExist("BOAccess", "Prospect", this.employeeId))
        {
            spbLeft.FindItemByValue("Prospect").Visible = true;
            spbLeft.FindItemByValue("Prospect").Selected = true;
            spbLeft.FindItemByValue("Prospect").Expanded = true;
        }
        else
        {
            spbLeft.FindItemByValue("Prospect").Visible = false;
        }
  
        if (CommonFunction.IsSystemParameterExist("BOAccess", "Stock", this.employeeId))
        {
            spbLeft.FindItemByValue("Stock").Visible = true;
            spbLeft.FindItemByValue("Stock").Selected = true;
            spbLeft.FindItemByValue("Stock").Expanded = true;
        }
        else
        {
            spbLeft.FindItemByValue("Stock").Visible = false;
        }
    }
    #endregion
}





Peter
Telerik team
 answered on 19 Jul 2012
5 answers
167 views
Hi,

Not sure if this is the best place, however I have had a problem I can't resolve and need assistence.

I used the upgrade toolbox Telerik tool as part of the upgrade, Now I can only drag controls (including standard VS controls) into the design window.

I hardly ever work here and tend to drop controls straight into the Source window, so this is frustrating.

Any assistence appreciated!

Jason
Petar
Telerik team
 answered on 19 Jul 2012
11 answers
149 views
Hi

A combo box dropdown has a set width. In most cases the text is less to then the full width of the dropdown. However the items in the dropdown only respond to mouse clicks (ie to be selected) when the mouse is clicked on text. If the mouse is clicked somewhere on the dropdown that doesn't contain text the click is not picked up

Any ideas?
Thanks
Dimitar Terziev
Telerik team
 answered on 19 Jul 2012
1 answer
161 views
Hi Telerik,

I have a problem with RadTreeView for a few days now. I am unable to find a reasonable explanation to this.

In the attached file I have sent you the souce code of my problem.

I have read in the following post, that the thing has been solved...
http://www.telerik.com/community/forums/aspnet/treeview/serversidecallback-nodeclick-workaround.aspx

But I still have a problem...the web service created nodes do not trigger server side NodeClick event.

Please be so kind, and look into my code...it is really simple, but it doesn't work:)


Taught I should add the web service too....the treeview has only two levels, and only the second level is populated through web service

The rad controls version is RadControls for ASP.NET AJAX Q1 2011 NET 4.0



Thanks in advance,
regards,
Luka

Bozhidar
Telerik team
 answered on 19 Jul 2012
3 answers
472 views
1.) Drag AJAX Control on WebPart
2.) Get strong name with JustDecompile e.g.:

Telerik.Web.UI, Version=2012.2.607.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4
3.) Replace "Assembly" on UserControl with strong name:

<%@ Register Assembly="Telerik.Web.UI, Version=2012.2.607.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" ...
4.) Open Package.package -> Advanced -> Add -> Add existing assembly... 
4.a) Source Path, e.g: C:\Program Files (x86)\Telerik\RadControls for ASP.NET AJAX Q2 2012\Bin35\Telerik.Web.UI.dll
4.b) Deployment Target: GlobalAssemblyCache
4.c) Location: Telerik.Web.UI.dll
4.d) Safe Controls: -> Click here to add new item...
4.e) Namespace: Telerik.Web.UI
4.f) TypeName: *
4.g) Assembly Name (e.g.): Telerik.Web.UI, Version=2012.2.607.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4
4.f) Safe: =Checked

Plamen
Telerik team
 answered on 19 Jul 2012
1 answer
79 views

When i run recorded step for checking check box.actually it check the checkbox but result is not showing.Same step i am doing manually the result is displayed according to check box is selected.
Tell me how to select check box in coded step and why selected check box value is not passing to server.
Ivana
Telerik team
 answered on 19 Jul 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?