Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
93 views
Hi,

Is it possible to access the loading panel used when refreshing the file explorer grid? I want to be able to change its zindex.

Thanks in advance,
Michael Pinheiro
Dobromir
Telerik team
 answered on 05 Jan 2012
1 answer
110 views
I have this ASPX code:

<telerik:RadComboBox runat="server" ID="instituicao" Width="450" CheckBoxes="true"
        AutoPostBack="true" ItemsPerRequest="10"
        EnableLoadOnDemand="True" ShowMoreResultsBox="true" EnableVirtualScrolling="true"
        OnItemChecked="instituicao_ItemChecked" OnItemsRequested="instituicao_ItemsRequested" />

And this code behind:
protected void instituicao_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
{
    DataTable dt = GetData();
    int total = dt.Rows.Count;
    int itemOffset = e.NumberOfItems;
    int endOffset = Math.Min(itemOffset + instituicao.ItemsPerRequest, total);
    e.EndOfItems = endOffset == total;
    instituicao.Items.AddRange(
        dt.Rows.OfType<DataRow>().Skip(itemOffset).Take(endOffset - itemOffset)
               .Select(i => new RadComboBoxItem(i["Id"] as string, i["Id"] as string)));
}
 
protected void instituicao_ItemChecked(object sender, RadComboBoxItemEventArgs e)
{
    // do stuff
}
 
private DataTable GetData()
{
    DataTable dt = new DataTable();
    dt.Columns.Add("Id", typeof(string));
    for (int i = 1; i <= 100; i++ )
    {
        DataRow row = dt.NewRow();
        row["Id"] = i;
        dt.Rows.Add(row);
    }
     return dt;
}

When I check an item I got this error and my code is never executed:
[ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index]
   System.Collections.ArrayList.get_Item(Int32 index) +7487944
   System.Web.UI.StateManagedCollection.System.Collections.IList.get_Item(Int32 index) +12
   Telerik.Web.UI.ControlItemCollection.get_Item(Int32 index) +48
   Telerik.Web.UI.RadComboBoxItemCollection.get_Item(Int32 index) +37
   Telerik.Web.UI.RadComboBox.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +238
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

Any clues?
Kalina
Telerik team
 answered on 05 Jan 2012
3 answers
126 views
How to load image (BinaryImage) from sql server, change the image using ImageEditor and save the image again to SQL Server (Asp.Net vb)? Example code would be appreciated :-)
Rumen
Telerik team
 answered on 05 Jan 2012
4 answers
131 views

We're having a problem accessing context and toolbar menus in the Editor using Firefox when the browser page has been scrolled. No problem with IE.

I'll include a link to a short video demonstrating the problem. You'll see that once the browser has been scrolled, the context and toolbar menus appear in different positions, and clicking an item on the menu has no effect; the menu disappears on mousedown. Once the browser page is scrolled back to the default position, the menus become functional again.

The problem seems to have manifest after upgrading the site to .NET 4.0.

The version of Telerik.Web.UI.dll is 2009.2.701.20. I realize this is not the current version of the editor and upgrading is in our near future, however, this problem has to be resolved immediately. Any help would be appreciated.

http://screencast.com/t/yXOdmcUPkTUf

Thanks.

Rumen
Telerik team
 answered on 05 Jan 2012
5 answers
91 views
Hello,

I have same javascript that uses $find which was working fine in Chrome / IE and I just tested it in Firefox 4 however $find() is returning null.  Here is the line of javascript code:

var tab = $find("<%=LookupTabs.ClientID%>").get_selectedTab();

Firefox is giving this error:

Error: $find("ctl00_ctl00_mainContent_pretrialContent_LookupTabs") is null
Source File: http://localhost:6444/CJIS/Pretrial/Lookup.aspx?NewInterview=2034111
Line: 164

However, again, it works fine in IE and Chrome.

Any suggestions?  Thanks!
Elliott
Top achievements
Rank 2
 answered on 05 Jan 2012
9 answers
144 views
Hi There,

I am using RadMenu with access key for each RadMenuItem its working fine when i click alt + (respected access key) but the problem is when i am clicking "alt + (respected access key)" that respected RadMenuItem is been selected only, it is not being opened such as when we MouseOver it will be opened.

Could please help me out how can i get RadMenuItem Opened on clicking of "alt + (respected access key)".

Thanks in Advance,
T.Ramakrishna.
Kate
Telerik team
 answered on 05 Jan 2012
1 answer
93 views

I have a client-side performance problem in IE8 with RadGrid. The grid has only 150 rows and looks like this:

