Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
371 views
When I use a RadGrid within a Radwindow, it puts the grid in one tiny little scrollable row instead of filling up the grid.

I was told to use:

ShowContentDuringLoad

="true"

That does expand the grid as expected, however, when I load that window again, it retains the values that were in the window the last time I used it. So the user can see the old values, then it pauses, clears the window and reloads the window with the new values.

I need to have it open without displaying the old values first.

I tried this:

DestroyOnClose="True"

But then when I open the window again, it has reverted my grid back to one scrollable row, so I'm thinking that it has now lost my initial radwindow where I had setup: ShowContentDuringLoad="true"


Here is what I'm using:

<

radw:RadWindow ID="RadPopupGridWindow" Modal="true" ShowContentDuringLoad="true" ReloadOnShow="true" runat="server" DestroyOnClose="True" />

So in short, how can I open a window that uses a grid, keep the grid intact without that nasty little one row scroll, and open it blank without displaying the previous window content?

thanks.

Georgi Tunev
Telerik team
 answered on 25 Aug 2008
1 answer
133 views
Hai,

How can i able to hide a column from my Radgrid after the Rafdgrid is binded . The columns of the grid are not created at the design time. Its auto generated.

Is it possible for me to hide a particular column after binding the grid.

Thanks & Regards,
Susahnth Mathew.
Princy
Top achievements
Rank 2
 answered on 25 Aug 2008
1 answer
138 views
Is there Rad Editor Equivalent in Winforms?
Nikolay
Telerik team
 answered on 25 Aug 2008
3 answers
177 views

I set my radwindow height and width in javascript. After I resize it, I'd like to have it recenter. If I resize to a really wide screen, it goes off the right side of the page:
here is a snippet of what I'm doing....

var oWindow = window.radopen(url,radWindowName);

oWindow.SetTitle(title);

if (radWidth != 0)

{

setTimeout(

function()

{

oWindow.setSize(radHeight,radWidth);

}

,0);

}


thanks,
Moon

Georgi Tunev
Telerik team
 answered on 25 Aug 2008
5 answers
140 views
Our tree implementation may have a very large number of nodes, which are hierarchically grouped and some nodes may appear under multiple branches.

We use various functions to add logic to the tree and nodes, such as checking off child nodes, unchecking parent nodes, and checking all instances of a node under other branches.

These routines are very quick in FireFox, but alarmingly slow in IE.  As an example, checking child nodes takes around 40ms in FF, but takes almost 4.5 seconds in IE with about 800 nodes in the tree.

I've already applied every best practice I could find to try to trim these times down in IE, but I don't think I'll be able to make a meaningful impact at this point.

The tree is used for selections, but also keeps "state" of what is selected which is used as input for a separate AJAX call.  The selected nodes are persisted between sessions.  For this reason, normal load on demand wouldn't work as I need selected nodes to be there on the client for the client logic to work.

What I'm wondering is this.  Can I bind the tree in such a way that any nodes which I know are selected will be bound and rendered, but of the remaining nodes, only the 1st level nodes will bind.  These unselected first level nodes would then use load on demand to bind the children, making them available to select on the client.

I'm hoping that this "hybrid" implementation will greatly reduce the number of actual nodes in the tree, while still behaving similarly to the current implementation. 

Thanks.
Atanas Korchev
Telerik team
 answered on 25 Aug 2008
