Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
164 views
heya. I have a couple raddatepickers in a form that requires the user to scroll down to. when they use the control, the page is posting back, even though I have all postbacks set to false. is this by design or is there a method that would allow me to not have the form anchor back to the page top.  I don't think i need to have all those postbacks set to false since the defaults are already false.

source example here.
<%@ Page MaintainScrollPositionOnPostback="true"  Language="VB" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="Default2" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server">  
    <title>Untitled Page</title> 
</head> 
<body> 
    <form id="form1" runat="server">  
         <asp:ScriptManager ID="ScriptManager1" runat="server">  
         </asp:ScriptManager> 
    <div style="height:1100px">  
    form stuff  
             </div> <telerik:RadDatePicker  DateInput-AutoPostBack="false" Calendar-AutoPostBack="false" AutoPostBack="false" ID="RadDatePicker1" runat="server" Culture="English (United States)">  
             <Calendar UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" ViewSelectorText="x">  
             </Calendar> 
             </telerik:RadDatePicker> 
    </form> 
</body> 
</html> 
 
Sebastian
Telerik team
 answered on 19 May 2009
1 answer
94 views
Requirement is to display table data in the grid. But when edited couple of columns needs to be edited and others should not be edited. Using radgrid with autogeneratecolumns property to true. Answers are encouraged.

Thanks
Venkat
Dimo
Telerik team
 answered on 19 May 2009
1 answer
125 views

hi

i faced some problem in rad editor flash filemanager.. while i am going to flash file manager... after upload i go for preview but my application its not working ... its not display... other file manger its working fine...  how can i solve this problem pls help me... i given all the path. viewpath,uploadpath eveithing... here by i past my code pls check it

client side code..

<telerik:RadEditor ID="RadEditor1" runat="server" ImageManager-EnableImageEditor="false" EnableEmbeddedSkins="true" Width="98%" AllowScripts="true" height="560px" ToolsFile="../UserControls/EditorTools.xml" OnClientLoad="OnClientLoad">

 

<content>Your Code Here</content>

 

</telerik:RadEditor>

server side code..

RadEditor1.MediaManager.ContentProviderTypeName = GetType(ServerContentProvider).AssemblyQualifiedName

RadEditor1.FlashManager.ContentProviderTypeName = GetType(ServerContentProvider).AssemblyQualifiedName

RadEditor1.ImageManager.ContentProviderTypeName = GetType(ServerContentProvider).AssemblyQualifiedName

RadEditor1.DocumentManager.ContentProviderTypeName = GetType(ServerContentProvider).AssemblyQualifiedName

RadEditor1.TemplateManager.ContentProviderTypeName = GetType(ServerContentProvider).AssemblyQualifiedName

RadEditor1.MediaManager.UploadPaths = New String() {ClientName & "/Objects/Media", ClientName & "/Objects/" & WebSiteName & "/Media"}

RadEditor1.FlashManager.UploadPaths = New String() {ClientName & "/Objects/Flash", ClientName & "/Objects/" & WebSiteName & "/Flash"}

RadEditor1.ImageManager.UploadPaths = New String() {ClientName & "/Objects/Images", ClientName & "/Objects/" & WebSiteName & "/Images"}

RadEditor1.DocumentManager.UploadPaths = New String() {ClientName & "/Objects/Documents", ClientName & "/Objects/" & WebSiteName & "/Documents"}

RadEditor1.TemplateManager.UploadPaths = New String() {ClientName & "/Objects/Templates", ClientName & "/Objects/" & WebSiteName & "/Templates"}

RadEditor1.MediaManager.ViewPaths = New String() {ClientName & "/Objects/Media", ClientName & "/Objects/" & WebSiteName & "/Media"}

RadEditor1.FlashManager.ViewPaths = New String() {ClientName & "/Objects/Flash", ClientName & "/Objects/" & WebSiteName & "/Flash"}

RadEditor1.ImageManager.ViewPaths = New String() {ClientName & "/Objects/Images", ClientName & "/Objects/" & WebSiteName & "/Images"}

