Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
202 views
Hi

I am using Radwindow as a modal popup for inline form editing.  I have created a wizard, using standard 'asp:panels', inside the ContentTemplate of the Radwindow to break up the form in to smaller chunks. In each asp:panel there is a 'next' and 'back' button which is used to navigate between them. These buttons control server side functions to show/hide the various panels during navigation, and perform some form validation etc. in the background.  I need this server side functionality. 

The Radwindow is initially hidden on page load, but the 'ButtonAddNew' button is clicked to show it, ready to add a new item.

The problem is that during navigation between panels the page flickers badly in Chrome, Opera and IE (not in Firefox) - I guess it is posting back on the navigation button click.  The panels always appear in the end, but the flicker is annoying as a user experience.  I have tried putting a RadAjaxPanel around the RadWindowManager to try and stop the flicker - and get a smooth navigation -  but this is not working. 

Any help would be much appreciated.  I have summarised some of the main code below.  The Telerik controls are Q3 2010 and it's ASP.NET 3.5.

Thanks in advance.

Kevin

=====================================================
Note: the Radwindow is in a usercontrol.  In the Master page there is  a standard ScriptManager  - I'm using this as there are also some 'ASP.NET Control Toolkit' controls on some of the pages:

<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>




User control with Radwindow wizard:
 
<%@ Control language="VB" AutoEventWireup="false" CodeFile="gallery.ascx.vb" Inherits="Gallery" %>
<%@ Reference VirtualPath="~/sites_admin/admin.master" %>
 
 
<!-- this buttons opens the popup -->
<asp:Button ID="ButtonAddNew" runat="server" CausesValidation="false" OnClick="ButtonAddNew_Click" />
 
 
 
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
 
 
 
<telerik:RadWindowManager ID="RadWindowManager01" Modal="true" runat="server">
        <Windows>
 
            <telerik:RadWindow ID="RadWindowImageEdit"
            Skin="kSitefinity"
            AutoSize="true"
            EnableEmbeddedSkins="false"
            EnableEmbeddedBasestylesheet="false"
            Behaviors= "Close" 
            VisibleTitlebar="true"
            VisibleStatusbar="false"
            KeepInScreenBounds="true"      
            EnableShadow="false"
            VisibleOnPageLoad = "False"  
            runat="server">
 
            <ContentTemplate>
  
  <div style="width: 900px;  padding: 6px;">
 
 
 
 
 
<asp:panel id="panel01"  runat="server">
                           
        <!--Form part 1 content here -->         
  
<asp:button id="ButtonNext01"  ValidationGroup="vgText" CausesValidation="True" runat="server"
  OnClick="OnClick_ButtonNext01"/>                                                   
 
</asp:panel>
 
 
 
 
 
 
 
<asp:panel id="panel02"  runat="server">
                           
        <!--Form part 2 content here -->         
  
<asp:button id="Buttonback02"  ValidationGroup="vgText" CausesValidation="True" runat="server"
 OnClick="OnClick_Buttonback02"/>                                                   
 
 </asp:panel>
 
 
 
 
</div>
</ContentTemplate>
 
            </telerik:RadWindow>
 
 
 
        </Windows>
    </telerik:RadWindowManager>                                               
        
       </telerik:RadAjaxPanel>
 
 
 
 
 
 
 
 
CODE BEHIND:
 
'this pops up the window the first time ready to add a new item
Protected Sub ButtonAddNew_Click(ByVal sender As Object, ByVal e As EventArgs)
 
       'some server side code here
 
        'show the modal popup
        RadWindowImageEdit.VisibleOnPageLoad = True
 
End Sub
 
 
 
 
'panel navigation
Protected Sub OnClick_ButtonNext01(ByVal sender As Object, ByVal e As EventArgs)
   
'some validation code here
 
panel02.Visible = True
panel01.Visible = False
 
End Sub
 
 
 
 
 
 
Protected Sub OnClick_Buttonback02(ByVal sender As Object, ByVal e As EventArgs)
   
'some validation code here
 
panel02.Visible = False
panel01.Visible = True
 
