Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
99 views
I'm using a RadMenu inside a pane in a splitter and the selections post to a content pane. On page_load code behind I am highlighting the menuitem to select it and displaying that page in the content pane. This is fine. Now I need to unhighlight the menuitem when another menuitem is selected. I tried doing this on opening a new page in the content window in the client javascript however I can't find any methods or properties that will un-highlight the menuitem. I can disable and enable it but it is still highlighted. Surely this is not an uncommon practice to initialize a menuitem as selected on page load but seems to be such a chore to go about it.
Atanas Korchev
Telerik team
 answered on 02 Jan 2009
1 answer
106 views
I'm having an issue when RadWindow is open as modal in IE. Modal window is displayed toward the bottom of the page. However, it works fine in FireFox. I've tried calling client script .Center() and setting OffSetElement with Top and Left properties, but did make any difference. Any suggestion will be greatly appreciated.
Svetlina Anati
Telerik team
 answered on 02 Jan 2009
1 answer
118 views
I downloaded the latest version today and updated my project to point to the new dll.

I am now getting a script error on updatepanel post backs.  On the refresh of the page I receive the following error: a.beginUpdate() is not a function.  I'm not using the radajaxmanager on this page but I am using other telerik controls.

Are there some additional changes I need to make to my project for this version?

Thanks,
Tony
Svetlina Anati
Telerik team
 answered on 02 Jan 2009
1 answer
130 views
Hi I tried the service fix or whatnot to fix this problem it doesnt work for me. What is this, where do I put it?

 

label

 

{

 

zoom:1;

 

 

display: inline-block !important;

 

}

the style section of the aspx code? I did that.  where are you talking about changing the font size to < 100%??

 

 

 

 

<

 

asp:TextBox ID="TextBox1" runat="server" BorderStyle="Ridge" BorderWidth="1px"

 

 

Height="243px" MaxLength="500" Rows="20" TextMode="MultiLine"

 

 

Width="652px" Font-Size="Medium"></asp:TextBox>

 

Svetlina Anati
Telerik team
 answered on 02 Jan 2009
3 answers
136 views
I am using the RadGrid, Ajaxupdate and example of the Target Control, this is implemented and it does work... 

My problem is large database, where it takes 3-4 seconds to display the tooltip information, While I can and will tune the DB to get performance, the question remains.

Since I have ALREADY queried the information and it is stored in non-visible fields on the grid, is there a method for the Tooltips to reference those fields and display them without another query to the database.

it is a user control i am using as per the example.

thanks for any assistance.
Svetlina Anati
Telerik team
 answered on 02 Jan 2009
1 answer
3.0K+ views
hi,
 i am using telerik chart, for that i am getting error

Error 2 Assembly 'Telerik.Web.UI, Version=2008.1.415.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' uses 'Telerik.Charting, Version=2.0.0.0, Culture=neutral, PublicKeyToken=d14f3dcc8e3e8763' which has a higher version than referenced assembly 'Telerik.Charting, Version=1.7.2.0, Culture=neutral, PublicKeyToken=d14f3dcc8e3e8763' d:\Projects\chart\chart\bin\Telerik.Web.UI.dll chart


what is the problem? and i want to download charting dll from telerik site, i am telerik license holder, how to download that dll.

please help

thanks and regards
anand gole
Tsvetie
Telerik team
 answered on 02 Jan 2009
1 answer
191 views
The problem I am having may not be with the TabStrip itself but it only happens when the code is in a Load On Demand TabStrip so I am going to post the question here.

I am not going to post the code for the RadTabStrip/RadMultiPage. I am using the Load On Demand demo exactly and that part is working well. (Except that I am not sure how I should handle loading the initial tab when the page loads).

Each of the tabs has an ascx user control on it. One of them has a RadComboBox that feeds another RadComboBox. The first combo box has a list of regions and when you choose a region it populates the location combo box with locations that pertain to that region. This works fine when I am not using the Load On Demand RadTabStrip but when I switch to the Load On Demand style(which I need to do for performance and validation complications) I get the following error when I try to load the tab with the combo boxes.

A Runtime Error has occured. Do you wish to Debug?
Line: 109201698
Error: 'ClientLoadLocations' is undefined


ClientLoadLocations is the javascript function that is fired on the OnClientSelectedIndexChanging event of the cboRegions combo box. Here is the code for this page omitting some of the unnecessary html:

Can anyone offer a solution so I can stop pulling my hair out?

