Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
157 views
I have tried to insert automatically a session("userID")into a table appointment when i insert an appointment
I make a login and i save userID into a session("userID"), when i insert an appointment i would like inserti automatically a userID that is in session("userID")

table

ID
Subject
Start
End
Recurrence-rule
Data_storage
UserID --------------------> table -> User -> column ->UserID

I use a sqldatasource to insert..

Code

SchedulerDefaulForm.ascx

I add a textbox ->  <asp:TextBox runat="server" ID="UserIDText" Text='<%# Eval("UserID") %>'></asp:TextBox>

SchedulerDefaultForm.ascx.as

I tried to write this code but don't works

 [Bindable(BindableSupport.Yes, BindingDirection.TwoWay)]
        public int  UserID
        {
            get
            {
                return UserIDText.Text;
            }
            set
            {
                UserIDText.Text = Session("userID");
            }

        }
 
There is a method to save automatically a session("userID") into a table appointment when i insert?with a customadvancedtemplate is not easy..i have a problem to develop all that i want...
Rubihno
Top achievements
Rank 1
 answered on 18 Sep 2008
1 answer
81 views
I am using one splitter with two panes. When I use a datapicker in the main content pane and the top pane (navigation) is collapsed, the images for the datepickers stay in place. They do not move up with the main content once the pane is resized.

The datepickers are inside a table which is the container for form input.

<telerik:RadSplitter ID="RadSplitter1" runat="server" Width="100%"
  Height="100%" Orientation="Horizontal" PanesBorderSize="0"
  Skin="Telerik" BorderSize="0" BorderStyle="None" FullScreenMode="True"
  HeightOffset="20" SplitBarsSize="5px">
<telerik:RadPane ID="RadTopPane" runat="server" Height="95px" Width="100%"
    CssClass="aligncenter" MaxHeight="95" MinHeight="95" Scrolling="None">
Navigation is here
</telerik:RadPane>

<telerik:RadSplitBar ID="RadSplitBar" runat="server" CollapseMode="Forward" />

<telerik:RadPane ID="RadContentPane" runat="server" Width="100%"
    BorderStyle="None" CssClass="MainContent">
<asp:contentplaceholder id="MainContent" runat="server">
The form with the RadDatePickers is here.
</asp:contentplaceholder>
</telerik:RadPane>
</telerik:RadSplitter>

I know that's not much to go on. I don't see a way to post or attach screenshots.

Any ideas?

Thanks!
Svetlina Anati
Telerik team
 answered on 18 Sep 2008
4 answers
137 views
Hi,

I have a GridDropDownColumn inside a radgrid. When i go to edit mode of the gird, the items text(say the text is 'Discrepancy Hours found'. Here the text is displayed in 3 lines) are wrapped which is fine. But when i move the cursor to select a wrapped item, only the first line (in the example above, only Discrepancy) is getting highlighted. How to solve this?

Regards

Jack
Daniel
Telerik team
 answered on 18 Sep 2008
1 answer
328 views
Hi,

I've been struggling a bit with a file upload control within an Ajaxified RAD Grid control. I've implemented the workaround described in
http://demos.telerik.com/ASPNET/Controls/Examples/Integration/UploadInAjaxifiedRadGrid/DefaultCS.aspx?product=upload
and
http://www.telerik.com/help/aspnet-ajax/grduploadwithajaxenabled.html

This solution works fine for all but the very first request (= update/insert action). For an unknown reason the FileUpload control is considered to have no associated file during that request. From then on any and all actions do yield the proper result, however.
Note that the only noteworthy difference between the example above and my implementation is that I use the standard .NET FileUpload control rather than the RAD Upload control. I didn't think this could make any difference but perhaps it does?
Iana Tsolova
Telerik team
 answered on 18 Sep 2008
3 answers
118 views
I have noticed a rather dramatic client-side performance difference, depending if the Telerik control is hosted in an ordinary ASP.NET page or in a WSS page. Also, the rendering time is very different depending on the browser, FF 3 is much faster than IE7.

I have a test-case where rendering in WSS is ~4 times slower than in ASP.NET. And FF3 is up to 5 times faster than IE7 in the same test.

