Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
105 views
I open both edit and insert form. When I click update button(in insert form). I need to test validate any value  of controls by javascript.
How I find control in insert form only without in edit form?
if i use below function . It get 2 controls that have the same ID in Edit and Insert Form.  

 

function GetGridServerElement(radGridID, serverID, ControlType) { 

    var grid = document.getElementById(radGridID); 

    var elements = grid.getElementsByTagName("*"); 

    for (var i = 0; i < elements.length; i++) { 

        var element = elements[i]; 

        if (element.id.indexof(serverID)>0) { 

            if (ControlType == "rad") { 

                return $find(element.id);

            }

            else

                return element; 

                    }

            }

    }

}

Vvt
Top achievements
Rank 1
 answered on 08 Sep 2012
5 answers
343 views

Include file in RadEditor
<!--#include file = ../Shared/gridHeaderTemplates_Layout.htm-->

Thanks Advance,
Mohamed.
mohamed
Top achievements
Rank 1
 answered on 08 Sep 2012
0 answers
68 views
Hi

Select node RadTreeView Add Folder clcik to create folder then select folder name to rename.
see my attach my screen shot.
Button click coding:

protected void AddFolder_OnClick(object sender, EventArgs e)
        {
            RadTreeNode node = (RadTreeNode)TicketFoldersTreeview.SelectedNode;
            if (node != null)
            {
                node.Nodes.Add(new RadTreeNode("New Folder"));
            }
            int parentId = (int)Convert.ToInt32(GetNode.Value);
            Ticket_Folder ticFolder = new Ticket_Folder();
            Ticket_Folder parentFolder = DbClient.GetList<Ticket_Folder>("Ticket_Folders_ID = " + parentId)[0];
 
            RadTreeNode newNode = new RadTreeNode();
            string nodeName = Resources.Common.New_Folder;
            ticFolder.Ticket_Folders_Name = nodeName;
            ticFolder.Ticket_Folders_PARENT_ID = parentId;
            ticFolder.Ticket_Folders_Global = parentFolder.Ticket_Folders_Global;
            ticFolder.Ticket_Folders_People_ID = ((TBS.HelpDesk.Model.TBSSecurity)(Session["SecurityClass"])).People_ID;
 
            DbClient.Insert<Ticket_Folder>(ticFolder);
 
            newNode.Text = nodeName;
            newNode.Value = ticFolder.Ticket_Folders_ID.ToString();
            newNode.Attributes.Add("PeopleID", ((TBS.HelpDesk.Model.TBSSecurity)(Session["SecurityClass"])).People_ID.ToString());
            newNode.AllowEdit = true;
            hdNodeCount.Value = "1";
            string strScript = "Sys.Application.add_load(function(){ EditableNode(\"" + newNode.Value + "\")})";
            ScriptManager.RegisterStartupScript(this.Page, typeof(string), "ScriptKey", strScript, true);
        }

Java Script:
function EditableNode(value) {
        debugger
            if (document.getElementById('hdNodeCount').value == '1') {
                var tree = $find("<%= TicketFoldersTreeview.ClientID %>");
                var node = tree.findNodeByValue(value);
                if (node != null) {
                    node.startEdit();
                }
            }
        }


Thanks Advance,
New Gene
New
Top achievements
Rank 1
 asked on 08 Sep 2012
2 answers
489 views
I've done much reading about double-clicking on a RadTreeView node.  Apparently the default behaviour is for this to cause it to expand, showing its child nodes.

On my implementation of the RadTreeView it does not do this.  Might this be because I have some server-side code that processes the single-click, which serves to Select the node?  If so, please know that I absolutely need to maintain that server-side selection code.

Thus, my ultimate question is this: Is is possible to have a single-click of a RadNode run server-side code BUT have a double-click just expand the node?

Curious,

Robert W.
Robert
Top achievements
Rank 1
 answered on 07 Sep 2012
4 answers
679 views
I have a Page which has a HEADER section. Once information is filled up, I want to display a Grid control on the bottom half of a page.
How do I achieve this in ASP.NET AJAX.

The Grid Control contains Combo Boxes and Check Boxes.
Deep Ghosh
Top achievements
Rank 1
 answered on 07 Sep 2012
7 answers
1.9K+ views
How can I set the commandArgument for rows in the codebehind ?
Ive tried this, but I get an error

<telerik:GridButtonColumn CommandName="Select"  Text="Select" CommandArgument'<%# Eval ( "UserID" ) %>' 
                                            UniqueName="SelectButton">  
                                        </telerik:GridButtonColumn> 

'Error Creting Control'
 Databinding Expressions are only supported on objects that have a databinding event.

I need to gain access to the underlying datakey so that when a user selects a row I have some code that select data from a database using the datakey as the primary key into the table.  In a standard .net grid Id do this and it works

protected void GridViewArtistName_RowCommand(object sender, GridViewCommandEventArgs e)  
        {  
            if (e.CommandName == "Select")  
            {  
 
                Guid guid = new Guid(e.CommandArgument.ToString());  
                Session.Add("USERID", e.CommandArgument.ToString());  
 
                if (UserIDChange != null)  
                {  
                    // Call the Event  
                    UserIDEventArgs E = new UserIDEventArgs(guid);  
                    OnUserId(E);  
                }  
            }  
        } 
 How can I achieve the same functionality with a telerik grid ?
Suraj Shrestha
Top achievements
Rank 1
 answered on 07 Sep 2012
3 answers
117 views
<telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" ConfirmText=""
  ConfirmTitle="" ConfirmDialogType="RadWindow" UniqueName="delete_notification" 
    ImageUrl="Images/DeleteRedResized.png" ShowSortIcon="false" SortExpression="">
   <HeaderStyle HorizontalAlign="Center" VerticalAlign="Top" Width="4%" />
      <ItemStyle HorizontalAlign="Center" VerticalAlign="Top" Width="4%" />
        </telerik:GridButtonColumn>

I have a grid button column in my grid. I have delete button in this. My Image for the delete button is not displayed for some reason. cant figure put why. i have set enable theamiing to false.

I am attaching the screenshot.

thankyou
Jayesh Goyani
Top achievements
Rank 2
 answered on 07 Sep 2012
0 answers
254 views
HI, I'm using your radwindowmanager, and it throws this error, radopen is not defined,

I;ve tried everything the code is really simple so why I have this error?

I'm sending you the aspx file to see what I'm doing is really really simple. weird thing I have a very similar code on a running application and it works fine,

thanks
Rapitoloco
Top achievements
Rank 1
 asked on 07 Sep 2012
0 answers
133 views
Hi,

I have a RadAsyncUpload in a Jquery dialog.

When I click on the control no action is performed in Chrome and Firefox but it is working in IE.

I have added the below code snippet and tried but no success.

        Telerik.Web.UI.RadAsyncUpload.prototype._updateFormProperties = function (form)
    {
        if (form)
        {
            form.enctype = form.encoding = "multipart/form-data";
        }
    }

Is there a workaround for this?

Thanks,
Srini


Sri
Top achievements
Rank 1
 asked on 07 Sep 2012
3 answers
286 views
Hi

Can anyone tell me if it is possible to save the org chart to a PDF document?

Cheers
Cliff
Peter Filipov
Telerik team
 answered on 07 Sep 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?