RadEditor1.DocumentManager.ViewPaths = New String() {ClientName & "/Objects/Documents", ClientName & "/Objects/" & WebSiteName & "/Documents"}

RadEditor1.TemplateManager.ViewPaths = New String() {ClientName & "/Objects/Templates", ClientName & "/Objects/" & WebSiteName & "/Templates"}

Rumen
Telerik team
 answered on 19 May 2009
4 answers
142 views
I have a menu that is being driven by a site map data source.  It works great but I need to have the first item offset from the left by the 48px.  What is the best way to create this offset?


Thanks in advance!
Ed
Top achievements
Rank 1
 answered on 19 May 2009
0 answers
117 views
hi all!

Probably there is already an answer for my question but... you know have a short time:)
So here is the problem: we start using Fiddler to finde the most weak places and some of them is lots of connection to the server in case of a big amout of css and js files. We are not using RadManagers and all our skins are custom. so the question is there any simple way how RadManagers can help us? moving every css to embeded resources doesn sound good. and I dont want to replace standart ajax ScriptManager.

Any advice would be helpfull. thanks!
Leonid Krivoruchko
Top achievements
Rank 1
 asked on 19 May 2009
5 answers
203 views
I profiled our app and found telerik controls took a  lot of time in RegisterScriptDescriptors.
Also RadEditor spends much time in FillDefaultDialogDifinitions in EmbededResoureceLocator.GetString()
Is it ok? and is it any way to optimize it?
Steve Barak
Top achievements
Rank 1
 answered on 19 May 2009
7 answers
287 views


Hello everyone,

I'm trying to make a sample page to see how RadWindow could be used.

I dragged a RadScriptManager with ID = RadScriptManager1, then added a RadWindowManager to the page.

and wrote the following code to pop-up the window when needed with some Info.

// I tried both ways  
 
RadScriptManager.RegisterStartupScript(this, RadScriptManager1.GetType(), "ALERT", "radalert('Testing RadWin!', 330, 100);", true); 
 
//============================================================== 
 
ScriptManager.RegisterStartupScript(this, RadScriptManager1.GetType(), "ALERT", "radalert('Testing RadWin!', 330, 100);", true); 

but I'm getting the following javascript error.

Microsoft JScript runtime error: 'this._windows.length' is null or not an object
Microsoft JScript runtime error: Object doesn't support this property or method

Any hint would really be appreciated.

Thank you.
Wveimar
Top achievements
Rank 1
 answered on 19 May 2009
3 answers
171 views
Hi,

Earlier I was using RadEditor for MOSS 4.5.6  (Moss lite version) .I need to use RadEditor in a custom WebPart so i have purchased developer licensed version of RadControls for Asp.net Ajax and downloaded "RadControls_for_ASP.NET_AJAX_2009_1_402_dev.exe".
After installation i have used RadEditor in an asp.net usercontrol as suggested in this thread . 
RadEditor control is not properly displayed in IE browser(only a blank area ), while other browsers (Google chrome,safari,Firefox etc)are displaying control properly but none of the tools are working in control.

Is there anything i am doing wrong? 

Thanks,
Puneet
Stanimir
Telerik team
 answered on 19 May 2009
2 answers
211 views
I have a grid that has clientside selecting enabled. I have a client select column and also a grid template column which has an item template of an asp checkbox. I want to wire the onrowdeselected client event so that when the row is deselected, the grid template column checkbox is also un selected. I need both checkboxes since they both mean different things. The clientselectcolumn indicated that this record is selected, and the template column is used as a flag to save in a certain way. If the record is not selected, the flag has no meaning since it won't be saved, so I want to uncheck it. How do I uncheck the asp checkbox on deselecting the row? Here is my code:

