Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
151 views
Hi,

It seems that i ran into a bug in de scheduler control.
We are using the schedulat control with webservices and with the advanced form.

When i create a new recurring appointment the image which indicate that the appointment is recurring is not visible on the first appointment in the recurrence serie. This also means that when i double click the first appointment to edit, i won't get the message that i'm editing a recurring appointment. The same happens when i'm deleting the first appointment.

Please let me know if this is a bug and if you can fix it?
Peter
Telerik team
 answered on 20 Aug 2009
1 answer
125 views
I have two RadTreeview and was wondering after drag drop one node to the other can I still keep that nope available after the drop.  Every time it gets removed even if I dont add .Owner.Nodes.Remove.  

Also, is there a way to validate (customvalidator) to make sure that the node getting brought over is not the same as another node that is already in the node list?



 
Veselin Vasilev
Telerik team
 answered on 20 Aug 2009
10 answers
175 views
Hi,

I have a Treeview which is loading from a webserver, which works perfectly. I currently have it connected to a AJAX manager. For renameing of nodes it works perfectly.

For drag and drop I have connected the relevant events up to update my database, which works fine. I can only get the treeview to update by doing a full page refresh.

I have used the methods on the server as described in this thread ( http://www.telerik.com/community/forums/aspnet-ajax/treeview/radtreeview-drag-drop-serverside.aspx ) but after moving a node - it does not reflect its new position until i force a full page refresh.

here is the markup for the treeview

<telerik:RadTreeView runat="server" ID="Treeview" AllowNodeEditing="True"  
                            EnableDragAndDrop="True" EnableDragAndDropBetweenNodes="True" OnClientNodeClicking="onNodeClicking" 
                            onnodedrop="Treeview_NodeDrop" onnodeedit="Treeview_NodeEdit"  
                    CheckBoxes="False">                      
                            <WebServiceSettings Path="WebServices/GroupsDataSource.asmx" Method="GetGroupNodes" />                         
                        </telerik:RadTreeView>          

page load

protected void Page_Load(object sender, EventArgs e) 
        { 
            if (Request.Browser.Browser == "Firefox"
                Response.Cache.SetNoStore(); 
 
            if ((bool)Session["LoggedIn"] == false
                Response.Redirect("Default.aspx?referer=" + Request.FilePath); 
             
            if (!IsPostBack) 
            { 
                LoadRootNodes(Treeview, TreeNodeExpandMode.WebService); 
            } 
             
        } 
 
        private void LoadRootNodes(RadTreeView treeView, TreeNodeExpandMode expandMode) 
        { 
            WebSession webSess = (WebSession)Session["WebSession"]; 
 
            string qry = string.Format(DB.SQLSelectHeirachyMoveNull, ConfigurationConsts.ExtensionGroupViewId); 
            DataTable dtGroups = webSess.DataSource.RetrieveDataTable(qry); 
 
            foreach (DataRow aRow in dtGroups.Rows) 
            { 
                RadTreeNode newNode = new RadTreeNode(); 
                newNode.Text = aRow["NAME"].ToString(); 
                newNode.Value = aRow["ID"].ToString(); 
                newNode.Attributes.Add("GROUPVIEWID", Convert.ToString(aRow["GROUPVIEWID"])); 
                newNode.ExpandMode = TreeNodeExpandMode.WebService; 
                treeView.Nodes.Add(newNode); 
            }                             
        } 

 and the drag drop functions

        protected void Treeview_NodeDrop(object sender, RadTreeNodeDragDropEventArgs e) 
        { 
            WebSession webSess = (WebSession)Session["WebSession"]; 
            webSess.MasterSystem.GroupsSystem.MoveNode(e.SourceDragNode.Value,e.DestDragNode.Value); 
           
            RadTreeNode sourceNode = e.SourceDragNode; 
            RadTreeNode destNode = e.DestDragNode; 
            RadTreeViewDropPosition dropPosition = e.DropPosition; 
 
            if (destNode != null//drag&drop is performed between trees 
            { 
 
                if (sourceNode.TreeView.SelectedNodes.Count <= 1) 
                { 
                    PerformDragAndDrop(dropPosition, sourceNode, destNode); 
                } 
                else if (sourceNode.TreeView.SelectedNodes.Count > 1) 
                { 
                    foreach (RadTreeNode node in sourceNode.TreeView.SelectedNodes) 
                    { 
                        PerformDragAndDrop(dropPosition, node, destNode); 
                    } 
                } 
 
                destNode.Expanded = true
 
            } 
             
             
        } 
 
        private void PerformDragAndDrop(RadTreeViewDropPosition dropPosition, RadTreeNode sourceNode, 
         RadTreeNode destNode) 
        { 
            if (sourceNode.Equals(destNode) || sourceNode.IsAncestorOf(destNode)) 
            { 
                return
            } 
            sourceNode.Owner.Nodes.Remove(sourceNode); 
 
            switch (dropPosition) 
            { 
                case RadTreeViewDropPosition.Over: 
                    // child 
                    if (!sourceNode.IsAncestorOf(destNode)) 
                    { 
                        destNode.Nodes.Add(sourceNode); 
                         
                    } 
                    break
 
                case RadTreeViewDropPosition.Above: 
                    // sibling - above                     
                    destNode.InsertBefore(sourceNode); 
                    break
 
                case RadTreeViewDropPosition.Below: 
                    // sibling - below 
                    destNode.InsertAfter(sourceNode); 
                    break
            }             
        } 
 

any help would be appreciated.
Toby
Top achievements
Rank 1
 answered on 20 Aug 2009
1 answer
206 views
I am unable to set focus to a control in RadPanelItem defined in a user  ascx control.

Example is given below :

Telerik.Web.UI.

RadPanelBar RP = (Telerik.Web.UI.RadPanelBar)Usercontrol.FindControl("Criteria");

 

Telerik.Web.UI.

RadPanelItem RI = (Telerik.Web.UI.RadPanelItem)RP.FindItemByValue("Name");

 

 

 

RadAjaxManager.FocusControl(RI.Items[0].FindControl(

"tb1"));

 

 

 

 

 

 

Princy
Top achievements
Rank 2
 answered on 20 Aug 2009
7 answers
138 views
How do I get rid of the extra pixels or padding at the bottom left and right corner?



Thanks,
Khanh
Svetlina Anati
Telerik team
 answered on 20 Aug 2009
7 answers
384 views
Hi,

I'm using the trial version of 2008.3 1105 and trying to use a radwindow as a dialog, exactly in the manner described in your online documentation.

function ImagePickerClose(sender, args){  
    if (args.get_argument()!= null)  
          {  
            alert("'" + sender.get_name() + "'" + " was closed and returned the following argument: '"+ args.get_argument() + "'");  
          }  

I get an error on the line 'if (args.get_argument()!=null' saying 'object does not support this property or method' and debugging in VS shows that the object is empty, although the 'sender' object has the correct details about the radwindow that was closed.

The code in my dialog.aspx page is as follows:

            function SaveChosenImage(){  
                var oWnd = GetRadWindow();  
                var picID = $get('<%= thisPicID.ClientID %>');  
                alert(picID.value);  
                oWnd.close(picID.value);  
            }  
 

and the alert shows that the correct argument is being passed to the oWnd.close statement. The window closes correctly.

Is this a limitation of the version I am using? Is there any other way to return an argument from the RadWindow?

Andy
Svetlina Anati
Telerik team
 answered on 20 Aug 2009
1 answer
421 views
hi,

I am using radgrid with followin properties.


 

<ccRad:AppGrid ID="gridVoice" runat="server" Skin="Alg" Width="100%" EnableEmbeddedSkins="False"

 

 

GridLines="None" ShowHeader="True" HeaderStyle-Height="29" HeaderStyle-VerticalAlign="Middle"

 

 

ToolBarId="toolBarVoice" OnNeedDataSource="gridVoice_NeedDataSource" AutoGenerateColumns="false"

 

 

ViewColumns="true" ViewColumnDoPostback="true" OnPreRender="gridVoice_PreRender"

 

 

EnableLinqExpressions="true">

I filtered one of the columns. Then I reordered the column. in reorder event I rebind the grid as follows.

 

void

 

AppGrid_ColumnsReorder(object source, GridColumnsReorderEventArgs e)

 

{

 

this.DataBind();
}

here I am getting following exception.

 

An unexpected error occurred during the processing of your request.

Possible causes for this could be:

  - You might have entered unsupported characters like "<", or invalid data on the page. Kindly check the input and try again.

  - The requested feature might not be supported or valid.

 

You can contact your administrator for further assistance.

 

Error: Expression expected

Source: Telerik.Web.UI -    at Telerik.Web.UI.ExpressionParser.ParsePrimaryStart()

   at Telerik.Web.UI.ExpressionParser.ParsePrimary()

   at Telerik.Web.UI.ExpressionParser.ParseUnary()

   at Telerik.Web.UI.ExpressionParser.ParseMultiplicative()

   at Telerik.Web.UI.ExpressionParser.ParseAdditive()

   at Telerik.Web.UI.ExpressionParser.ParseComparison()

   at Telerik.Web.UI.ExpressionParser.ParseLogicalAnd()

   at Telerik.Web.UI.ExpressionParser.ParseLogicalOr()

   at Telerik.Web.UI.ExpressionParser.ParseExpression()

   at Telerik.Web.UI.ExpressionParser.ParseParenExpression()

   at Telerik.Web.UI.ExpressionParser.ParsePrimaryStart()

   at Telerik.Web.UI.ExpressionParser.ParsePrimary()

   at Telerik.Web.UI.ExpressionParser.ParseUnary()

   at Telerik.Web.UI.ExpressionParser.ParseMultiplicative()

   at Telerik.Web.UI.ExpressionParser.ParseAdditive()

   at Telerik.Web.UI.ExpressionParser.ParseComparison()

   at Telerik.Web.UI.ExpressionParser.ParseLogicalAnd()

   at Telerik.Web.UI.ExpressionParser.ParseLogicalOr()

   at Telerik.Web.UI.ExpressionParser.ParseExpression()

   at Telerik.Web.UI.ExpressionParser.Parse(Type resultType)

   at Telerik.Web.UI.GridDynamicQueryable.Where(IQueryable source, String predicate, Object[] values)

   at Telerik.Web.UI.GridDataTableFromEnumerable.FillData35()

   at Telerik.Web.UI.GridDataTableFromEnumerable.FillData()

   at Telerik.Web.UI.GridResolveEnumerable.Initialize()

   at Telerik.Web.UI.GridResolveEnumerable.EnsureInitialized()

   at Telerik.Web.UI.GridEnumerableFromDataView..ctor(GridTableView owner, IEnumerable enumerable, Boolean CaseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields)

   at Telerik.Web.UI.GridDataSourceHelper.CreateGridEnumerable(GridTableView owner, IEnumerable enumerable, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields)

   at Telerik.Web.UI.GridDataSourceHelper.GetResolvedDataSource(GridTableView owner, Object dataSource, String dataMember, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields)

   at Telerik.Web.UI.GridTableView.get_ResolvedDataSource()

   at Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource)

   at Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource)

   at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data)

   at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)

   at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)

   at System.Web.UI.WebControls.DataBoundControl.PerformSelect()

   at Telerik.Web.UI.GridTableView.PerformSelect()

   at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()

   at Telerik.Web.UI.GridTableView.DataBind()

   at Telerik.Web.UI.RadGrid.DataBind()

   at Telerik.Web.UI.RadGrid.AutoDataBind(GridRebindReason rebindReason)

   at Telerik.Web.UI.RadGrid.Rebind()

   at Allegiance.Efm.WebApp.Controls.Voice.Inbox.gridVoice_PreRender(Object sender, EventArgs e) in D:\Allegiance\Development\Source\EFM\WebApp\Controls\Voice\Inbox.ascx.cs:line 1997

   at System.Web.UI.Control.OnPreRender(EventArgs e)

   at System.Web.UI.WebControls.BaseDataBoundControl.OnPreRender(EventArgs e)

   at Telerik.Web.UI.RadCompositeDataBoundControl.OnPreRender(EventArgs e)

   at Telerik.Web.UI.RadGrid.OnPreRender(EventArgs e)

   at Allegiance.Efm.WebApp.Controls.Rad.AppGrid.OnPreRender(EventArgs e) in D:\Allegiance\Development\Source\EFM\WebApp\Controls\Rad\AppGrid.cs:line 584

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

 
Please help me to resolve this issue.

