Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
93 views
In my combo box I am using the grid like implentaion. I have two columns in the combo box. I am using the OnItemRequested event to do virtual loading since the dataset is huge and causes major performance issues other wise. The problem is when I use virtual loading the data is not visible. It is there as I can click in what looks like an empty box and the value populates as expected but it is not visible otherwise. Please see screenshot attached for details on that. Now my code

RadComboBox implementation code:
<telerik:RadComboBox ID="d1ConDDL" Width="275px" Height="150px" DropDownWidth="275px" OnItemsRequested="contactItemsRequested"
                                runat="server" EmptyMessage="Please choose a contact..." HighlightTemplatedItems="True" EnableVirtualScrolling="True"
                                ShowMoreResultsBox="True" EnableLoadOnDemand="True">
                                <HeaderTemplate>
                                    <table style="width: 250px; text-align: left">
                                        <tr>
                                            <td style="width: 125px;">
                                                Contact Name
                                            </td>
                                            <td style="width: 125px;">
                                                Contact ID
                                            </td>
                                        </tr>
                                    </table>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <table style="width: 250px; text-align: left;">
                                        <tr>
                                            <td style="width: 125px;">
                                                <%# DataBinder.Eval(Container,"Attributes['CONTACT_ORG']") %>
                                            </td>
                                            <td style="width: 125px; text-align: left">
                                                <%# DataBinder.Eval(Container, "Attributes['CONTACT_ID']")%>
                                            </td>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                            </telerik:RadComboBox>

OnItemRequested Event Code:
protected void contactItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
        {
            var ds = new DataSet();
            var factory = new QueryFactory(new Configuration().DataConfigurationFile);
            var query = factory.GetQuery("P_GET_ALL_CONTACTS");
            query.Fill(ds);
            var dt = ds.Tables[0];
 
            var itemOffset = e.NumberOfItems;
            var endOffset = Math.Min(itemOffset + ItemsPerRequest, dt.Rows.Count);
            e.EndOfItems = endOffset == dt.Rows.Count;
 
            for (var i = itemOffset; i < endOffset; i++)
            {
                d1ConDDL.Items.Add(new RadComboBoxItem(dt.Rows[i]["CONTACT_ORG"].ToString(), dt.Rows[i]["CONTACT_ID"].ToString()));
                d2ConDDL.Items.Add(new RadComboBoxItem(dt.Rows[i]["CONTACT_ORG"].ToString(), dt.Rows[i]["CONTACT_ID"].ToString()));
            }
            d1ConDDL.DataBind();
            e.Message = GetStatusMessage(endOffset, dt.Rows.Count);
        }


Any ideas why the data is in the box but cannot be seen?
Nencho
Telerik team
 answered on 14 May 2013
1 answer
170 views
hi,
my page has a radAjaxPanel (outer) on it. inside of this is a radGrid. the radGrid's editForm is a user control, and inside of this user control is another radAjaxPanel (inner).
there is a button inside of the user control's ajaxPanel that gets enabled/disabled server-side depending on selections made in other controls in the ajaxPanel. that works fine.

my problem is that i would like the button to update the outer ajaxPanel. i do not want to do a full page postback.

how can this be done?
Viktor Tachev
Telerik team
 answered on 14 May 2013
3 answers
252 views
I wonder if you will eventually add a feature to allow node selecting only on leaf elements? Or if you have a quick way to implement it in the current version of the control.

Thank you!
Kate
Telerik team
 answered on 14 May 2013
11 answers
309 views
Hello everyone!
Is there any way to print or export the contents of the RadPivotGrid respecting their structure?


thank you
Kostadin
Telerik team
 answered on 14 May 2013
1 answer
510 views
Hi
     How can I hide filter icon of radgrid column. Can somebody share a solution.

thanks
RT
Princy
Top achievements
Rank 2
 answered on 14 May 2013
5 answers
1.5K+ views
All,

I appologize if this is in the wrong forum...please direct me to the correct one if it is. 
I have inherited a project from a former co-worker and am receiving the following error when I attempt to run the project:

Could not load file or assembly 'Telerik.WinControls.UI, Version=8.2.0.0, Culture=neutral, PublicKeyToken=<REMOVED for privacy> ' or one of its dependencies. The system cannot find the file specified.

Any help would be appreciated.

Andrey
Telerik team
 answered on 14 May 2013
0 answers
106 views
Telerik Embedded skins are not apply for radcontrols in IE. For that Some expert told to add a Radstylesheetmanager to combine stylesheet request into single one.