Here is my grid:
               <telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True"  AllowMultiRowSelection="True" 
                AllowSorting="True" DataSourceID="SqlDataSource1" GridLines="None" OnPreRender="packageGrid_PreRender" 
                 OnItemDataBound="packageGrid_ItemDataBound"
                <ClientSettings> 
                 <Selecting AllowRowSelect="true" EnableDragToSelectRows="true" /> 
                 <ClientEvents OnRowDeselected="rowDeselected" /> 
                </ClientSettings> 
                <HeaderContextMenu EnableTheming="True" > 
                    <CollapseAnimation Duration="200" Type="OutQuint" /> 
                </HeaderContextMenu> 
                <MasterTableView AutoGenerateColumns="False" DataSourceID="SqlDataSource1"
                    <RowIndicatorColumn> 
                        <HeaderStyle Width="20px" /> 
                    </RowIndicatorColumn> 
                    <ExpandCollapseColumn> 
                        <HeaderStyle Width="20px" /> 
                    </ExpandCollapseColumn> 
                    <Columns> 
                        <telerik:GridClientSelectColumn UniqueName="rowSelectColumn" HeaderText="Selected"</telerik:GridClientSelectColumn> 
                        <telerik:GridBoundColumn DataField="package_id" Display="false"></telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="package_name" 
                            HeaderText="Package" SortExpression="package_name"  
                            UniqueName="package_name"
                        </telerik:GridBoundColumn> 
                    
                        <telerik:GridBoundColumn DataField="package_cd" HeaderText="Package code"  
                            SortExpression="package_cd" UniqueName="package_cd"
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="descriptions" HeaderText="descriptions"  
                            SortExpression="descriptions" UniqueName="descriptions" Display="false"
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="pkg_type" HeaderText="pkg_type"  
                            SortExpression="pkg_type" UniqueName="pkg_type" Display="false"
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="active" HeaderText="Active"  
                            SortExpression="active" UniqueName="active"
                        </telerik:GridBoundColumn> 
                        <telerik:GridTemplateColumn DataField="OPENS_transform_flag" UniqueName="OPENS_transform_flag" HeaderText="Write to OPENS AS IS"
                         <ItemTemplate> 
                          <asp:CheckBox runat="server" ID="OPENS_transform_flag" /> 
                         </ItemTemplate> 
                        </telerik:GridTemplateColumn> 
                        <telerik:GridBoundColumn DataField="end_date" DataType="System.DateTime" Display="false"  
                            HeaderText="end_date" SortExpression="end_date" UniqueName="end_date"
                        </telerik:GridBoundColumn> 
                    </Columns> 
                     
                </MasterTableView> 
                <FilterMenu EnableTheming="True"
                    <CollapseAnimation Duration="200" Type="OutQuint" /> 
                </FilterMenu> 
            </telerik:RadGrid> 

And here is the javascript for the onrowdeselected event. I do not know what to put for the last line to uncheck the checkbox...

        function rowDeselected(sender, eventArgs) { 
 
            var dataItem = $get(eventArgs.get_id()); 
            var grid = sender; 
            var MasterTable = grid.get_masterTableView(); 
            var row = MasterTable.get_dataItems()[eventArgs.get_itemIndexHierarchical()]; 
            var cell = MasterTable.getCellByColumnUniqueName(row, "OPENS_transform_flag"); 
 
            //  ??? What do I put here to uncheck this cell??? // 
 
        } 

Laura
Top achievements
Rank 1
 answered on 19 May 2009
0 answers
82 views
Hello,

Can TreeView nodes have more than one line of text? I'm asking because I have about 240px for a TreeView and some nodes are preety long so vertical bar is appearing. is there any way to make long text in nodes to split into two lines?

Setting CSS:
.RadTreeView  
{  
    overflowhidden !important;  
}  
only "cuts" TreeView and hides vertical bar and I think this is not a good solution.

Thanks

EDIT: OK. I've found solution for my problem:

.RadTreeView { 
    whitewhite-spacenormal !important; 
    overflowhidden !important; 

GrZeCh
Top achievements
Rank 2
 asked on 19 May 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
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
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?