Mira
Telerik team
 answered on 20 Aug 2009
1 answer
126 views
Hello,

I have a question regarding persistence of a tab that's dynamically added to a radTabStrip contained in a master page.

  • I have a masterPage (master1.master) that contains a radTabStrip control (masterTabStrip).  masterTabStrip contains a single tab created at design time: text is "Home", navigateURL is "Home.aspx"
  • I have an aspx page (Home.aspx) that uses master1.master.
  • On Home.aspx's page_load event, I check if IsPostBack == false.  If it is false a new tab is dynamically added to masterTabStrip with text "Page2" and navigateURL is "Page2.aspx".
  • Page2.aspx also uses master1.master.
  • On Home.aspx there's a button that causes a postback where a redirect to Page2.aspx is done.
  • Page2.aspx loads with only the "Home" tab visible.  There is no "Page2" tab.

Why is the "Page2" tab gone?  Is there a property that can be set to enable masterTabStrip to maintain state between different aspx pages?

Thanks,
David

Paul
Telerik team
 answered on 20 Aug 2009
1 answer
270 views
Hello

When I upload a document I want the page to be "greyed-out" and the progress area to display on top so they can't move away from the page.
I have read and tried your the article here http://www.telerik.com/support/kb/aspnet-ajax/window/using-radupload-progress-area-in-radwindow.aspx "Using RadUpload Progress area in RadWindow" but it won't work for me as I have a user control on the page that automatically posts back every so often and this causes the radwindow to display each time it posts back.