End Sub
Svetlina Anati
Telerik team
 answered on 29 Jul 2011
2 answers
193 views
Hi

Grid dynamically fill data, the dynamic Aggregate add dynamic columns, the problem starts here. No problem when a single group, multiple groups is by attaching the calculations do not understand the results.



<telerik:RadGrid  ShowFooter="True" ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowSorting="True" GridLines="None" ShowGroupPanel="True" Skin="Web20" PageSize="15">
<MasterTableView ShowGroupFooter="True" GroupLoadMode="Client"  CellSpacing="-1"></MasterTableView>
<ClientSettings AllowDragToGroup="True"></ClientSettings>
<ExportSettings OpenInNewWindow="True" ExportOnlyData="True"  FileName="DataExport"></ExportSettings>
</telerik:RadGrid>

Protected Sub RadGrid1_ColumnCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridColumnCreatedEventArgs) Handles RadGrid1.ColumnCreated
 
           If e.Column.DataType.Name = "DateTime" Then
               CType(e.Column, Telerik.Web.UI.GridBoundColumn).DataFormatString = "{0:dd/MM/yyyy}"
           End If
 
           If e.Column.DataType.Name = "Decimal" Or e.Column.DataType.Name = "Double" Then
               CType(e.Column, Telerik.Web.UI.GridBoundColumn).DataFormatString = "{0:N3}"
               CType(e.Column, Telerik.Web.UI.GridBoundColumn).Aggregate = Telerik.Web.UI.GridAggregateFunction.Sum
           End If
 
           If e.Column.ColumnType = "GridBoundColumn" And counteklendi = False Then
               CType(e.Column, Telerik.Web.UI.GridBoundColumn).Aggregate = Telerik.Web.UI.GridAggregateFunction.Count
               CType(e.Column, Telerik.Web.UI.GridBoundColumn).FooterText = "Total : "
               counteklendi = True
           End If
 
       End Sub


You can see pictures attached.


Mehmet
Top achievements
Rank 1
 answered on 29 Jul 2011
1 answer
51 views
Hi ,

    I have a master Page and two hyper links in that.When i click one Link i am opening rad windowpopup.Till now this is fine.Now if i goto parent page without closing popup and clicking on second hyper link.That 2nd hyper link redirects to another page.This time my rad Popup is disappearing.I want to keep open the Popup when i click on 2nd heyper link also.Something like the popup i.e. opened should be independent of the parent page once after it is opened.Please Let me know how can i acheive this using rad window popup.I am using IE8 browser.

Vinil Narla
Svetlina Anati
Telerik team
 answered on 29 Jul 2011
3 answers
122 views
Hi,

I have two columns available for creating a heirarchical treeview:

PositionNumber ReportsTo
10030          10004
10122          10030
10838          10030
10923          10030
11015          10030
11015          10030
11229          10030
11422          10030
11453          10030

When binding, I get the error "These columns don't currently have unique values".

I understand the error. There are two '11015' PositionNumber values. These are two distinct records thast have the same position number... How can I make my treeview use the values as set out above?

Actually, I don't care what the control is just so long as I can view my data heirarchically presented. If another control is more suited, do let me know!

Thanks,
Richard
Dimitar Terziev
Telerik team
 answered on 29 Jul 2011
1 answer
149 views
I use RAD async upload control.
how to convert that file into byte using async upload control.
and how how to convert big files into bytes and store into sql(file size 300MB)


  
Peter Filipov
Telerik team
 answered on 29 Jul 2011
4 answers
122 views

dear all

have a good day

i've a radschadualr in which students segister there schadual.

this schadual consists of substances each one is (leacture-tutorial-lab).

what i need is forcing the student to choose these sub categories (leacture-tutorial-lab) before leaving to choose new subject. and if he tries an error msg popup saying that "you should choose all substance groop- please complete your choice".

here is the code i wrote but it does't work.

 

if
 
(this.treeView.SelectedNode == null)
 
return;
 
if (this.treeView.SelectedNode.Value != "m")
 
return;
 