<telerik:grid runat="server" ID="rgArtikel" AllowSorting="false" AllowFilteringByColumn="false"
        AutoGenerateColumns="false" EnableAjaxSkinRendering="false" EnableViewState="true"
        Visible="true" OnNeedDataSource="rgArtikel_NeedDataSource" OnItemDataBound="rgArtikel_ItemDataBound">
        <ClientSettings AllowKeyboardNavigation="true" EnablePostBackOnRowClick="false">
            <Selecting AllowRowSelect="false" />
        </ClientSettings>
        <MasterTableView AllowFilteringByColumn="false">
            <Columns>
                <telerik:GridTemplateColumn UniqueName="Key" InitializeTemplatesFirst="false" HeaderText="">
                    <ItemTemplate>
                        <asp:Literal ID="lKey" runat="server" Visible="false"></asp:Literal>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn UniqueName="Icon1" InitializeTemplatesFirst="false" HeaderText="Leit.">
                    <ItemTemplate>
                        <asp:Image ID="iLeitArtikel" runat="server" Visible="false"></asp:Image>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn UniqueName="Icon2" InitializeTemplatesFirst="false" HeaderText="Info">
                    <ItemTemplate>
                        <asp:Image ID="iArtikel" runat="server" Visible="false"></asp:Image>
                        <uc1:RDisplayArtikel ID="RDisplayArtikel" runat="server" Visible="false" />
                        <uc2:RSammelArtikel ID="RSammelArtikel" runat="server" Visible="false" />
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn UniqueName="Icon3" InitializeTemplatesFirst="false" HeaderText="">
                    <ItemTemplate>
                        <asp:Image ID="iPfand" runat="server" Visible="false"></asp:Image>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn UniqueName="Akt.VKP" InitializeTemplatesFirst="true"
                    HeaderText="Aktions-VKP">
                    <ItemTemplate>
                        <telerik:RadNumericTextBox ID="tbAktVkp" runat="server" Width="50px" Height="10px"
                            Type="Currency" DecimalSeparator="," Visible="false" Editable="Editable" MinValue="0">
                            <ClientEvents OnValueChanged="setChanged" />
                        </telerik:RadNumericTextBox>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn UniqueName="Aktionen" InitializeTemplatesFirst="false"
                    HeaderText="">
                    <ItemTemplate>
                        <asp:Image runat="server" ID="iAktionen" Visible="false"></asp:Image>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn UniqueName="iBeschaffung" InitializeTemplatesFirst="false"
                    HeaderText="">
                    <ItemTemplate>
                        <asp:HyperLink ID="iBeschaffung" runat="server" Visible="false" ToolTip="Beschaffungsregel vorhanden"></asp:HyperLink>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
            </Columns>
        </MasterTableView>
    </tegut:XYGrid>

The grid is filled in backend with max. 150 rows und is rendered fast. But when the site is shown in IE8, the CPU-Load is up to 100% and the IE doesn't react for about 3s. If I allow scrolling and enable fixed header, the IE stops working for about 5s.

Is there any trick to speed this up ?? I think 150 is not a large number of rows the grid can't handel anymore.

And by the way another problem: the resizing didn't work proper with scrolling enabled too. It's getting only larger not smaller (smallest size is size on load)!

Shinu
Top achievements
Rank 2
 answered on 05 Jan 2012
2 answers
108 views
HI,

I have a serious question, I have a tabstrip with four tabs and each tab has its usercontrol, and userusercontrol has some validation going on. But when the Usercontrol is used in 2nd tab , 3rd tab and 4th tab I am unable to move around the tabs because I am doing  usercontrol validation in client side so I am getting error of "htmlfile: cant move focus to the control because it is invisible not enabled or of type that does not accept the focus"

can any one help me with this Issue??
Jayesh Goyani
Top achievements
Rank 2
 answered on 05 Jan 2012
1 answer
158 views
Hello,

I am trying to add a button to a RadEditor in Sitecore 6.4 that will open up a dialog when clicked.  The button is displaying correctly, but I get an error when the button is clicked.  An alert pops up saying "The command EmbedBrightcoveVideo is not implemented yet."

I have added the following code to /sitecore/shell/Controls/Rich Text Editor/RichText Commands.js, which is what I thought was all I had to do to get it to work...


RadEditorCommandList["EmbedBrightcoveVideo"] = function(commandName, editor, tool) {
    alert('EmbedBrightcoveVideo fired.');
}


The JavaScript never fires.  I don't seem to be getting any JavaScript errors either.  Any ideas as to what could be wrong?

Thanks a lot.
Rumen
Telerik team
 answered on 05 Jan 2012
6 answers
261 views
Hi,
 We're using Telerik RAD Editor for MOSS version 8.5.0.0 and we have a slight question on the toolbar mode 'Floating'.

1. Can you tell me if there is an option to have the tool bar appear by default instead of clicking on the icon to turn the toolbars on each time?
2. Can you tell me if there is an option to set the default option on the 'pin' to lock the floating toolbar in position, to 'On'?

Thanks,
Jason.
Rumen
Telerik team
 answered on 05 Jan 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?