Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
98 views
Please send sample coding for RadSplitter, RadSplitter like Left pane-slidding pane1 and slidding pane2, right pane -RadGrid control
while collapse the left radpane, how to resize the width right radpane -Radgrid control
Svetlina Anati
Telerik team
 answered on 15 Jun 2009
1 answer
140 views
Hi, Telerik.
I´m using radcontrols for asp.net ajax and everything was working with version 1 of Chrome.
Now I installed version Chrome 2 and my toolbar dissapeared, is not visible. What happened?!
This is the code for the toolbar:

 

<telerik:RadToolBar ID="radtbMenu" runat="server"

 

 

CausesValidation="False" Skin="Outlook" OnClientButtonClicked="GUIToolBarOnClientButtonClicked">

 

 

<Items>

 

 

 

 

<telerik:RadToolBarButton runat="server" Value="Buscar" CommandName="Buscar" ToolTip="Buscar" />

 

 

<telerik:RadToolBarButton runat="server" Value="QuitarFiltro" CommandName="QuitarFiltro" ToolTip="Quitar Filtro" AllowSelfUnCheck="true" CheckOnClick="true" />

 

 

<telerik:RadToolBarButton IsSeparator="true"></telerik:RadToolBarButton>

 

 

<telerik:RadToolBarButton runat="server" Value="ExportarExcel" NavigateUrl="exportar.aspx?rw=1&tip=1&pag=Gastos" Target="_blank" ToolTip="Exportar a Excel" />

 

 

<telerik:RadToolBarButton runat="server" Value="ExportarPDF" NavigateUrl="exportar.aspx?rw=1&tip=2&pag=Gastos" Target="_blank" ToolTip="Exportar a PDF" />

 

 

<telerik:RadToolBarButton IsSeparator="true"></telerik:RadToolBarButton>

 

 

<telerik:RadToolBarButton runat="server" Value="Actualizar" CommandName="Actualizar" ToolTip="Actualizar" />

 

 

 

<telerik:RadToolBarButton IsSeparator="true"></telerik:RadToolBarButton>

 

 

</Items>

 

 

</telerik:RadToolBar>

 


I set the image for the toolbarbuttons using:

radtbMenu.FindItemByValue(

"Buscar").ImageUrl = CUtil.URLImagen(this.Page, "iconos.menfiltrar.gif");

 

radtbMenu.FindItemByValue(

"QuitarFiltro").ImageUrl = CUtil.URLImagen(this.Page, "iconos.menquitarfiltro.gif");

 

radtbMenu.FindItemByValue(

"ExportarExcel").ImageUrl = CUtil.URLImagen(this.Page, "iconos.menexportarexcel.gif");

 

radtbMenu.FindItemByValue(

"ExportarPDF").ImageUrl = CUtil.URLImagen(this.Page, "iconos.menexportarpdf.gif");

 

radtbMenu.FindItemByValue(

"Actualizar").ImageUrl = CUtil.URLImagen(this.Page, "iconos.menactualizar.gif");

 


Can you help me, please?
thanks a lot,
Daniel.
Veselin Vasilev
Telerik team
 answered on 15 Jun 2009
5 answers
206 views
Hi,

I am using the RadScheduler, and would like to sync it with Exchange; however, I can't seem to find the ExchangeSchedulerProvider  class anywhere.

Please advise.

Regards,
Vincent
Peter
Telerik team
 answered on 15 Jun 2009
1 answer
122 views
Hi,

I don't know if it is a known bug, or a normal behavior, but...

On this page : http://demos.telerik.com/aspnet-ajax/window/examples/restrictionzone/defaultcs.aspx

Just drag the top border of one windows under its bottom... Window height will remaing to a minimum value, but will start to move... Until it exists restriction zone...

Only one pixel remains stuck in zone.

Same behavior for width...
Georgi Tunev
Telerik team
 answered on 15 Jun 2009
1 answer
75 views
Hi,

I want to give users an easy way to create new appointments, instead of searching through shceduler weeks.

Here is what I am thinking about :

I have a DataSource that accourding to appointment duration, available time slots (like working hours) and existing appointments, can give me free time areas where the new appointment can be placed without overlapping existing ones.

I want to do is showing them a sort of datetime slider where user can drag the new appointment to the place they want, like a slider.
Visible date range can be set, and working hours (for each day) too.

The dragging element can be templated (for custom text and color), with size according to new appointment duration.

Moving new appointment into a slot with more available time than the appointment duration (like a 20min appointment sliding in a 1h slot) can be snapped to a customizable number of minutes (ex: for 5min, dragging appointment can make it start at +0min, next step is at +5min, +10min etc...)