Here's some data for rendering a RadTreeView-control with 1365 nodes:
WSS, IE7: 20 secs
ASP.NET, IE7: 6 secs
WSS, FF3: 4 secs
ASP.NET, FF3: 2,7 secs
(I know it's not advisable with so many nodes in a tree, but it makes the performance difference more obvious).

This is just one case where the difference is obvious. All my test-cases, including RadTreeView and RadGrid, shows similar performance.

Can anyone explain why rendering is so much slower in WSS than ASP.NET, and why IE7 is so much slower than FF3?

At first, I thought it could be because, in WSS, the Rad-control lives "deeper" in the DOM, since a WSS-page is filled with tables-in-tables-in-divs-etc-etc. Lots of Telerik-script walks up the DOM using constructs like this:

while (node)
{
    if (dosometest(node)) return true;
    node = node.parentNode;
}
return false;


This could explain the performance difference, since the script would walk all the way up to the DOM-root if dosometest returns false. I turns out that this does not explain the ASP.NET/WSS performance difference, I manually added nested DIVs in an ASP.NET page, to simulate a WSS-page's depth, and there was still a huge performance difference. Nevertheless, perhaps Telerik should consider a more clever condition to test for than while(node), to reduce iterating the DOM-tree unnessarily.

For the IE7 vs FF3 difference, I have no idea why this is.

It would be interesting to know the reason for these differences, but of course much more interesting to know if there's a work-around.

I can provide the code that generates the data above. I should mention that rendering takes place async, I use ASP.NET's UpdatePanel.

/Fredrik
Dimitar Milushev
Telerik team
 answered on 18 Sep 2008
1 answer
100 views
Hi again :-)

How do I commit changes of editing a node without a server roundtrip
only by the click on a save button?