I decided to try and use the progress template and have almost acheived what I am trying to do by using the following:

       <telerik:RadProgressArea Visible="true" ID="radProgressArea" runat="server" DisplayCancelButton="true" style="background-color:Gray; filter: alpha(opacity=60);   
                    opacity:0.60; position:absolute; z-index:1000; top:0; left:0; width:100%; height:100%;"> 
            <ProgressTemplate> 
                <div id="ProgressDiv" style="background-color:Gray; filter: alpha(opacity=60);   
                    opacity:0.60; position:absolute; z-index:1000; top:0; left:0; width:100%; height:100%;"> 
                 </div>   
                 <div style="border-width:1px; border-color:Black; width:500px; z-index:1001; height:400px; top:50px; left:50px;   
                     background-color:White; position:absolute;"> 
                    <ul> 
                        <li> 
                        <h6>TotalProgressBar:</h6> 
                        <div style="position: relative; height: 168px; width: 168px;">  
                            <div id="PrimaryProgressBarInnerDiv" runat="server" style="background-color: Blue;  
                                height: 0%; width: 168px; vertical-align: bottom; position: absolute; top: 0;  
                                left: 0; z-index: 900;"> 
                            </div> 
                       </div> 
                    </li> 
                    <li><strong>TotalProgress:</strong> <span runat="server" id="PrimaryValue"></span></li>  
                    <li><strong>TotalProgressPercent:</strong> <span runat="server" id="PrimaryPercent"></span></li>  
                    <li><strong>FilesCount:</strong> <span runat="server" id="SecondaryValue"></span></li>  
                    <li><strong>FilesCountPercent:</strong> <span runat="server" id="SecondaryPercent"></span></li>  
                    <li><strong>RequestSize:</strong> <span runat="server" id="PrimaryTotal"></span></li>  
                    <li><strong>SelectedFilesCount:</strong> <span runat="server" id="SecondaryTotal"></span></li>  
                    <li><strong>CurrentFileName:</strong> <span runat="server" id="CurrentOperation"></span></li>  
                    <li><strong>TimeElapsed:</strong> <span runat="server" id="TimeElapsed"></span></li>  
                    <li><strong>TimeEstimated:</strong> <span runat="server" id="TimeEstimated"></span></li>  
                    <li><strong>TransferSpeed:</strong> <span runat="server" id="Speed"></span></li>  
                </ul> 
           
 
                 </div> 
            </ProgressTemplate>   
        </telerik:RadProgressArea> 