string s = this.treeView.SelectedNode.Text;
 
string corsnode = this.treeView.SelectedNode.ParentNode.Text;
 
string cors_id = corsnode.Substring(0, corsnode.IndexOf('-') - 1).Trim();
 
string stu_id = Session["test"].ToString();
 
OracleConnection conn = new OracleConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString);
 
try
 {
 conn.Open();
 OracleCommand cmd = new OracleCommand("COMPLETE_GROUP_TYPE");
cmd.CommandType =CommandType.StoredProcedure;
 cmd.Connection = conn;
 cmd.Parameters.Add("COURSEID", OracleType.Char).Value = cors_id.ToString();
cmd.Parameters.Add("STUDENTID", OracleType.Char).Value = stu_id.ToString();
 cmd.ExecuteNonQuery();
 }
 catch (Exception ex)
 {
 Label2.Text ="ERROR."+ ex.Message;
 }
 finally
 {
 conn.Close();
 }
Plamen
Telerik team
 answered on 29 Jul 2011
4 answers
220 views
I have the following javascript function for the OnClientTransferred event of a RadListBox. This function works fine with Firefox and Chrome but I get a  javascript error with IE 8.
Here is my javascript.
     <telerik:RadCodeBlock ID="RadCodeBlockMain" runat="server"
<script type="text/javascript"
           function OnClientTransferredHandler(sender, e) { 
               var myitems; 
               var radbox = $find('<%= CurrentlyTransferredValues.ClientId %>'); 
               var radbox2 = $find('<%= SourceListBox.ClientId %>'); 
 
               myitems = e.get_items(); 
               myitems.forEach(function(item) { radbox.set_value(radbox.get_value() + item.get_value() + ","); }); 
               radbox2.set_value(e.get_sourceListBox().get_id()); 
                
           } 
 </script> 
   </telerik:RadCodeBlock> 
The error from IE 8 is the following.
"Microsoft Jscript runtime error: Object doesn't support this property or method"
It seems to fail at line with the forEach statement.

Thanks in Advance



Dimitar Terziev
Telerik team
 answered on 29 Jul 2011
1 answer
153 views
In release 2011.1 519 an issue was fixed according to Telerik's release notes: Fixed: RadMultiPage: RenderSelectedPageOnly property was applied multiple times and too early in the Page Lifecycle, setting non-selected PageViews to Visible=false and causing troubles persisting state of some of the controls inside the views

This change seems to be causing me problems now.
It seems that the PageView only becomes visible now very late in the cycle! During Page.LoadComplete the selected page view seems to still be invisible, only becoming visible by PreRender.

This is making it difficult to deal with child controls of the PageView as the controls appear to be invisible until Page.PreRender, by which stage it is often too late to handle certain tasks.

Can you confirm this is correct?

The old behaviour wasn't causing me problems (as far as I am aware). Perhaps I could work around these new changes by manually setting the PageView to visible in my own code. Do you know of any workaround?
Dimitar Terziev
Telerik team
 answered on 29 Jul 2011
1 answer
107 views
Hello,

To test your RadWindow component  for ajax, asp.net, i have create a page and did the same thing at the following exemple: http://demos.telerik.com/aspnet-ajax/window/examples/default/defaultcs.aspx.  But i didn't get the same result: I don't have any window display in my page!
I have taken a look at  "http://www.telerik.com/help/aspnet-ajax/window-overview-migrating-from-classic-to-prometheus.html"  to see  if there is any step missed. The explaination was not so clear to me since the links redirect  to an error page "http://www.asp.net/ajaxlibrary/act.ashx".

You may have an idea about the origin of this problem. Thank You for help.

E.Bougnon
Svetlina Anati
Telerik team
 answered on 29 Jul 2011
2 answers
110 views
Is it possible to add an OnError ClientEvent to the DatePicker control when a GridDateTimeColumn is opened for Edit?

there are 3 clientevents - OnDateSelected, OnPopupOpening, OnPopupClosing but not OnError

thanks
Marianne
Elliott
Top achievements
Rank 2
 answered on 29 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?