Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
148 views
Hi Folks
Im trying to do one simle stuff, this is the scenario

When the User Click "Edit"
The Edit Windows appear

and there is 2 buttons

Update and Cancel!  , no problem  untill now!

When User Click Update, a simple Confirm Message should appear
Like
"Do you wanna really Update the info"?
Yes/No

How do i perform that,
There is no such Confirm Text GridEditCommandColumn , or even a ClientSide Event to Trigger this message!!?
Shinu
Top achievements
Rank 2
 answered on 28 Jul 2008
1 answer
99 views
Hi,

Just looking at the flash move on the Q2 home page and in the animation there is a text box with autocomplete. How has this been done in this instance with a telerik solution or control toolkit?

Leon.
Princy
Top achievements
Rank 2
 answered on 28 Jul 2008
1 answer
164 views
the 2 examples provided does not extract individual textbox property from edit form.  I've built my entire grid through code behind.  But I can not extract the new value thats being changed in the edit mode.

        protected void CreateGrids(RadPageView PageView)  
        {  
            Control Control = new Control();  
            RadGrid temp = new RadGrid();  
            temp.ID = "RadGrid_" + PageView.ID;  
            temp.Skin = "Hay";  
            temp.MasterTableView.CommandItemDisplay = GridCommandItemDisplay.Top;  
            temp.AutoGenerateColumns = false;  
            temp.Width = 500;  
            //temp.ItemDataBound += RadGrid1_ItemDataBound;  
              
            temp.AllowAutomaticInserts = false;  
            temp.AllowAutomaticUpdates = false;  
            temp.AllowAutomaticDeletes = false;  
            temp.InsertCommand += new GridCommandEventHandler(RadGrid_Insert);  
            temp.UpdateCommand += new GridCommandEventHandler(RadGrid_Update);  
            temp.DeleteCommand += new GridCommandEventHandler(RadGrid_Delete);  
            //temp.ItemCommand +=new GridCommandEventHandler(RadGrid_Commands);  
            temp.EnableViewState = false;  
            temp.MasterTableView.EditMode = GridEditMode.EditForms;  
            if (PageView.ID == "Address")  
            {  
                //temp.NeedDataSource += new GridNeedDataSourceEventHandler(this.tem temp_NeedDataSource);                 
 
                GridEditCommandColumn EditColumn = new GridEditCommandColumn();  
                temp.MasterTableView.Columns.Add(EditColumn);  
 
                GridBoundColumn AddressColumn = new GridBoundColumn();  
                temp.MasterTableView.Columns.Add(AddressColumn);  
                AddressColumn.DataField = "Address";  
                AddressColumn.HeaderText = "Address";  
                AddressColumn.UniqueName = "Address";  
 
 
                GridBoundColumn AddressColumn2 = new GridBoundColumn();  
                temp.MasterTableView.Columns.Add(AddressColumn2);  
                AddressColumn2.DataField = "Address2";  
                AddressColumn2.HeaderText = "Address2";  
                AddressColumn2.UniqueName = "Address2";  
 
                GridBoundColumn CityColumn = new GridBoundColumn();  
                temp.MasterTableView.Columns.Add(CityColumn);  
                CityColumn.DataField = "City";  
                CityColumn.HeaderText = "City";  
                CityColumn.UniqueName = "City";  
 
                GridBoundColumn StateColumn = new GridBoundColumn();  
                temp.MasterTableView.Columns.Add(StateColumn);  
                StateColumn.DataField = "StateOrRegion";  
                StateColumn.HeaderText = "State";  
                StateColumn.UniqueName = "State";  
 
                GridBoundColumn ZipColumn = new GridBoundColumn();  
                temp.MasterTableView.Columns.Add(ZipColumn);  
                ZipColumn.DataField = "PostalCode";  
                ZipColumn.HeaderText = "Zip Code";  
                ZipColumn.UniqueName = "PostalCode";  
 
                GridButtonColumn DeleteColumn = new GridButtonColumn();  
                temp.MasterTableView.Columns.Add(DeleteColumn);  
                DeleteColumn.CommandName = "Delete";  
                DeleteColumn.Text = "Delete";  
                DeleteColumn.ButtonType = GridButtonColumnType.ImageButton;  
 
                  
 
 
                temp.DataSource = SynergieEMR.GetAddress(new Guid("992740df-ebac-4409-854a-0a16637c8b00"));  
 
            }  
            else if (PageView.ID == "Phone")  
            {  
                GridBoundColumn TypeColumn = new GridBoundColumn();  
                temp.MasterTableView.Columns.Add(TypeColumn);  
                TypeColumn.DataField = "Type";  
                TypeColumn.HeaderText = "Type";  
                TypeColumn.UniqueName = "Type";  
 
 
                GridBoundColumn ContactNumberColumn = new GridBoundColumn();  
                temp.MasterTableView.Columns.Add(ContactNumberColumn);  
                ContactNumberColumn.DataField = "ContactNumber";  
                ContactNumberColumn.HeaderText = "Contact Number";  
                ContactNumberColumn.UniqueName = "ContactNumber";  
 
                GridBoundColumn NotesColumn = new GridBoundColumn();  
                temp.MasterTableView.Columns.Add(NotesColumn);  
                NotesColumn.DataField = "SpecialInstructions";  
                NotesColumn.HeaderText = "Notes";  
                NotesColumn.UniqueName = "Notes";  
 
                GridButtonColumn DeleteColumn = new GridButtonColumn();  
                DeleteColumn.CommandName = "Delete";  
                DeleteColumn.Text = "Delete";  
                DeleteColumn.ButtonType = GridButtonColumnType.ImageButton;  
                temp.MasterTableView.Columns.Add(DeleteColumn);  
 
                temp.DataSource = SynergieEMR.GetTeleCommunications(new Guid("992740df-ebac-4409-854a-0a16637c8b00"));  
            }  
            else if (PageView.ID == "Email")  
            {  
                GridBoundColumn TypeColumn = new GridBoundColumn();  
                temp.MasterTableView.Columns.Add(TypeColumn);  
                TypeColumn.DataField = "Type";  
                TypeColumn.HeaderText = "Type";  
                TypeColumn.UniqueName = "Type";  
 
 
                GridBoundColumn ContactNumberColumn = new GridBoundColumn();  
                temp.MasterTableView.Columns.Add(ContactNumberColumn);  
                ContactNumberColumn.DataField = "ContactAddress";  
                ContactNumberColumn.HeaderText = "Email Address";  
                ContactNumberColumn.UniqueName = "ContactAddress";  
 
                GridBoundColumn NotesColumn = new GridBoundColumn();  
                temp.MasterTableView.Columns.Add(NotesColumn);  
                NotesColumn.DataField = "SpecialInstructions";  
                NotesColumn.HeaderText = "Notes";  
                NotesColumn.UniqueName = "Notes";  
 
                GridButtonColumn DeleteColumn = new GridButtonColumn();  
                DeleteColumn.CommandName = "Delete";  
                DeleteColumn.Text = "Delete";  
                DeleteColumn.ButtonType = GridButtonColumnType.ImageButton;  
                temp.MasterTableView.Columns.Add(DeleteColumn);  
 
                temp.DataSource = SynergieEMR.GetECommunication(new Guid("992740df-ebac-4409-854a-0a16637c8b00"));  
            }  
            //temp.DataBind();  
 
            Control.Controls.Add(temp);  
 
            PageView.Controls.Add(Control);  
        } 
