Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
188 views
Dear all,

I am using a RadUpload to display a lengthy operation that collecting data, it is performing well.
I need to execute another lengthy process after that using the same upload control, but it doesn't ... it just postback with nothing displayed.
Here is my scenario:
RadProgressContext context = RadProgressContext.Current;  
context.PrimaryTotal = mm.Count.ToString();  
context.SecondaryTotal = mm.Count.ToString();  
 
for (int i = 0; i < mm.Count; i++)  
{  
    context.PrimaryValue = i.ToString();context.PrimaryPercent = i.ToString();  
    context.SecondaryValue = i.ToString();context.SecondaryPercent = i.ToString();  
      
    context.CurrentOperationText = "Generating : " + mm[i].Name;  
    if (!Response.IsClientConnected) break;  
    // My processing goes here ...  
}  
 
I need to do another loop to perform additional processing using the same concept as the above but it doesn't

How can I achieve that ..

Best regards,
Waleed
Waleed Seada
Top achievements
Rank 2
 answered on 11 Jan 2010
1 answer
144 views
i want to combine DotNetNuke - Yaml - RadMenu
but i have a problem with the radmenu.

i created the base html code with the yaml application (http://builder.yaml.de/) - it creates a css based layout and this html layout i implimented into a dotnetnuke skin and there i put the radmenu control.

but the the menu don't works correct - the sub menus are behind my div layout - you can see it at my attached screen.

here is my code at the acsx skin file:

<div class="page_margins">  
    <div class="page">  
        <div id="header">  
            <dnn:LOGO runat="server" ID="dnnLOGO" /> 
        </div> 
        <div id="nav">  
            <dnn:RADMENU runat="server" ID="dnnMENU" SkinsPath="~/DesktopModules/telerik.skinobjects/SkinsRadMenu/" Skin="Office2007" /> 
        </div> 
        <div id="main">  
            <div id="col1">  
                <div id="col1_content" class="clearfix">  
                    <div id="LeftPane" runat="server"></div> 
                </div> 
            </div> 
            <div id="col2">  
                <div id="col2_content" class="clearfix">  
                    <div id="RightPane" runat="server"></div> 
                </div> 
            </div> 
            <div id="col3">  
                <div id="col3_content" class="clearfix">  
                    <div id="ContentPane" runat="server"></div> 
                </div> 
                <!-- IE Column Clearing --> 
                <div id="ie_clearing"></div> 
            </div> 
        </div> 
        <div id="footer">  
            <div id="FooterPane" runat="server"></div> 
            <dnn:USER runat="server" CssClass="Login" ID="dnnUser" /> 
            &nbsp;|&nbsp;<dnn:LOGIN runat="server" CssClass="Login" ID="dnnLogin" /> 
        </div> 
    </div> 
</div> 

thanks for help
regards

michael
dnn
Top achievements
Rank 1
 answered on 11 Jan 2010
3 answers
171 views

I have a radToolBar that I want to show radconfirm when toolbar buttons click, once confirmed, post back to server and execute a function there. 

 

 

function OnToolBarButtonClicked(sender, args) {

 

args.set_cancel(

true);

 

counter = counter + 1;

alert(counter);

 

stopTimer();

btn = args.get_item();

bar = sender;

 

 

 

 

if (btn.get_commandName() == 'Delete') {

 

document.getElementById(

"actionButtonIndex").value = 0

 

radconfirm(

'Are you sure you want to delete the job(s) permanently?', CallBackFn, 330, 100, '', 'Delete Job');

 

 

    }

}

 

 

function CallBackFn(args) {

 

 

var ToolBar = $find("<%= RadToolBar1.ClientID %>");

 

 

 

if (args == true) {

 

btn.click();

 

    }

 

}

 

 

<

 

telerik:RadToolBar ID="RadToolBar1" runat="server" style="display:block; float:none" Skin="Vista" OnClientButtonClicking="OnToolBarButtonClicked" OnButtonClick="ExecPostBackClick">

 

 

 

<Items>

 

 

<telerik:RadToolBarButton runat="server" ImageUrl="Style/Images/menudelete.gif" CommandName="Delete" ToolTip="Delete" />

 

<

 

telerik:RadToolBarButton runat="server" ImageUrl="style/images/menuEnable.gif" CommandName="Enable" ToolTip="Enable" />

 

 

<telerik:RadToolBarButton runat="server" ImageUrl="style/images/menuDisable.gif" CommandName="Disable" ToolTip="Disable" />

 

 

</Items> 

 

 

 

</telerik:RadToolBar>

I noticed that the btn.click doesn't do anything.  It doesn't seem like it posts back to the server either.  I added a counter to debug and found out that btn.click hit OnClientButtonClick instead of server's OnButtonClick.  Is there a workaround that you can provide to me or point me out a better way to code what I want to do.  Thanks yoU!  

 

Pei Chen
Top achievements
Rank 1
 answered on 11 Jan 2010
4 answers
125 views
Hi, I haven't been able to find out why my RadGrid (used in hierarchical mode with one master/detailtable and commanditems on top (add new record)) does not maintain viewstate after adding a new record, either in mastertableview or in the detailtable. All expanded items close after rebinding occurs and I haven't been able to find out why yet.

I have seen this working in the demo page at http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/threelevel/defaultcs.aspx

I'm using Telerik Radcontrols for ASP.NET AJAX Q3 2008.

Thanks in advance for any help on this topic.
Regards, Pieter
psiegers45
Top achievements
Rank 1
 answered on 11 Jan 2010
1 answer
97 views
Hello,
i am evaluating your Gridcontrol. In our scenario, the WebService for retrieving the items for the grid is not reachable from the client only from the server. Can i use the WebService mode in this scenario?

with best regards
Meik Napierski
Schlurk
Top achievements
Rank 2
 answered on 11 Jan 2010
3 answers
127 views
I'm trying to install the latest Telerik for ASP.Net on my Vista x64 dev system, and it gets to the point where it is at the "Installing Files" step and the progress bar is all the way to the right.  At that point, it simply hangs.  I've attached a screenshot of the install.  I have been sitting here for over an hour, and it doesn't appear to be doing anything.  The task manager does not show it as "Not Responding" so it would appear to be doing something but it's not.  Any advice?  This is my second attempt.


Dean Workman
Top achievements
Rank 1
 answered on 11 Jan 2010
0 answers
59 views
2 answers
354 views
Hi,

I have so many problems to run RadControls (Scheduler) in ASP.NET MVC.I have read all Your tutorials and examples, but with no success.One of my last exception was : The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>). So I added everything to RadCodeBlock. It took me to another exception: Control 'ctl00_RadScriptManager1' of type 'RadScriptManager' must be placed inside a form tag with runat=server. I am totaly lost, trying to find the way from Your examples.

