Dear experts , how to handle following:
after click on the Context menu item in onClientContextMenuItemClicking (or OnClientContextMenuItemClicked) event, and then the popup div layers (or aspx pages), and gets inside the text of TextBox1(TextBox1.Text):
1. when TextBox1.text is not null (or is not empty string ), return true, and execut service RadTreeView1_ContextMenuItemClick event ;
2. when TextBox1.text is null (or empty string), returns false, will does not execut services RadTreeView1_ContextMenuItemClick event.
Reference:
Client code:
function onClientContextMenuItemClicking(sender, args) {
var menuItem = args.get_menuItem();
var treeNode = args.get_node();
menuItem.get_menu().hide();
switch (menuItem.get_value()) {
case "new":
var result= pseudocode:(pop-up layer : when input text of TextBox1 is not null or not empty string ): return true; when TextBox1.text is null or empty string return false.);
args.set_cancel(!result);
break;
Description:
1. /* When variable result return false and did not execut RadTreeView1_ContextMenuItemClick . Key points: When the pop-up layers, how to block the program to continue execut */
2. /* this (pseudocode) is my problem , and how can I write the code ? */
}
Services code:
protected void RadTreeView1_ContextMenuItemClick(object sender, RadTreeViewContextMenuEventArgs e)
{
RadTreeNode clickedNode = e.Node;
switch (e.MenuItem.Value)
{
case "new":
if(! IsNullOrEmpty (textbox1.text))
clickedNode.Nodes.Add(textbox1.text);
}}
many thanks!

