Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
80 views
Dear Telerik Team,

This is an offshoot of this discussion (http://www.telerik.com/community/forums/aspnet-ajax/general-discussions/how-to-disable-the-rad-update-prompt-in-visual-studio.aspx)

Is there a way we can decouple Telerik from integrating from Visual Studio 2010?

Thanks and Regards,

Deepak Vasudevan
Biliana Ficheva
Telerik team
 answered on 29 Jul 2011
3 answers
93 views
Hello!

I have a question:

Can we configure multi-level context menu on a RadTreeeView to behave the following way:

if user clicks on the selected item, which leads to another sub-menu, this sub-menu becomes visible and stays this way (usually all menus disappear when the user takes cursor off them).

Thank you,

Irene Troupansky

Plamen
Telerik team
 answered on 29 Jul 2011
1 answer
72 views
Hello
i have a problem with my radwindows when i put my program in production but in development environment does work correctly.
the error say that: 

This property not used. Please use OnclientClose instead.For more information visit http://www.telerik.com/help/aspnet-ajax/window_programmingusingradwindowasadialog.html


when i visited the page for more information, the page is broken 
i need your help.
bye
Svetlina Anati
Telerik team
 answered on 29 Jul 2011
3 answers
183 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
161 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
36 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
95 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
130 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
104 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
186 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?