Can You give me a hint, what I am doing wrong?
This is my master page:

<%@ Master Language="C#" AutoEventWireup="true" Inherits="System.Web.Mvc.ViewMasterPage" %> 
 
<!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> 
        <asp:ContentPlaceHolder ID="TitleContent" runat="server" /> 
    </title> 
     <telerik:RadCodeBlock runat="server" ID="zkouska1"
    <%= Html.GeneralScript("jquery-1.3.2.min.js")%> 
    <%= Html.GeneralScript("jquery.crm.additionalMethods.js")%> 
    <%= Html.GeneralScript("MicrosoftAjax.js")%> 
    <%= Html.GeneralScript("jquery.cookie.js")%> 
    <%= Html.GeneralScript("jquery-ui-1.7.2.custom.min.js")%> 
    <%= Html.Css("Site.css")%> 
    <%= Html.Css("themes/base/jquery-ui-1.7.2.custom.css")%> 
    <%= Html.Css("menu.css")%> 
    <%= Html.Css("ModalControl.css") %> 
    <%= Html.GeneralScript("formObserver/jquery.formobserver.js")%> 
   <%= Html.GeneralScript("ui/ui.core.js")%> 
    <%= Html.GeneralScript("ui/ui.dialog.js")%> 
    <%= Html.CustomScript("menu/lib/chili-1.7.pack.js")%> 
    <%= Html.CustomScript("menu/lib/jquery.easing.js")%> 
    <%= Html.CustomScript("menu/lib/jquery.dimensions.js")%> 
    <%= Html.CustomScript("menu/jquery.accordion.js")%> 
     
    <%= Html.RegisterJS(ScriptStyleLibrary.Validation) %> 
    <%= Html.RegisterJS(ScriptStyleLibrary.Tabs) %> 
   </telerik:RadCodeBlock> 
   <telerik:RadStyleSheetManager runat="server" ID="RadStyleSheetManager1"
        <StyleSheets> 
            <telerik:StyleSheetReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Skins.TreeView.css" /> 
            <telerik:StyleSheetReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Skins.Forest.TreeView.Forest.css" /> 
            <telerik:StyleSheetReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Skins.Menu.css" /> 
            <telerik:StyleSheetReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Skins.Forest.Menu.Forest.css" /> 
        </StyleSheets> 
    </telerik:RadStyleSheetManager> 
 
    <asp:ContentPlaceHolder ID="headerContent" runat="server" /> 