In RadGrid, If we want the columns in our grid to be resizable, set the ClientSettings.Resizing.AllowColumnResize property to True.
Is there any way or property in RadPivotGrid so we can resize our column and row of Pivotgrid?
Is Pivotgrid support column resize on client same as RadGrid support?Hi,
I have a requirement in my project to select a file from local machine
Scenario:
when a button is clicked, user should see a browser window to choose a file,
and user can select only one file, and user should be accessible to all the drives,desktop as in windows browser
and finally we need the selected file path with file name to manipulate that file.
Can you pls provide the code for this, I am working on this almost one week but unable get the solution
Regards,
Arumugam
protected void _radGrid1_NeedDataSource(object source, GridNeedDataSourceEventArgs e) { //if (Page.IsPostBack) // return; string connString = "trust me, the connection string works;"; _connection = new SqlConnection(); _connection.ConnectionString = connString; // connectionString.ConnectionString; _connection.Open(); using (SqlCommand command = _connection.CreateCommand()) { command.CommandText = "dbo.Adddress_ListByCountry"; command.CommandType = CommandType.StoredProcedure; command.Parameters.AddWithValue("@CountryCode", "FRA"); SqlDataReader reader = command.ExecuteReader(); ((RadGrid)source).DataSource = reader; } } protected void _radGrid1_DataBound(object sender, EventArgs e) { if (_connection.State == ConnectionState.Open) { _connection.Close(); } } protected override void OnInit(EventArgs e) { base.OnInit(e); _radGrid1 = DefineGridStructure(); _radAjaxLoadingPanel = new RadAjaxLoadingPanel(); _radAjaxLoadingPanel.ID = "_radAjaxLoadingPanel"; _radAjaxManager = new RadAjaxManager(); _radAjaxManager.ID = "_radAjaxManager"; _radAjaxManager.DefaultLoadingPanelID = "_radAjaxLoadingPanel"; this.Controls.Add(_radAjaxManager); this.Controls.Add(_radAjaxLoadingPanel); AjaxSetting setting = new AjaxSetting(); AjaxUpdatedControl target = new AjaxUpdatedControl(_radGrid1.ID, _radAjaxLoadingPanel.ID); setting.UpdatedControls.Add(target); setting.AjaxControlID = _radGrid1.ID; _radAjaxManager.AjaxSettings.Add(setting); _gridPanel = new Panel(); _gridPanel.ID = "_gridPanel"; _gridPanel.Controls.Add(_radGrid1); this.Controls.Add(_gridPanel); } private RadGrid DefineGridStructure() { RadGrid radGrid1 = new RadGrid(); radGrid1.Skin = "Default"; radGrid1.Width = Unit.Percentage(100); radGrid1.PageSize = 15; radGrid1.AllowPaging = true; radGrid1.AutoGenerateColumns = false; radGrid1.ID = "_radGrid1"; radGrid1.DataBound += _radGrid1_DataBound; radGrid1.NeedDataSource += _radGrid1_NeedDataSource; radGrid1.AllowPaging = true; //radGrid1.EnableViewState = true; //Add columns GridBoundColumn boundColumn; boundColumn = new GridBoundColumn(); boundColumn.DataField = "AddressId"; boundColumn.HeaderText = "Address ID"; radGrid1.MasterTableView.Columns.Add(boundColumn); boundColumn = new GridBoundColumn(); boundColumn.DataField = "AddressText"; boundColumn.HeaderText = "Address"; radGrid1.MasterTableView.Columns.Add(boundColumn); return radGrid1; }radconfirm('Are you sure you want to delete this folder: ' + treeNode.get_text(),
confirmCallBackFn, 330, 180, null, 'Folder-Delete');RadTreeView1_ContextMenu1ItemClickbut this event get not hit
function confirmCallBackFn(arg) { //the user clicked OK if (arg) { __doPostBack('<%= RadTreeView1ContextMenu1.Items(3).UniqueId%>', ''); }}<%@ Page Language="VB" CodeFile="ResGoalCharts_Bare.aspx.vb" Inherits="Problems_Problem_Resolution_Goal" %> <html> <head runat="server"> </head> <body> <form id="Form1" runat="server"> <telerik:RadScriptBlock runat="server" ID="RadScriptBlock1"> </telerik:RadScriptBlock> <telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePageMethods="true"> </telerik:RadScriptManager> <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" /> <asp:HiddenField ID="HiddenField_Owner_Emp_Id" runat="server" /> <asp:HiddenField ID="HiddenField_Risk" runat="server" /> <asp:HiddenField ID="HiddenField_OwningOrg" runat="server" /> <asp:HiddenField ID="HiddenField_RollUp" runat="server" /> <telerik:RadHtmlChart ID="RadHtmlChart_GoalTrend1x" runat="server" Width="800" Height="450"> <PlotArea> <Series> <telerik:ColumnSeries DataFieldY="WITHIN_1X_GOAL_PCT" Stacked="true" Name="Within Goal"> <LabelsAppearance Visible="false"></LabelsAppearance> <TooltipsAppearance ClientTemplate="Count: #=dataItem.WITHIN_1X_GOAL#" Color="GhostWhite" /> <Appearance> <FillStyle BackgroundColor="Green" /> </Appearance> </telerik:ColumnSeries> <telerik:ColumnSeries DataFieldY="WITHIN_1X_OUT_PCT" Stacked="true" Name="Outside Goal"> <LabelsAppearance Visible="false"></LabelsAppearance> <Appearance> <FillStyle BackgroundColor="Red" /> </Appearance> <TooltipsAppearance ClientTemplate="Count: #=dataItem.OUTSIDE_1X_GOALS#" Color="GhostWhite" /> </telerik:ColumnSeries> <telerik:ColumnSeries DataFieldY="OTHER_PCT" Stacked="true" Name="In Progress"> <LabelsAppearance Visible="false"></LabelsAppearance> <TooltipsAppearance ClientTemplate="Count: #=dataItem.OTHER#" Color="Black" /> <Appearance> <FillStyle BackgroundColor="Yellow" /> </Appearance> </telerik:ColumnSeries> <telerik:LineSeries DataFieldY="GOAL_1X" MissingValues="Interpolate" Name="1x Goal (80%)"> <LineAppearance Width="2" /> <LabelsAppearance Visible="false" /> <MarkersAppearance Visible="false" /> <TooltipsAppearance Visible="false" /> </telerik:LineSeries> </Series> <XAxis MajorTickType="Outside" MinorTickType="None" Visible="true" DataLabelsField="OPEN_PERIOD"> <MinorGridLines Visible="false" /> <MajorGridLines Visible="false" /> <TitleAppearance Visible="true"> </TitleAppearance> <LabelsAppearance RotationAngle="-45" /> </XAxis> <YAxis MaxValue="100" MinorTickType="None" MajorTickType="None"> <MinorGridLines Visible="false" /> <MajorGridLines Visible="false" /> <TitleAppearance Text="% Of Total"> </TitleAppearance> <LabelsAppearance DataFormatString="{0}%"> </LabelsAppearance> </YAxis> </PlotArea> <Legend> <Appearance Visible="true" Position="Bottom"> </Appearance> </Legend> <ChartTitle Text="Goal Trend Report"> </ChartTitle> </telerik:RadHtmlChart> </form> </body> </html> [HttpException (0x80004005): Multiple controls with the same ID 'ctl01' were found. FindControl requires that controls have unique IDs.] System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +12651760 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +317 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +317 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +317 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +317 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +317 System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +317 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +320 Telerik.Web.UI.RadTabStrip.OnPreRender(EventArgs e) +103