Shinu
Top achievements
Rank 2
 answered on 28 Jul 2008
1 answer
119 views
I also would like to now how to hide a column?
Princy
Top achievements
Rank 2
 answered on 28 Jul 2008
0 answers
162 views
Hi, I want to bind the radTreeview control with the sqlServer 2005 with having field learningTrack as XML Data type.

I want to bind only that coloumn to the treeview control using XMLDocuments class in asp.net 3.5 and c#.net 3.5. I have following code for binding for RadTreeView control.

I need Help for Binding the RadTreeView control.
***********************************************
Learningtrack.aspx
***********************************************
<div style="width:750px; margin-bottom:25px; margin-left:25px; margin-right:25px; margin-top:75px; padding:25px; height: 600px;">
   <div style="float:left; width:400px;">
   <div style="margin-left:10px">
    <asp:Label ID="TitleLabel" runat="server" ></asp:Label>
    <asp:Literal ID="VideoLiteral" runat="server"></asp:Literal>
   </div>
   <br />
   <div style="margin-left:10px">
   <asp:Label ID="ObjectiveLabel" Text="Objectives" runat="server"></asp:Label>
   <br />
   <telerik:radtextbox runat="server" Rows="5" Skin="Vista" TextMode="MultiLine"
           Width="325px" ID="ObjectiveTextBox"
           InvalidStyleDuration="100" LabelCssClass="radLabelCss_Vista"></telerik:radtextbox>
   </div>
   </div>
   <div style="float:right; width:300px;">
    <asp:TreeView ID="LearningTrackAndLessoinTreeView" runat="server" ImageSet="Arrows" OnTreeNodeDataBound="LearningTrackAndLessoinTreeView_TreeNodeDataBound">
        <ParentNodeStyle Font-Bold="False" />
        <HoverNodeStyle
            Font-Underline="True" ForeColor="#5555DD" />
        <SelectedNodeStyle Font-Underline="True" HorizontalPadding="0px"
            VerticalPadding="0px" ForeColor="#5555DD" />
        <NodeStyle Font-Names="Verdana" Font-Size="8pt" ForeColor="Black"
            HorizontalPadding="5px" NodeSpacing="0px" VerticalPadding="0px" />
    </asp:TreeView>
    <asp:XmlDataSource ID="LearningTrackAndLessionsXmlDataSource" runat="server"></asp:XmlDataSource>
    </div>
    </div>