</head> 
<body> 
 <script type="text/javascript"
     //<![CDATA[ 
     //no conflict with prototype 
     //    jQuery.noConflict(); 
 
     jQuery(document).ready(function() { 
 
         // second simple accordion with special markup 
         $('#navigation').accordion({ 
             active: false
             header: '.head', 
             navigation: true
             event: 'dbclick', 
             fillSpace: false
             animated: 'easeslide' 
         }); 
 
         $(".btn-slide").click(function() { 
             $("#historypanel").slideToggle("slow"); 
             $(this).toggleClass("historyactive"); return false
         }); 
     }); 
 
 
     //]]> 
    </script> 
    <p><a id="top" href="#begin-main-content" class="skip-nav">Skip Navigation</a></p> 
    <div id="pg"
        <div id="hd"
            <div id="hd-toparea"
                <img src="~/Content/Images/headbanner.png" alt="Head banner" runat="server" /> 
                <div id="vistoslogo"
                    <a href="~/Default.aspx" runat="server"
                        <img src="~/Content/Images/vistoscrm.png" alt="VISTOS CRM" runat="server" /> 
                    </a> 
                </div> 
                <table id="flagbox-position"
                    <tr> 
                        <td> 
                            <img id="Img2" src="~/Content/Images/layout/2layout_06.png" alt="Flag box" runat="server" /> 
                        </td> 
                        <td id="flagbox"
                            <%= Html.ActionLinkImage<HomeController>(i => i.Language("cs-CZ"), "~/Content/images/flags/cs.png","ÄŒesky")%> 
                            <%= Html.ActionLinkImage<HomeController>(i => i.Language("cs-SK"), "~/Content/images/flags/sk.png""Slovensky")%> 
                            <%= Html.ActionLinkImage<HomeController>(i => i.Language("en-US"), "~/Content/images/flags/en.png""Anglicky")%> 
                            <%= Html.ActionLinkImage<HomeController>(i => i.Language("fr-BE"), "~/Content/images/flags/fr.png""Francouzsky")%> 
                        </td> 
                        <td> 
                            <img id="Img3" src="~/Content/Images/layout/2layout_08.png" alt="Flag box" runat="server" /> 
                        </td> 
                    </tr> 
                </table> 
            </div> 
        </div> 
        <div id="sd-nav"
            <%= Html.Menu("navigation",true) %> 
        </div> 
        <div id="userstatus"
            <% Html.RenderPartial("LogOnUserControl"); %> 
        </div> 
        <div class="historyPanelWrap"
            <div id="historypanel"
                <%= Html.PageVisitsHistory() %> 
            </div> 
            <div class="slide"
                <a href="#" class="btn-slide">Historie</a> 
            </div> 
        </div> 
        <div id="main-nav"
            <%= Html.ContextMenu("ctxMenu",true) %> 
        </div> 
        <div id="bd"
            <div id="content"
                
                <a href="#begin-main-content" title="begin main content" id="begin-main-content"
                </a> 
                <asp:ContentPlaceHolder ID="MainContent" runat="server" /> 
            </div> 
            <div id="copyright"
               
            </div> 
        </div> 
        <div id="searchPanel"
     
        </div> 
    </div> 
     <telerik:RadScriptManager runat="server" ID="RadScriptManager1" EnableScriptCombine="true" /> 
      <% Html.jQuery().ScriptManager().Render(); %> 
</body> 
</html> 
 
Chad Whitacre
Top achievements
Rank 1
 answered on 11 Jan 2010