Thanks for the help.

<script type="text/javascript"
        function ClientLoadLocations(combo, eventargs) 
        { 
            var locationsCombo = $find("<%= cboLocations.ClientID %>"); 
            var item = eventargs.get_item(); 
            locationsCombo.set_text("Loading...");             
             
            if (item.get_index() > 0) 
            { 
                locationsCombo.clearItems(); 
                locationsCombo.requestItems(item.get_value(), false); 
                 
                var comboItem = new Telerik.Web.UI.RadComboBoxItem(); 
                comboItem.set_text("Testing"); 
                locationsCombo.trackChanges(); 
                locationsCombo.get_items().add(comboItem); 
            } 
            else 
            { 
                locationsCombo.set_text(" "); 
                locationsCombo.clearItems(); 
            }         
        } 
                   
        function LocationItemsLoaded(combo, eventargs) 
        { 
            var locationsCombo = $find("<%= cboLocations.ClientID %>"); 
            if (combo.get_items().get_count() > 0) 
              { 
                  combo.set_text(combo.get_items().getItem(0).get_text()); 
                  combo.get_items().getItem(0).highlight();                   
              } 
              combo.showDropDown(); 
        }        
    </script> 
 
     
    <asp:SqlDataSource ID="sdsAsset" runat="server" ProviderName="System.Data.SqlClient"  
    SelectCommandType=  "StoredProcedure" 
    SelectCommand=      "abspAssetManagement_GetIndividualAsset" 
    DataSourceMode=     "DataSet"
    <SelectParameters> 
        <asp:QueryStringParameter Name="AssetID" QueryStringField="AssetID" /> 
    </SelectParameters> 
</asp:SqlDataSource> 
 
 
<table> 
 
    <tr> 
        <td colspan="2"><asp:Label ID="lblDescription" runat="server">Update location infomation about the asset and click the 'Submit' button below.</asp:Label></td
    </tr> 
     
    <tr> 
        <td> 
            <asp:Label ID="lblAssignedTo" runat="server">Region:</asp:Label><br /> 
            <telerik:RadComboBox ID="cboRegions" runat="server" CausesValidation="false" EnableEmbeddedSkins="false" SkinID="CR" Width="250" 
                    OnClientSelectedIndexChanging="ClientLoadLocations"
            </telerik:RadComboBox> 
        </td> 
         
        <td> 
            <asp:Label ID="Label2" runat="server">Floor:</asp:Label><br /> 
            <asp:TextBox ID="txtFloor" runat="server" Width="200" MaxLength="50"></asp:TextBox> 
             
        </td>                         
    </tr> 
                
    <tr> 
        <td> 
            <asp:Label ID="lblAssetName" runat="server">Location:</asp:Label><br /> 
            <telerik:RadComboBox ID="cboLocations" runat="server" CausesValidation="false" EnableEmbeddedSkins="false" SkinID="CR" Width="250" 
                    OnClientItemsRequested="LocationItemsLoaded" 
                    OnItemsRequested="cboLocations_ItemsRequested"
            </telerik:RadComboBox> 
        </td> 
         
        <td> 
            <asp:Label ID="lblAssetDescription" runat="server">Room:</asp:Label><br /> 
            <asp:TextBox ID="txtRoom" runat="server" Width="200" MaxLength="50"></asp:TextBox> 
        </td>                         
    </tr> 
     
     
    <tr> 
        <td> 
            <asp:Button ID="btnSubmit" runat="server" Text="Save" onClick="btnSubmit_Click" />&nbsp; 
            <input type="button" value="Cancel" onclick="history.go(-1)" /> 
            <asp:HiddenField ID="hidAssetID" runat="server" /> 
        </td> 
     
    </tr> 
</table> 