Although this greys out my page I cannot work out how to get the two progress bars as in the original rad progress area to display.

My second attempt was just apply a style to the progress area as so:

   <telerik:RadProgressArea Visible="true" ID="radProgressArea" runat="server" DisplayCancelButton="true"   
          style="background-color:Gray; position:absolute; z-index:1000; top:0;   
              left:0; width:100%; height:100%;"> 
              
        </telerik:RadProgressArea> 

This is more like what I want to acheive, but I need the grey background opacity to be set but the actual progress area to be solid.

So my Question is, how do I display the progress bars in a progresstemplate, or how can I set the opacity of the background of the progress area, whilst still having the progress area it's self solid?

Thanks

Paul Clark
Top achievements
Rank 2
 answered on 20 Aug 2009
1 answer
157 views
I have the next User Control

ascx File:
<%@ Register Assembly="Telerik.Web.UI, Version=2009.2.701.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"   
    Namespace="Telerik.Web.UI" TagPrefix="Telerik" %>   
   
<Telerik:RadEditor runat="server" ID="TestEditor" Skin="Vista"    
                EditModes="Design" Height="200px" Width="100%" EnableResize="False">   
                <Tools>   
                    <Telerik:EditorToolGroup>   
                        <Telerik:EditorTool Name="Bold" />   
                        <Telerik:EditorTool Name="Underline" />   
                        <Telerik:EditorTool Name="Italic" />   
                        <Telerik:EditorTool Name="StrikeThrough" />   
                    </Telerik:EditorToolGroup>   
                    <Telerik:EditorToolGroup>   
                        <Telerik:EditorTool Name="FontName" />   
                        <Telerik:EditorTool Name="FontSize" />   
                        <Telerik:EditorTool Name="ForeColor" />   
                        <Telerik:EditorTool Name="BackColor" />   
                    </Telerik:EditorToolGroup>   
                </Tools>   
<Content>   
</Content>   
            </Telerik:RadEditor>   
    <asp:Button runat="server" ID="btnRadEditorContent" Text="Set RadEditor Content" onclick="btnRadEditorContent_Click" />   
<Telerik:RadAjaxManager runat="server" ID="TestAjaxManager">   
    <AjaxSettings>   
        <Telerik:AjaxSetting AjaxControlID="btnRadEditorContent">   
            <UpdatedControls>   
                <Telerik:AjaxUpdatedControl ControlID="TestEditor" />   
            </UpdatedControls>   
        </Telerik:AjaxSetting>   
    </AjaxSettings>   
</Telerik:RadAjaxManager> 

ascx.cs File:
protected void btnRadEditorContent_Click(object sender, EventArgs e)  
{  
    TestEditor.Content = "This needs to change";  
}  

But when I click the "btnRadEditorContent" button, the RadEditor is not updating the content, It's removing all the toolbars and showing one blank box where I cannot write. Is there another extra step that I'm not doing?.

When I'm not using the AjaxManager, the content is set correctly.

Thanks for your support.


Svetlina Anati
Telerik team
 answered on 20 Aug 2009
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?