1 answer
129 views
When I set my grid to use scrolling and set UseStaticHeaders=true, the grid will render with a bar down the middle of the grid and no data. If I set UseStaticHeaders=false the grid renders normally with data. This is my grid code and the attached jpg is of the grid rendering incorrectly. The version of Telerik.Web.UI.dll is 2009.3.1208.35

                                <telerik:RadGrid ID="dgAuditRecs_rad" runat="server" Width="100%" AllowPaging="false" 
                                    AutoGenerateColumns="false" GridLines="Both">  
                                    <MasterTableView TableLayout="Fixed" DataKeyNames="Transaction_Seq_No">  
                                        <Columns> 
                                            <telerik:GridBoundColumn HeaderText="Claim Seq No" DataField="Transaction_Seq_No" 
                                                HeaderStyle-Width="10%" UniqueName="ClmSeqNo" HeaderStyle-HorizontalAlign="Left" 
                                                ItemStyle-HorizontalAlign="Left">  
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn HeaderText="Audit Action" DataField="Audit_Action" HeaderStyle-Width="10%" 
                                                HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left">  
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridDateTimeColumn HeaderText="Audit Date" DataField="Audit_Date" DataFormatString="{0:MMM dd, yyyy  hh:mm:ss tt}" 
                                                HeaderStyle-Width="15%" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left">  
                                            </telerik:GridDateTimeColumn> 
                                            <telerik:GridBoundColumn HeaderText="User ID" DataField="Hew_User_ID" HeaderStyle-Width="10%" 
                                                HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left">  
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn HeaderText="Sub ID" DataField="Submitter_ID" HeaderStyle-Width="10%" 
                                                HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left">  
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn HeaderText="Trans Type" DataField="Transaction" HeaderStyle-Width="10%" 
                                                HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left">  
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn HeaderText="Audit Desc" DataField="Audit_Log_Desc" HeaderStyle-Width="10%" 
                                                HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left">  
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn HeaderText="File Name" DataField="ANSI_File_Name" HeaderStyle-Width="15%" 
                                                HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left">  
                                            </telerik:GridBoundColumn> 
                                        </Columns> 
                                    </MasterTableView> 
                                    <ClientSettings> 
                                    <Scrolling AllowScroll="true" UseStaticHeaders="true" /> 
                                    </ClientSettings> 
                                </telerik:RadGrid> 
 
Pavlina
Telerik team
 answered on 11 Jan 2010
2 answers
172 views
Hi,
I just installed Telerik Q3-2009. I just create simple page. Which has Raddock and Titlebartemplate. When i run in browser i get wiered design. here is the code and screen.  I am expecting Title Should come as DipenShah. I am just creating sample. Please help me to resolve it.

<%

@ Page Language="C#" AutoEventWireup="true" CodeFile="DefaultCS.aspx.cs" Inherits="DefaultCS" %>

 

<%

@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

 

<!

 

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/tr/xhtml11/dtd/xhtml11.dtd">

 

<

 

html xmlns="http://www.w3.org/1999/xhtml">

 

<

 

head id="Head1" runat="server">

 

</

 

head>

 

<

 

body >

 

 

<form id="form1" runat="server">

 

 

<telerik:RadScriptManager runat="Server" ID="RadScriptManager1" />

 

 

<table>

 

 

<tr>

 

 

<td>

 

 

<telerik:RadDockLayout ID="RadDockLayout1" runat="server">

 

 

<telerik:RadDockZone ID="RadDockZone1" runat="server" Height="300px" Width="300px">

 

 

<telerik:RadDock ID="RadDock1" runat="server" Skin="Web20" Width="300px">

 

 

<TitlebarTemplate>

 

 

<table>

 

 

<tr>

 

 

<td><asp:Label runat="server" ID="label1" Text="Dipen"></asp:Label>

 

 

</td>

 

 

<td><asp:Label runat="server" ID="label2" Text="Shah"></asp:Label>

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

</TitlebarTemplate>

 

 

</telerik:RadDock>

 

 

</telerik:RadDockZone>

 

 

</telerik:RadDockLayout>

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

</form>

 

</

 

body>

 

</

 

html>

 





dipen shah
Top achievements
Rank 1
 answered on 11 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
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
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?