3 answers
150 views
I am using a control that contains a RadPanel with RadEditors within.   The html is follows:

        <telerik:RadPanelbar ID="rpbDisposalCode" runat="server" Skin="Outlook" Width="80%" ExpandMode="MultipleExpandedItems" CausesValidation="true" AllowCollapseAllItems="true" CollapseAnimation-Type="InOutElastic" > 
            <Items> 
                <telerik:RadPanelItem runat="server" Text="Disposal Code" Expanded="true" Value="DisposalCode">  
                    <ItemTemplate> 
                        <asp:Label ID="lblDisposalCode" Text="Disposal Code" runat="server" />&nbsp;<asp:TextBox runat="server" ID="txtDisposalCode" ReadOnly="true" /><asp:DropDownList ID="ddDisposalCd" runat="server" AutoPostBack="true" DataSourceID="ObjectDataSourceDisposal"  DataTextField="DisposalCode" DataValueField="DisposalCodeID" OnSelectedIndexChanged="ddDisposalCd_SelectedIndexChanged" Visible="false" /> 
                        <asp:RequiredFieldValidator ID="rDisposalCode" runat="server" ControlToValidate="txtDisposalCode" ErrorMessage="*" Enabled="true"  SetFocusOnError="true" Text="Required Field" /><p /> 
                        <asp:CheckBox Text="Hazardous?"  runat="server" ID="ckHazardous" /> 
                    </ItemTemplate> 
                </telerik:RadPanelItem> 
                <telerik:RadPanelItem Text="Disclaimer" Value="DisclaimerTop" runat="server" Expanded="false">    
                   <Items> 
                        <telerik:RadPanelItem runat="server" Text="" Value="Disclaimer" Expanded="false">  
                            <ItemTemplate> 
                                <telerik:RadEditor runat="server" ID="radEdDisclaimer" ToolsFile="~/App_Themes/Theme3/ToolsFile.xml" EnableViewState="false" Width="90%">  
                                </telerik:RadEditor> 
                                <asp:RequiredFieldValidator ID="rValDisclaimer" runat="server" ControlToValidate="radEdDisclaimer" ErrorMessage="*" Enabled="true"  SetFocusOnError="true" Text="Required Field" /> 
                            </ItemTemplate> 
                        </telerik:RadPanelItem>    
                   </Items> 
                </telerik:RadPanelItem> 
                <telerik:RadPanelItem Text="Storage" Value="StorageTop" runat="server" Expanded="false">    
                   <Items>    
                        <telerik:RadPanelItem runat="server" Text="" Value="Storage">  
                            <ItemTemplate> 
                                <telerik:RadEditor runat="server" ID="radEdStorage" ToolsFile="~/App_Themes/Theme3/ToolsFile.xml" EnableViewState="false" Width="90%">  
                                </telerik:RadEditor> 
                                <asp:RequiredFieldValidator ID="rValEdStorage" runat="server" ControlToValidate="radEdStorage" ErrorMessage="*" Enabled="true"  SetFocusOnError="true" Text="Required Field" /> 
                            </ItemTemplate> 
                        </telerik:RadPanelItem> 
                   </Items> 
                </telerik:RadPanelItem> 
                          
                <telerik:RadPanelItem Text="Disposal Options " Value="DisposalOptionsTop" runat="server" Expanded="false">    
                    <Items>    
                        <telerik:RadPanelItem runat="server" Text="" Value="DisposalOptions" Expanded="false">  
                            <ItemTemplate> 
                                <telerik:RadEditor runat="server" ID="radEdDisposalText" ToolsFile="~/App_Themes/Theme3/ToolsFile.xml" EnableViewState="false" Width="90%">  
                                </telerik:RadEditor> 
                                <asp:RequiredFieldValidator ID="rValEdDisposalText" runat="server" ControlToValidate="radEdDisposalText" ErrorMessage="*" Enabled="true"  SetFocusOnError="true" Text="Required Field" /> 
                            </ItemTemplate> 
                        </telerik:RadPanelItem> 
                    </Items> 
                </telerik:RadPanelItem> 
 
                <telerik:RadPanelItem Text="Safety Control" Value="SafetyControlTop" runat="server" Expanded="false">    
                    <Items>    
                        <telerik:RadPanelItem runat="server" Text="" Value="SafetyControl" Expanded="false">  
                            <ItemTemplate> 
                                <telerik:RadEditor runat="server" ID="radEdSafetyControl" ToolsFile="~/App_Themes/Theme3/ToolsFile.xml" EnableViewState="false" Width="90%">  
                                </telerik:RadEditor> 
                                <asp:RequiredFieldValidator ID="rValEdSafetyControl" runat="server" ControlToValidate="radEdSafetyControl" ErrorMessage="*" Enabled="true"  SetFocusOnError="true" Text="Required Field" /> 
                            </ItemTemplate> 
                        </telerik:RadPanelItem> 
                    </Items> 
                </telerik:RadPanelItem> 
 
                <telerik:RadPanelItem Text="Comment/Questions" Value="CommentsTop" runat="server" Expanded="false">    
                    <Items>    
                        <telerik:RadPanelItem runat="server" Text="" Value="Comments" Expanded="false">  
                            <ItemTemplate> 
                                <telerik:RadEditor runat="server" ID="radEdComment" ToolsFile="~/App_Themes/Theme3/ToolsFile.xml" EnableViewState="false" Width="90%">  
                                </telerik:RadEditor> 
                                <asp:RequiredFieldValidator ID="rValEdComment" runat="server" ControlToValidate="radEdComment" ErrorMessage="*" Enabled="true"  SetFocusOnError="true" Text="Required Field" /> 
                            </ItemTemplate> 
                        </telerik:RadPanelItem> 
                    </Items> 
                </telerik:RadPanelItem> 
            </Items> 
        </telerik:RadPanelbar> 
 

