Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
223 views
I have an application where I have an Ajax tab control (which is created at design time-- no it's not a telerik tab control) and has 35+ seperate tabs currently which are populated with a couple text boxes and a couple dropdown lists for inputting of new data.  Once I added the Prometheus Editor (also at design time) I started encountering an error. 

The error is: "Stop running this script?  A script on this page is causing Internet Explorer to run slowly.  If it continues to run, your computer may become unresponsive."  After I click "No" it loads fine, albeit the whole thing runs rather slow for an Ajax app....

Obviously this issue occurs only once I added the Editor control, and yes, there are 35 of them loaded at once.  My problem is that there could be up to 50-75 alltogether (eventually) loaded at once.  If it can't even load 35 without an error message, I cringe to think about when more are added...   Any ideas on what could be the problem? 

Perhaps disable some features of the Editor or something?

Here's how I'm adding the Editor... 

Dim

tbEOSDet As RadEditor = New RadEditor
tbEOSDet.ID =
"EOSDet" & i + 1
tabcontent.controls.Add(tbEOSDet)

Thanks in advance for any help.

Greg Peszek
Top achievements
Rank 1
 answered on 10 Aug 2009
4 answers
363 views
Is there a way of catching the client side event of "maximized" i.e. running code after a window is maximised or resized for that matter?

Thanks
M
Matt Cowen
Top achievements
Rank 1
 answered on 10 Aug 2009
2 answers
148 views
Hi Guys,

I do have a grid with this definition:

<

 

telerik:RadGrid ID="rgdGrossFee" runat="server" DataSourceID="ObjectDataSource1"

 

 

GridLines="None" Skin="Office2007">

 

 

<MasterTableView AllowPaging="True" AutoGenerateColumns="False" DataKeyNames="Gro_Id"

 

 

DataSourceID="ObjectDataSource1" EditMode="EditForms" PageSize="8">

 

 

<RowIndicatorColumn>

 

 

<HeaderStyle Width="20px" />

 

 

</RowIndicatorColumn>

 

 

<ExpandCollapseColumn>

 

 

<HeaderStyle Width="20px" />

 

 

</ExpandCollapseColumn>

 

 

<Columns>

 

 

<telerik:GridBoundColumn DataField="Gro_Id" EmptyDataText="&amp;nbsp;" HeaderText="Gro_Id"

 

 

SortExpression="Gro_Id" UniqueName="Gro_Id" DataType="System.Int32" Visible="false">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="Gro_Year" EmptyDataText="&amp;nbsp;" HeaderText="Financial Year Ending"

 

 

SortExpression="Gro_Year" UniqueName="Gro_Year" DataType="System.Int32">

 

 

<ItemStyle Width="20%" />

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridTemplateColumn UniqueName="TemplateColumn2" SortExpression="ApplicationStatusName"

 

 

HeaderText="Uk">

 

 

<ItemTemplate>

 

 

<telerik:RadNumericTextBox ID="txtUK" runat="server" Text='<%# Bind("Gro_Uk") %>'

 

 

Width="90%" />

 

 

</ItemTemplate>

 

 

<ItemStyle HorizontalAlign="Left" Width="20%" />

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn UniqueName="TemplateColumn2" SortExpression="ApplicationStatusName"

 

 

HeaderText="USA">

 

 

<ItemTemplate>

 

 

<telerik:RadNumericTextBox ID="txtUSA" runat="server" Text='<%# Bind("Gro_USA") %>'

 

 

Width="90%" />

 

 

</ItemTemplate>

 

 

<ItemStyle HorizontalAlign="Left" Width="20%" />

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn UniqueName="TemplateColumn2" SortExpression="ApplicationStatusName"

 

 

HeaderText="Other">

 

 

<ItemTemplate>

 

 

<telerik:RadNumericTextBox ID="txtOther" runat="server" Text='<%# Bind("Gro_Other") %>'

 

 

Width="90%" />

 

 

</ItemTemplate>

 

 

<ItemStyle HorizontalAlign="Left" Width="20%" />

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn UniqueName="TemplateColumn2" SortExpression="ApplicationStatusName"

 

 

HeaderText="Total">

 

 

<ItemTemplate>

 

 

<telerik:RadNumericTextBox ID="txtTotal" runat="server" Text='<%# Bind("Gro_Total") %>'

 

 

Width="90%" />

 

 

</ItemTemplate>

 

 

<ItemStyle HorizontalAlign="Left" Width="20%" />

 

 

</telerik:GridTemplateColumn>

 

 

</Columns>

 

 

<EditFormSettings>

 

 

<EditColumn UniqueName="EditCommandColumn1">

 

 

</EditColumn>

 

 

</EditFormSettings>

 

 

<PagerStyle Mode="Slider" />

 

 

<CommandItemTemplate>

 

 

<table style="width: 100%;">

 

 

<tr>

 

 

<td width="23">

 

 

<asp:Image ID="Image2" runat="server" ImageUrl="~/Images/Icons/20/Add.png" />

 

 

</td>

 

 

<td>

 

 

<asp:LinkButton ID="Button1" runat="server" CommandName="AddSoli" Font-Bold="true"

 

 

Text="Add New Member" CausesValidation="false" />

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

</CommandItemTemplate>

 

 

</MasterTableView>

 

 

<ClientSettings EnableRowHoverStyle="true" Selecting-AllowRowSelect="true">

 

 

<Selecting AllowRowSelect="True" />

 

 

</ClientSettings>

 

 

<FilterMenu EnableTheming="True">

 

 

<CollapseAnimation Duration="200" Type="OutQuint" />

 

 

</FilterMenu>

 

</

 

telerik:RadGrid>

 



I need a javascript code that gives me the total of all amounts entered in previous columns.

can any on help?
Mike Kretzler
Top achievements
Rank 2
 answered on 10 Aug 2009
1 answer
96 views
I seem to recall a setting that would force all of the details tables to populate on page load, which would then cause expanding / collapsing to happen client-side.

Can anyone assist with information or a url that describes this behavior?

Thanks,
Matt
Matt
Top achievements
Rank 1
 answered on 10 Aug 2009
11 answers
193 views
Hello,

I've noticed that when we paste from Word sometimes <p> tags get changed to the following:

<p style="margin: 0in 0in 0pt">

Why is this happening?

Thanks,
Christian
Amey
Top achievements
Rank 1
 answered on 10 Aug 2009
0 answers
81 views
Hi,

I have a treeveiew control inside a radcombobox.
"OnClientNodeClicking" event of treeview I am setting the textproperty of the combobox using javascript.
I am trying to fire some event so that I can access the function in my the code behind.
I have tried "OntextChanged" & "SelectedIndexChanged" of combobox but none of them was raising the event.
If i use "OnItemsRequested" event then i am getting error "Sript control RadTreeView is not a registered script control. Script control must be registered using RegisteredScriptControl() before calling RegisteredScriptDescriptors(). Parameter name scriptControl.."

I need to load other dropdowns based on the selected tree node which is inside the dropdown.

any help will be grealy appreciated.

 <telerik:RadComboBox ID="RadComboBoxCategoryLevels"
                         Width="160px"
                         Height="150px"
                         AllowCustomText="false"
                         EmptyMessage="Any Category"
                         OnItemsRequested = "RadComboBoxCategoryLevels_ItemsRequested"                                                   
                         runat="server" >
                         <ItemTemplate >
                            <div onclick="StopPropagation(event)">
                                <telerik:RadTreeView ID="RadTreeView"
                                                     AppendDataBoundItems="true"
                                                     runat="server"
                                                     OnClientNodeClicking="OnclientNodeClickingHandler">                                                     
                                                     <DataBindings >
                                                        <telerik:RadTreeNodeBinding Depth="0" Expanded="true" />
                                                     </DataBindings>                                                     
                                </telerik:RadTreeView>                                
                            </div>                            
                        </ItemTemplate>
                        <Items >
                            <telerik:RadComboBoxItem Text="" />
                        </Items>                     
    </telerik:RadComboBox>   

function OnclientNodeClickingHandler(sender, e)
                        {
                        //debugger;
                            var node = e.get_node();                           
                                var combo = $find("<%= RadComboBoxCategoryLevels.ClientID %>");
                                combo.set_text(node.get_text());
                                combo.hideDropDown();        
                                combo.requestItems(node.get_text(),false);  
                                
                        }

venm
Top achievements
Rank 1
 asked on 10 Aug 2009
2 answers
211 views
I am trying to get the SelectedValue of a RadComboBox that is populated via a webservice. However, the SelectedValue is blank when I try to get the value when I postback. How can I get the selected value server side?

Thanks,
Ron

<telerik:RadComboBox ID="uxAccount" runat="server" Height="150px" EnableLoadOnDemand="True" 
                                                WebServiceSettings-Path="~/ScheduleWebService.asmx" CausesValidation="false" 
                                                 WebServiceSettings-Method="GetRooms" 
                                                ShowMoreResultsBox="true" EnableVirtualScrolling="true"
                                            </telerik:RadComboBox> 

Ron Cirka
Top achievements
Rank 1
 answered on 10 Aug 2009
4 answers
150 views
Hi, I am trying to create something similar to the "Load on Demand" tab strip example. http://demos.telerik.com/aspnet-ajax/tabstrip/examples/applicationscenarios/loadondemand/defaultcs.aspx

My code is exactly the same format as the example with the same events on the same objects. Here is my problem:

1. On load, the first tab is created.
2. I select the second tab.
3. RadMultiPage1_PageViewCreated is called on the first tab
3. RadTabStrip1_TabClick is called on the second  tab.
4. RadMultiPage1_PageViewCreated  is called on the second tab.
5. Click on the 3rd tab.
6. RadMultiPage1_PageViewCreated  is called on first and second tab.
7. RadTabStrip1_TabClick is called on the third tab.

Ok so my problem is, why do all previously created PageViews get created again? When I tried to take out the event OnPageViewCreated event from the RadMultiPage, then all the controls inside the previous PageViews no longer exist when the new tab is loaded. 

I need it to not re-create a PageView once the page is created. 

thanks!

sharon
elmosi
Top achievements
Rank 2
 answered on 10 Aug 2009
5 answers
844 views
Hi 
    I have a div and onmouseover of that div i need to show the menu and when use onmouseouts from that div i need to hide that menu i tried doing this with contextmenu and successfully show/hide menu but the problem is when user onmouseouts to click the menu the menu gets hidden. I need to keep showing menu onmouseout but if user goes away i need to hide.

Here is a sample code of what i am trying to achieve.

 

<div class="items1 anchorclass" rel="submenu1" onmouseover="showMenu(event)" onmouseout="hidemenu(e)" >

 

 

<asp:ImageButton ID="imgDemographics" runat="server" ImageUrl="../App_Themes/MainTheme/Images/icon_dp_d.png" /><br />

 

Demographics

</div>

 

 

<script type="text/javascript" language="javascript">

 

 

 

 

function showMenu(e)

 

{

 

var contextMenu = $find("<%= mnuDemographic.ClientID %>");

 

 

 

if ((!e.relatedTarget) || (!$telerik.isDescendantOrSelf(contextMenu.get_element(), e.relatedTarget)))

 

{

 

 

contextMenu.showAt(e.screenX - 40, e.screenY - 120);

}

 

 

 

// $telerik.cancelRawEvent(e);

 

 

 

}

 

function hidemenu(e)

 

{

 

var contextMenu = $find("<%= mnuDemographic.ClientID %>");

 

 

 

if ((!e.relatedTarget) || (!$telerik.isDescendantOrSelf(contextMenu.get_element(), e.relatedTarget)))

 

{

 

 

contextMenu.hide();

}

}

 

 

 

 

</script>

 

<

telerik:RadContextMenu ID="mnuDemographic" runat="server" Skin="Default" Flow="Vertical"

 

 

 

 

CausesValidation="False" onclientshowing="OnClientShowingHandler">

 

 

 

 

<Items>

 

 

 

 

<telerik:RadMenuItem runat="server" Text="Enrollment" Value="1">

 

 

 

 

</telerik:RadMenuItem>

 

 

 

 

<telerik:RadMenuItem runat="server" Text="Free Reduced Lunch" Value="2">

 

 

 

 

</telerik:RadMenuItem>

 

 

 

 

<telerik:RadMenuItem runat="server" Text="Attendance" Value="3">

 

 

 

 

</telerik:RadMenuItem>

 

 

 

 

<telerik:RadMenuItem runat="server" Text="Drop Outs/Graduation Rate" Value="4">

 

 

 

 

</telerik:RadMenuItem>

 

 

 

 

<telerik:RadMenuItem runat="server" Text="Mobility" Value="5">

 

 

 

 

</telerik:RadMenuItem>

 

 

 

 

<telerik:RadMenuItem runat="server" Text="Referrals" Value="6">

 

 

 

 

</telerik:RadMenuItem>

 

 

 

 

<telerik:RadMenuItem runat="server" Text="Retentions" Value="7">

 

 

 

 

</telerik:RadMenuItem>

 

 

 

 

<telerik:RadMenuItem runat="server" Text="Programs" Value="8">

 

 

 

 

</telerik:RadMenuItem>

 

 

 

 

<telerik:RadMenuItem runat="server" Text="Staff" Value="9">

 

 

 

 

</telerik:RadMenuItem>

 

 

 

 

<telerik:RadMenuItem runat="server" Text="Generate Demographic Profile" Value="10">

 

 

 

 

</telerik:RadMenuItem>

 

 

 

 

</Items>

 

 

 

 

</telerik:RadContextMenu>

Thanks

 

Susan
Top achievements
Rank 1
 answered on 10 Aug 2009
1 answer
120 views
I just need to find a dropdown that resides in ItemTemplate of MasterTableView: Colums 3 of RadGrid. I just tried following:

DropDownList

temp = ((DropDownList)RadGridMkbzHzmt.MasterTableView.FindControl("ddlHzmt"));

It throws exception "Object reference not set to an instance of an object"

How can i get over this?

Thanks in advance...

 

 

Daniel
Telerik team
 answered on 10 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?