Slider rail can be templated (at least to see if areas are available or not) to show different type of available time slots.

Today, I know that none of your controls can achieve this, if I want a control with this behavior, I have to make it myself.

Do you think that your team could make a control like this ? Or if you have a idea of how I can create my control...

Thanks
Peter
Telerik team
 answered on 15 Jun 2009
3 answers
866 views
I've seen one or two recent posts on this error, but no resolution.

I am using 2009 Q1 controls. Here is how I generate this error on my system here at work. I create a new Ajax-enabled web application. I make sure that the folder holding the site is designated as an application. I drag RadAjaxManager into the default page. I compile and bring up the page (on localhost) -- the javascript error "sys.webforms.pagerequestmanager is null or not an object" appears. (In more complex solutions, I have seen that this error prevents functioning of components like RadEditor.) It is entirely related to RadAjaxManager.

Now, I should mention that my computer at home, running the same application, does not have this error. So there is clearly something relating to my installation causing this, but it seems to be bothering other people as well. I have not been able to identify what the issue could be, it isn't anything obvious. What it means is that I do not have a way to develop Ajax-enabled sites using Telerik controls while at work. Which is not good.
Sebastian
Telerik team
 answered on 15 Jun 2009
0 answers
186 views

Hi,

We downloaded the evaluation version of RadControls for ASP.Net and are using the RadTreeView. We are planning to purchase the full version soon, but we ran into a strange issue with the RadTreeView control.

Our TreeView control needs each node to be template as a Table. But each level of the tree needs a different template, so not one single template for the whole tree. Also, all nodes are created dynamically at runtime, and the SingleExpandPath property is set to true.

Now we experience the following issue:

When we select the second node below a templated node, the nodeValue we get at serverside is the value of the first node!

I was able to reproduce this with a simpler version of the code we use for real, when you run the code below, you can expand the tree until the second level, and then, when you select the “child2ofchild1” node, the code behind will tell you that “child1ofchild1” nodes was selected. Could you guys look into this and tell us what we are doing wrong?

 

The asp.net code:

 

<telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
</telerik:RadScriptManager>

<asp:UpdatePanel ID="UpdatePanel1" ChildrenAsTriggers="true" runat="server">
<ContentTemplate>
 <telerik:RadTreeView ID="RadTreeView1" Runat="server" SingleExpandPath="true"
  OnNodeExpand="TreeView_NodeExpand" OnNodeCollapse="TreeView_NodeCollapse"
  OnNodeClick="TreeView_NodeClick">
 </telerik:RadTreeView>
</ContentTemplate>
</asp:UpdatePanel>

 

 

 

 

The codebehind:
 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;

namespace WebApplication1
{
    public partial class _Default : System.Web.UI.Page
    {
        #region Node Template
        class TableTemplate : ITemplate
        {
            private string m_cell1Text;
            private string m_cell2Text;
            private int m_cell1Size;
            private int m_cell2Size;

            public TableTemplate(string cell1Text, string cell2Text,
                int cell1Size, int cell2Size)
            {
                m_cell1Text = cell1Text;
                m_cell2Text = cell2Text;
                m_cell1Size = cell1Size;
                m_cell2Size = cell2Size;
            }

            public void InstantiateIn(Control container)
            {
                Table nodeTable = new Table();
                TableRow nodeRow = new TableRow();

                TableCell firstCell = new TableCell();
                firstCell.Style["width"] = m_cell1Size + "px";
                firstCell.DataBinding += new EventHandler(firstCell_DataBinding);
                nodeRow.Cells.Add(firstCell);

                TableCell secondCell = new TableCell();
                secondCell.Style["width"] = m_cell2Size + "px";
                secondCell.DataBinding += new EventHandler(secondCell_DataBinding);
                nodeRow.Cells.Add(secondCell);

                nodeTable.Rows.Add(nodeRow);
                container.Controls.Add(nodeTable);
            }

            private void firstCell_DataBinding(object sender, EventArgs e)
            {
                TableCell target = (TableCell)sender;
                target.Text = m_cell1Text;
            }