The control containing the above radPanel is in another control that contains a RadPanel, below:

    <telerik:RadAjaxManager ID="PanelbarAjaxMgr" runat="server" > 
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="PanelbarAjaxMgr">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="rpbProduct" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting>   
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
 
    <telerik:RadPanelbar ID="rpbProduct" runat="server" Skin="Outlook" Width="80%" ExpandMode="MultipleExpandedItems"  > 
        <Items> 
            <telerik:RadPanelItem runat="server" Text="Product ID - ">  
            </telerik:RadPanelItem> 
            <telerik:RadPanelItem runat="server" Text="NSN" Expanded="True" Value="hdrItemNSN" Width="90%">  
                <Items> 
                    <telerik:RadPanelItem runat="server" Expanded="True" Value="itemNSN"  Width="90%">  
                        <ItemTemplate> 
                            <uc1:NSN ID="NSNdetail" runat="server" /> 
                        </ItemTemplate> 
                    </telerik:RadPanelItem> 
                </Items> 
            </telerik:RadPanelItem> 
            <telerik:RadPanelItem runat="server" Text="CAGE Code" Expanded="True" Value="hdrItemCageCode" Width="90%">  
                <Items> 
                    <telerik:RadPanelItem runat="server" Value="itemCageCode" Width="90%">  
                        <ItemTemplate> 
                             <ucCage:CageCode ID="CageCodeDetail" runat="server" /> 
                       </ItemTemplate> 
                    </telerik:RadPanelItem> 
                </Items> 
            </telerik:RadPanelItem> 
            <telerik:RadPanelItem runat="server" Text="Disposal Code" Expanded="True" Value="hdritemDisposalCode" Width="100%">  
                <Items> 
                    <telerik:RadPanelItem runat="server" Value="itemDisposalCode" Width="100%">  
                        <ItemTemplate> 
                             <ucDisposal:DisposalCode ID="DisposalCodeDetail" runat="server" /> 
                        </ItemTemplate> 
                    </telerik:RadPanelItem> 
                </Items> 
            </telerik:RadPanelItem> 
            <telerik:RadPanelItem runat="server" Text="Properties" Expanded="False" Width="90%">  
                <Items> 
                    <telerik:RadPanelItem runat="server">  
                        <ItemTemplate> 
                        </ItemTemplate> 
                    </telerik:RadPanelItem> 
                </Items> 
            </telerik:RadPanelItem> 
            <telerik:RadPanelItem runat="server" Text="EPACs" Expanded="False" Width="90%">  
                <Items> 
                    <telerik:RadPanelItem runat="server">  
                        <ItemTemplate> 
                        </ItemTemplate> 
                    </telerik:RadPanelItem> 
                </Items> 
            </telerik:RadPanelItem> 
            <telerik:RadPanelItem runat="server" Text="Toxicity" Expanded="False" Width="90%">  
                <Items> 
                    <telerik:RadPanelItem runat="server">  
                        <ItemTemplate> 
                            <href="#" class="AddItem">Add New Product Toxicity</a> 
                        </ItemTemplate> 
                    </telerik:RadPanelItem> 
                </Items> 
            </telerik:RadPanelItem> 
            <telerik:RadPanelItem runat="server" Text="Composition" Expanded="False" Width="90%">  
                <Items> 
                    <telerik:RadPanelItem runat="server">  
                        <ItemTemplate> 
                            <href="#" class="AddItem">Add New Product Composition</a> 
                        </ItemTemplate> 
                    </telerik:RadPanelItem> 
                </Items> 
            </telerik:RadPanelItem> 
            <telerik:RadPanelItem runat="server" Text="Synonymns" Expanded="False" Width="90%">  
                <Items> 
                    <telerik:RadPanelItem runat="server" Width="90%">  
                        <ItemTemplate> 
                            <href="#" class="AddItem">Add New Product Synonymn</a> 
                        </ItemTemplate> 
                    </telerik:RadPanelItem> 
                </Items> 
            </telerik:RadPanelItem> 
            <telerik:RadPanelItem runat="server" Text="References" Expanded="False" Width="90%">  
                <Items> 
                    <telerik:RadPanelItem runat="server">  
                        <ItemTemplate> 
                            <href="#" class="AddItem">Add New Product Reference</a> 
                        </ItemTemplate> 
                    </telerik:RadPanelItem> 
                </Items> 
            </telerik:RadPanelItem> 
            <telerik:RadPanelItem runat="server" Text="Documents" Expanded="False" Width="90%">  
                <Items> 
                    <telerik:RadPanelItem runat="server">  
                        <ItemTemplate> 
                            <href="#">Upload New Product Document</a> 
                        </ItemTemplate> 
                    </telerik:RadPanelItem> 
                </Items> 
            </telerik:RadPanelItem> 
        </Items> 
    </telerik:RadPanelbar> 
 