public partial class NET2_AssetManager_UserControls_EDITLocationTAB : System.Web.UI.UserControl 
    #region variables 
 
    private string strSQL = ""
    private string strConnection = ""
    string strCompanyCode; 
 
    string strRegionID; 
    string strLocationID; 
    #endregion 
 
     
    protected void Page_Load(object sender, EventArgs e) 
    { 
        //Hardcode 
        strCompanyCode = "0"
 
        //strConnection = ConfigurationManager.ConnectionStrings["conn_crdemo"].ToString(); 
        strConnection = CRConfiguration.Conn; 
        sdsAsset.ConnectionString = strConnection; 
 
        if (!IsPostBack) 
        { 
 
            DataView dvSql = (DataView)sdsAsset.Select(DataSourceSelectArguments.Empty); 
            foreach (DataRowView drvSql in dvSql) 
            { 
                hidAssetID.Value = drvSql["AssetID"].ToString(); 
 
                //strRegionID will be used to select the appropriate item in the Region combo box 
                strRegionID = drvSql["RegionID"].ToString(); 
                //strLocationID will be used to select the appropriate item in the Location combo box 
                strLocationID = drvSql["LocationID"].ToString(); 
 
 
                txtFloor.Text = drvSql["Floor"].ToString(); 
                txtRoom.Text = drvSql["Room"].ToString(); 
            } 
 
            LoadRegions(); 
            LoadLocations(strRegionID); 
        } 
 
        cboRegions.Focus(); 
    } 
 
 
    protected void btnSubmit_Click(object sender, EventArgs e) 
    {       
    } 
 
 
    protected void cboLocations_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e) 
    {         
        LoadLocations(e.Text);         
    } 
 
 
    private void LoadRegions() 
    {         
        DataTable dtRegions = new DataTable(); 
        strSQL = "abspCommon_RegionListByCompany '" + strCompanyCode + "'"
        dtRegions = CRAccess.GetDataTable(strSQL); 
 
        cboRegions.DataTextField = "Region"
        cboRegions.DataValueField = "ID"
        cboRegions.DataSource = dtRegions; 
        cboRegions.DataBind(); 
        cboRegions.Items.Insert(0, new RadComboBoxItem("Select A Region...")); 
 
        if (!IsPostBack) 
        { 
            if (strRegionID != "0"
            { 
                cboRegions.Items.FindItemByValue(strRegionID).Selected = true
            } 
        }         
    } 
 
    private void LoadLocations(string strRegionID) 
    {         
        DataTable dtLocations = new DataTable(); 
        strSQL = "abspCommon_LocationListByCompanyAndRegion '" + strCompanyCode + "','" + strRegionID + "'"
        dtLocations = CRAccess.GetDataTable(strSQL); 
 
        cboLocations.DataTextField = "Name"
        cboLocations.DataValueField = "ID"
        cboLocations.DataSource = dtLocations; 
        cboLocations.DataBind(); 
        cboLocations.Items.Insert(0, new RadComboBoxItem("Select A Location...")); 
 
        if (!IsPostBack) 
        { 
            if (strLocationID != "0" && strLocationID != ""
            { 
                cboLocations.Items.FindItemByValue(strLocationID).Selected = true
            } 
        }             
    } 



Atanas Korchev
Telerik team
 answered on 02 Jan 2009
1 answer
177 views

Any instance of the RadComboBox (problem is present using embedded and custom skins) whose options list expands to overlap a RadMenu causes the list to render beneath the RadMenu. 

Is there any way to correct the behavior?  As I can't conceive of an instance where a RadComboBox in its non-expanded state and a RadMenu in its non-expanded state would overlap, it seems like the only part of either control that should be set to render on top of other controls would be the options list and subnav, respectively.

Is this a z-index setting that I can change in my custom skins?  If so, what should I do about embedded skins?

***Note: Please do not respond simply to tell me to upgrade our control set to the latest version.  That is always a good thing to do, but the last upgrade hosed our built in-house custom skins due to mark-up changes.  I need to know how to fix this in the product version listed below.

Thanks in advance!

Telerik Product: Telerik.Web.UI.dll v2008.03.1105.35
Famework: .NET 3.5
Server: Windows Server 2008 (Also apparent on XP Pro SP3 test machine)
Browsers: FF 3.0.5, IE 6.0.2900.5512.xpsp_3_gdr.080814-1236
Atanas Korchev
Telerik team
 answered on 02 Jan 2009
2 answers
153 views
Hi,
I have two ColorPicker, i don't want to allow anyone to select same color. Like i have a DisplayColor and TextColor, so the color should not be same.
Thank you. 
Tsvetie
Telerik team
 answered on 02 Jan 2009
1 answer
124 views

Hi,

I am trying to display radgrid in radtooltip.Some how the grid is not visible in the tool tip.

I used the following code

 

<telerik:RadToolTip>

 

 

<telerik:RadGrid runat="server" ID="rdItemType" Skin="Web20">

 

 

</telerik:RadGrid>

 

 

</telerik:RadToolTip>

Can anybody help me ASP.

Thanks.
Eva

 

Tsvetie
Telerik team
 answered on 02 Jan 2009
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?