Thank`s
Thomas
Yana
Telerik team
 answered on 18 Sep 2008
1 answer
255 views

As the title says, I need to open a RadWindow with a customised URL, which is generated server-side. How is this possible?

On the old RadWindow (pre-Promoetheous) I would create a Panel and inject JavaScript in it to call the Open() method client-side, but this doesn't seem to work anymore.

At the moment, I have:

<asp:Panel ID="pnlJavascriptInjector" runat="server" /> 
 
 
        <telerik:RadWindowManager ID="radWindowManager" runat="server" Skin="Vista">  
            <Windows> 
                 <telerik:radwindow runat="server" ID="radWindowReport"              
                    VisibleOnPageLoad = "false"                 
                    NavigateUrl = "Report.aspx" 
                    Title = "Import Media Codes"   
                    Height="80%" 
                    Width ="80%" 
                      
                     Behaviors="Reload,Resize,Maximize,Minimize,Close,Move,Pin"  Modal="false"   
                       
                    > 
                 </telerik:radwindow>    
            </Windows> 
        </telerik:RadWindowManager> 

(notice my attemp to have JavaScript injection going on).

Note that this is within an AJAX environment. I do have an AjaxManager:

    <telerik:RadAjaxManager ID="radAjaxManager" runat="server">  
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="radFolderTreeView" EventName="NodeClick">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="h1ReportName" LoadingPanelID="" /> 
                    <telerik:AjaxUpdatedControl ControlID="pReportDescription" LoadingPanelID="radAjaxLoadingPanel" /> 
                    <telerik:AjaxUpdatedControl ControlID="pnlReportParameters" LoadingPanelID="" /> 
                    <telerik:AjaxUpdatedControl ControlID="pnlReportButtons" LoadingPanelID="" /> 
                    <telerik:AjaxUpdatedControl ControlID="pnlJavaScriptInjector" LoadingPanelID="" /> 
                    <telerik:AjaxUpdatedControl ControlID="radWindowManager" LoadingPanelID="" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting>            
        </AjaxSettings>       
    </telerik:RadAjaxManager> 
    <telerik:RadAjaxLoadingPanel ID="radAjaxLoadingPanel" runat="server" Height="75px" 
        Width="75px">  
        <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' 
            style="border: 0px;" /> 
    </telerik:RadAjaxLoadingPanel> 

My code-behind is:

 
            /*
            pnlJavaScriptInjector.Controls.Clear();0
            StringBuilder sb = new StringBuilder();
            sb.Append("\n");
            sb.Append("<script type=\"text/javascript\">\n");
            sb.Append("var oWnd = $find(\"" + radWindowReport.ClientID + "\");\n");
            sb.Append("oWnd.setUrl('" + url + "');\n");
            sb.Append("oWnd.show(); \n");
            sb.Append("</script>\n");
            sb.Append("\n");
            pnlJavaScriptInjector.Controls.Add(new LiteralControl(sb.ToString()));
            */ 
 
            RadWindow radWindow = radWindowManager.Windows[0];  
            radWindow.NavigateUrl = url;  
            radWindow.OpenerElementID = button.ClientID; 

You'll notice I've tried all sorts of ways of doing this!

Any help appreciated.

Svetlina Anati
Telerik team
 answered on 18 Sep 2008
2 answers
106 views
I'm using the trial version of Telerik and I'm getting an error when opening my aspx page in design view.  Problem:  Telerik needs the version of System.Web.Extensions that shipped with .Net 1.1, but the target framework for my application is 3.5.  Solution?
Hardy
Top achievements
Rank 1
 answered on 18 Sep 2008
2 answers
134 views
In this telerik demo they use span styles to format the labels bold and arial font (http://demos.telerik.com/ASPNET/Prometheus/Grid/Examples/GeneralFeatures/PdfExport/DefaultCS.aspx).

I am doing something similar, but when I export to pdf it seems to ignore these spans.  Any ideas?  Note: I cannot use the iem template styles because I want several different styles within the template.

Thanks!
Kim
Top achievements
Rank 1
 answered on 18 Sep 2008
2 answers
132 views
Hi,

I'm currently migrating our application from RadControls for ASP.NET to RadControls for ASP.NET AJAX and am having an issue with the TabStrip.

We used to be able to add close images to our tabstrip using the following:

        function OnTabStripLoad(sender)  
        {  
            AttachTabCloseImages();  
        }  
        function AttachTabCloseImages()  
        {  
            var tabStrip = RadTabStrip1;         
                for (var i = 0; i < tabStrip.AllTabs.length; i++)  
 
                for (var i = 0; i < tabStrip.get_tabs().get_count(); i++)  
                {  
                    var tab = tabStrip.AllTabs[i];  
                      
                    var closeImage = document.createElement("img");                     
                    closeImage.alt = "Close this tab";                      
                    closeImage.src = "Images/tabclose.gif";  
                    closeImage.style.position = "absolute";  
                    closeImage.style.marginTop = "3px";                      
                    closeImage.style.left ="3px";  
                    closeImage.AssociatedTab = tab;  
                    closeImage.onmouseover = function(e)  
                    {  
                         this.src = "Images/tabclosehover.gif";  
                         this.style.marginTop = "3px";                      
                         this.style.left ="3px";  
                    }  
                    closeImage.onmouseout = function(e)  
                    {  
                         this.src = "Images/tabclose.gif";  
                         this.style.marginTop = "3px";                      
                         this.style.left ="3px";  
                    }  
                    closeImage.onclick = function(e)  
                    {  
                        //this.AssociatedTab.Select();  
                        if(this.AssociatedTab.Text == "Welcome")  
                        {  
                            //SI06353 if(confirm("Are you sure you want to logout?"))  
                            //SI06353 {  
                            Logout();  
                            //SI06353 window.parent.close();  
                            //SI06353}  
                        }  
                        else  
                        {             
                            RemoveIndexedTab(this.AssociatedTab.Index);                            
                        }  
                    }  
                    tab.DomElement.firstChild.appendChild(closeImage);  
            }  
        }   
 
<radTS:RadTabStrip ID="RadTabStrip1" runat="server" ScrollChildren="true" 
   ScrollButtonsPosition="Middle" PerTabScrolling="true" Width="90%" 
   OnClientLoad="OnTabStripLoad" OnClientTabSelected="OnTabSelected">  
</radTS:RadTabStrip> 


But after converting the code over to the new version, at the begining of the AttachTabCloseImages() function, $find("<%= RadTabStrip1.ClientID %>"); returns null.

How can I get around this?

I have also attempted to put the following, but since we build our tabs on the server-side code, it doesn't seem to have access to the "Text" value.

<TabTemplate> 
    <img style="margin-left: 10px" src="Images/tabclose.gif" alt="delete" onclick="Logout();" /> 
    <%# DataBinder.Eval(Container, "Text") %> 
</TabTemplate> 
Jim
Top achievements
Rank 1
 answered on 18 Sep 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?