            private void secondCell_DataBinding(object sender, EventArgs e)
            {
                TableCell target = (TableCell)sender;
                target.Text = m_cell2Text;
            }
        }
        #endregion

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //first time, load root node
                LoadTreeRoot();
            }
        }

        private void LoadTreeRoot()
        {
            RadTreeView1.Nodes.Add(
                new RadTreeNode
                    {
                        Value = "root",
                        Text = "root",
                        ExpandMode = TreeNodeExpandMode.ServerSide
                    });
        }

        #region TreeView Events
        public void TreeView_NodeExpand(object sender, RadTreeNodeEventArgs e)
        {
            //get the value of the node that is expanded
            string expandedNodeValue = e.Node.Value;
          
            //refresh the tree, with this node selected
            RefreshTree(expandedNodeValue, true);

            //set this node as selected
            SetNodeSelected(expandedNodeValue);
        }

        public void TreeView_NodeCollapse(object sender, RadTreeNodeEventArgs e)
        {
            //get the value of the node that is collapsed
            string collapsedNodeValue = e.Node.Value;
          
            //refresh the tree, with this node selected
            RefreshTree(collapsedNodeValue, false);

            //set this node as selected
            SetNodeSelected(collapsedNodeValue);
        }

        public void TreeView_NodeClick(object sender, RadTreeNodeEventArgs e)
        {
            //get the value of the clicked node
            string clickedNodeValue = e.Node.Value;

            //refresh the tree
            RefreshTree(clickedNodeValue, false);

            //set this node as selected
            SetNodeSelected(clickedNodeValue);
        }
        #endregion

        #region TreeView Refresh
        private void RefreshTree(string targetNodeValue, bool expanded)
        {
            //find the root node
            RadTreeNode rootNode = RadTreeView1.FindNodeByValue("root");

            if (rootNode != null)
            {
                //clear the nodes
                rootNode.Nodes.Clear();

                //refresh the nodes below this root
                //child nodes
                RadTreeNode child1 = new RadTreeNode { Value = "child1", ExpandMode = TreeNodeExpandMode.ServerSide };
                TableTemplate child1Template = new TableTemplate("child1Cell1", "child1Cell2", 200, 100);
                child1Template.InstantiateIn(child1);
                rootNode.Nodes.Add(child1);

                if ((targetNodeValue != "root" && targetNodeValue != "child1") ||
                    (targetNodeValue == "child1" && expanded))
                {
                    //also expand this child node
                    child1.Expanded = true;

                    //add the childofchild nodes
                    //first
                    RadTreeNode child1ofchild1 = new RadTreeNode { Value = "child1ofchild1" };
                    TableTemplate child1ofchild1Template = new TableTemplate("child1ofchild1Cell1", "child1ofchild1Cell2", 180, 100);
                    child1ofchild1Template.InstantiateIn(child1ofchild1);
                    child1.Nodes.Add(child1ofchild1);

                    //second
                    RadTreeNode child2ofchild1 = new RadTreeNode { Value = "child2ofchild1" };
                    TableTemplate child2ofchild1Template = new TableTemplate("child2ofchild1Cell1", "child2ofchild1Cell2", 180, 100);
                    child2ofchild1Template.InstantiateIn(child2ofchild1);
                    child1.Nodes.Add(child2ofchild1);
                }
            }

            //databind
            RadTreeView1.DataBind();
        }

        private void SetNodeSelected(string selectedNodeValue)
        {
            RadTreeNode selectedNode = RadTreeView1.FindNodeByValue(selectedNodeValue);

            if (selectedNode != null)
            {
                selectedNode.Selected = true;
            }
        }
        #endregion
    }
}

Kristof
Top achievements
Rank 1
 asked on 15 Jun 2009
1 answer
117 views
I want to get new values from a database every 30 seconds. I've setup an ajax panel and put a timer in it. It fires every 30 seconds and updates labels on my aspx page.

Now i want to move images on the page based on the new database values. I aim to do this using DIV tags and by setting the left and top properties. For this i need the values from the server side.

How do i send values from the server to client?

Kind regards
Andrew
Veli
Telerik team
 answered on 15 Jun 2009
4 answers
166 views
Hi,  I have seen accordians like this that fully expand (and therefore show all child options) if javascript is disabled on pageload.

e.g. http://www.projectseven.com/viewer/index.asp?demo=apm

Is this possible or is there a workaround with the telerik panelbar? I have someone asking if this can be done...

Thanks,
Matt
Atanas Korchev
Telerik team
 answered on 15 Jun 2009
1 answer
145 views
I have a rad panel inside a master page. Its EnableEmbeddedSkins & EnableEmbeddedBaseStylesheet is set to false. It works fine.
But I have one content page which has another rad panel. Its skin is set. When this content page is called the skin of the rad panel inside the master is also changed.
plz help.
kollam2003
Top achievements
Rank 1
 answered on 15 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?