***********************************************
Learningtrack.aspx.cs
***********************************************
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using ACS;
using Deklarit;
using System.Xml;
using System.Xml.XPath;


    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
                    BindLearningTrackLessonsAndTopics(LearningTrackName);
          }
        }
   

    protected void LearningTrackAndLessoinTreeView_TreeNodeDataBound(object sender, TreeNodeEventArgs e)
    {
        TreeNode LearningTrackNode = (TreeNode)e.Node;
        XmlNode LearningTrackXMLNode = (XmlNode)e.Node.DataItem;
      
            if (LearningTrackXMLNode.NodeType == XmlNodeType.Element)
            {
                if (LearningTrackXMLNode.Attributes != null)
                {
                    for (int i = 2; i < LearningTrackXMLNode.Attributes.Count; i++)
                    {
                        TreeNode LearningLession = new TreeNode(LearningTrackXMLNode.Attributes[i].Name);

                        TreeNode LearningLessionValue = new TreeNode(LearningTrackXMLNode.Attributes[i].Value);

                        LearningLession.ChildNodes.Add(LearningLessionValue);
                        LearningTrackNode.ChildNodes.Add(LearningLession);
                    }
                }
                if (LearningTrackXMLNode.ChildNodes[0] != null)
                {
                    if (LearningTrackXMLNode.ChildNodes[0].NodeType == XmlNodeType.Text)
                    {
                        TreeNode LearningLession = new TreeNode("Text");
                        TreeNode LearningLessionValue = new TreeNode(LearningTrackXMLNode.InnerText, LearningTrackXMLNode.Value);

                        LearningLession.ChildNodes.Add(LearningLessionValue);
                        LearningTrackNode.ChildNodes.Add(LearningLession);
                    }
                }
            }
        }
   
    private void BindLearningTrackLessonsAndTopics(string learningTrackName)
    {
        LearningTrackByLearningTrackTitleDataSet LearningTrackByLearningTitle = new LearningTrackByLearningTrackTitleDataSet();
        LearningTrackByLearningTrackTitleDataAdapter LearningTrackByLearningTitleDA = new LearningTrackByLearningTrackTitleDataAdapter();
       
        LearningTrackByLearningTitleDA.Fill(LearningTrackByLearningTitle, learningTrackName);

        XmlDataDocument LearningTrackAndLessionsXmlDocuments = new XmlDataDocument(LearningTrackByLearningTitle);
       
        DataSet LearningTrackAndLessionDataSource = new DataSet();

        LearningTrackAndLessionDataSource.ReadXml(new XmlNodeReader(LearningTrackAndLessionsXmlDocuments));


        LearningTrackAndLessionsXmlDataSource.Data = LearningTrackAndLessionsXmlDocuments.InnerXml;
        LearningTrackAndLessoinTreeView.DataSource = LearningTrackAndLessionsXmlDataSource;
        LearningTrackAndLessoinTreeView.DataBind();
    }
}
Nilesh
Top achievements
Rank 1
 asked on 27 Jul 2008
2 answers
111 views
I need to make two small changes to the NextPrevNumericAndAdvanced pager:
1. Display page number in teh middle and change page stuff on the left side
2. Substitute page size textbox with dropdown list.

Is there a simple way to do it, at least for #1?
miksh
Top achievements
Rank 1
Iron
 answered on 26 Jul 2008
5 answers
267 views
Hi Just wondering if you can provide us the database or database design. We are trying to intigrate Rad Scheduler with our application. We have multiple users and every user will have multiple resources. Our datbase is MSSQL.

Thanks
Prady
dhlennon
Top achievements
Rank 1
 answered on 26 Jul 2008
1 answer
123 views
Hi,

I am using telerik radcontrols for asp.net.ajax.
When I clicked on ASP.NET Configuration I get following error.

 

Server Error in '/asp.netwebadminfiles' Application.

Could not load file or assembly 'Telerik.Web.UI, Version=2008.1.619.35, Culture=neutral' or one of its dependencies. The system cannot find the file specified.

Does anybody know how to fix this? where should add any reference for this?

Thanks.

Sean
Top achievements
Rank 2
 answered on 25 Jul 2008
2 answers
121 views
Hi there,

In the newest version of the Tabstrip, if a tab is disabled in code it still renders as enabled but does not respond to the mouse.  Can anyone else confirm or provide a fix?
Philip
Top achievements
Rank 1
 answered on 25 Jul 2008
1 answer
114 views
We currently have Q1 2007 installed. The steps we followed were:
1. Installed Visual Studio 2005
2. Installed Q1 2007 from the exe
3. Worked with it but did not create anything we need to preserve

Since then we installed Visual Studio 2008, but did not use it to work with the Telerik controls (not sure if the VS 2008 installation did any auto migration of anything relating to the Telerik controls).

Given that we did not create anything with Q1 2007 that we need to preserve, what is the "cleanest" way to install Q2 2008 ASP.NET AJAX for use with Visual Studio 2008?

Should we just uninstall Q1 2007 using the Telerik uninstall that came with it, and then install Q2 2008 from the exe, or is there more to it?
kmccusker
Top achievements
Rank 1
 answered on 25 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?