The control is line <ucDisposal:DisposalCode ID="DisposalCodeDetail" runat="server" /> 

When I click on any of the panels in this control, it opens then closes.  Also, the skin has no affect on the panel.  Thanks in advance for your help.

Gary
Alex Gyoshev
Telerik team
 answered on 25 Aug 2008
1 answer
66 views
Hi:
    I write a sub on my page.aspx.vb:

Protected Sub RadTreeView_NodeExpand(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadTreeNodeEventArgs) Handles RadTreeView.NodeExpand
    'my program
End Sub

but when i run this page. when i expand any node but i can't     active RadTreeView_NodeExpand,expand handler does not execute.

why.please tell me
Veselin Vasilev
Telerik team
 answered on 25 Aug 2008
1 answer
83 views
Hi, I have a feature request or maybe even a sample demo request.

I would like to see when uploading a file (in particularly an image) that once the file is uploaded a popup image editor window appears to edit the image (scaling, cropping, etc.).  

This feature is part of the Text Editor but I would like to see how to have cropping of an image after upload using only the file uploader.

Thanks.

Perry Robertson
Rumen
Telerik team
 answered on 25 Aug 2008
1 answer
131 views
Is it possible to change the appearance of certain days in Month view dynamically?  I'd like to go through a list of days I have stored and change their background colors to be a different color.

Additionally, is it possible to add text to a day on Month view?  For example, if I'm looking a December, the 25th would have a Christmas Label.  I don't want to use an appointment to display these details.

Thanks,
Kevin Griffin
Peter
Telerik team
 answered on 25 Aug 2008
4 answers
141 views
I am running the following example--no modifications--and it doesn't seem to work correctly:
http://www.telerik.com/help/aspnet-ajax/upload_clientsideonclientprogressupdating.html


When I upload small files, they upload fine, but files that exceed the limit are let through as well, and thus fail on postback.

Any suggestions?

Thanks

Veselin Vasilev
Telerik team
 answered on 25 Aug 2008
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?