if i add radstylesheetmanager like this

 string telerikAssembly= typeof(RadGrid).Assembly.FullName;
                    RadStyleSheetManager stylesheet = new RadStyleSheetManager();
                    
                    StyleSheetReference css1 = new StyleSheetReference();
                    css1.Assembly = telerikAssembly;
                    css1.Name = "Telerik.Web.UI.Skins.Telerik.Grid.Telerik.css";
                    stylesheet.StyleSheets.Add(css1);

                    StyleSheetReference css2 = new StyleSheetReference();
                    css2.Assembly = telerikAssembly;
                    css2.Name = "Telerik.Web.UI.Skins.Office2007.Grid.Office2007.css";
                    stylesheet.StyleSheets.Add(css2);
                    
                    StyleSheetReference css3 = new StyleSheetReference();
                    css3.Assembly = telerikAssembly;
                    css3.Name = "Telerik.Web.UI.Skins.Black.Grid.Black.css";
                    stylesheet.StyleSheets.Add(css3);
                    this.Page.Header.Controls.Add(stylesheet);



it doesn't work.
how can i solve this issue please help me to solve this issue.
Achuthan
Top achievements
Rank 1
 asked on 14 May 2013
1 answer
172 views

I'm having an issue where the autocomplete box is not working on Chrome for Android (Galaxy S4) - I can browse to the auto complete demo on demos.telerik.com and the box appears to work properly, pops up the demo data, autocompletes, etc.  When I try to place a control on my page and navigate with the same device, the control doesn't pop up with any data, nor does it appear to fire the OnTextChanged event.  The page does work in IE on the desktop, pops up the data, fires the event, works normally.  What am I missing?

Is there a better control for use in on a mobile page? 

Here's my page code

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %>
  
<!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>
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <script type="text/javascript">
        //Put your JavaScript code here.
    </script>
    <telerik:RadAjaxManager runat="server">
    </telerik:RadAjaxManager>
    <div>
        <telerik:RadAutoCompleteBox ID="RadAutoCompleteBox1" runat="server" InputType="Text"
            DataSourceID="SqlDataSource1" DataValueField="item_id" DataTextField="item_id"
            Filter="StartsWith" Skin="BlackMetroTouch" OnTextChanged="RadAutoCompleteBox1_TextChanged"
            DropDownHeight="1000px" DropDownPosition="Automatic" DropDownWidth="1000px">
        </telerik:RadAutoCompleteBox>
          
        <telerik:RadAutoCompleteBox runat="server" ID="RadAutoCompleteBox2" EmptyMessage="Please type here"
            DataSourceID="SqlDataSource1" DataTextField="item_id" InputType="Text" Width="280"
            DropDownWidth="280">
        </telerik:RadAutoCompleteBox>
  
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="connection-string-here"
            SelectCommand="SELECT [item_id], [item_desc] FROM [ItemList] order by [item_id]">
        </asp:SqlDataSource>
    </div>
    </form>
</body>
</html>
Nencho
Telerik team
 answered on 14 May 2013
1 answer
125 views
I have a page that contains a variable number of TreeView objects lined up horizontally, with the TreeView objects being created during Page_Init. The structure is like this:

<div style="overflow:auto">
    <RadAjaxPanel>
        <asp:Table>
            <asp:TableRow>
                 [ one asp:TableCell object per tree to be displayed ]
            </asp:TableRow>
        </asp:table>
    </RadAjaxPanel>
</div>


Each RadTreeView uses a NodeTemplate to customize its display, as each node may contain various combinations of text and graphics. All of this works very well and displays correctly. I assign an ID to an element inside one particular node (or to the node itself, using Node.Attributes("id") = "FixedValue"). Assigning the ID works fine, and all the TreeViews continue to display properly. The ID is set in ClientIDMode=Static.

The problem comes when I try to use window.location.hash to make the external div scroll to display the element that I assigned an ID to. On Internet Explorer 10, this works correctly. In Firefox 20 and Chrome 26, the first node in the tree containing the element to which I am scrolling is vertically offset, moving it up and partially out of the visible area of the div (each node contains up to three lines of text; the first line is pushed out of the visible area). The other RadTreeView objects continue to display correctly; only the one tree containing the scrolled-to object is vertically repositioned.

Any thoughts on what might be causing this display issue? All three browsers I've tested on have been on Windows.
Boyan Dimitrov
Telerik team
 answered on 14 May 2013
2 answers
145 views
Hi,

I am using the RadAjaxManager, but I keep getting this error as a YSOD. I got it once before and it was because I didn't have runat set to server on my form. But now I do. Here is my code:



<body>
    <form id="form1" runat="server">
      <telerik:RadAjaxManager  ID="RadAjaxManager1" EnableAJAX="true" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">      
        <AjaxSettings>        
        <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
        <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
        </UpdatedControls>
        </telerik:AjaxSetting>
        </AjaxSettings>
        </telerik:RadAjaxManager>


    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>  
 
This seems correct to me. What am I missing?

Thanks
Rajinder Singh
Top achievements
Rank 1
 answered on 14 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?