Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
183 views
Will Telerik Spreadsheet support data binding for mysql, mssql etc?
Tomica
Top achievements
Rank 2
 answered on 04 May 2016
2 answers
375 views

I am doing a drag and drop from a grid onto the treeview. All is well, events are hooking up and I am getting all the data I need to make it work. But I have one issue. After the row from the grid is dragged on to the treeview node, I display a context menu that will allow the user to select the action they would like to perform with the dragged item on the node.

I have the context menu showing in the correct place, however it quickly closes again so that the user cannot select any of the menu items.

The code which show the menu:

  function onRowDropping(sender, args) {
                if (currentNode) {
 
                    //Check to see if this is a valid drop
                    var draggedrow = args.get_draggedItems()[0];
                    var dragedentitytype = draggedrow.getDataKeyValue('EntityID');
                    var dragentityid = draggedrow.getDataKeyValue('cplID');
 
                    var dropenitytype = currentNode.get_attributes().getAttribute('EType');
                    args.set_cancel(true); //Cancel the drop, will be handled by menu item, also prevent grid from auto refreshing
 
                    var tree = $find("<%=RadTreeStandards.ClientID %>");
 
                    currentNode.set_selected(true);
 
                    tree._contextMenuNode = currentNode;
                    var menu = tree.get_contextMenus()[1];
                    menu.show(args.get_domEvent());
 
                }
                else {
                    args.set_cancel(true);
                }
            }
 
            var currentNode = null;
 
            function onNodeMouseOver(sender, args) {
                //gets the node upon mousing over the node
                currentNode = args.get_node();
            }
 
            function onNodeMouseOut(sender, args) {
                //resets the currentNode value upon mousing out
                currentNode = null;
            }

 

It seems that some event is occurring that I can't cancel that closes the menu?

Thanks,

Bryan Kowalchuk

 

 

Bryan
Top achievements
Rank 1
 answered on 04 May 2016
1 answer
66 views

Hi Team,

 

I'm trying to load Popup edit form automatically in radgrid on button click.

I'm using below code to launcg popup.

 int index = ViewState["ROWINDEX"] != null ? Convert.ToInt32(ViewState["ROWINDEX"]) : -1;
             if (index > -1)
             {
                 //if (((System.Web.UI.WebControls.Button)(sender)).Text == "Next")
                 //{
                     this.gvGrowth.MasterTableView.Items[index].Edit = true;
                     this.gvGrowth.MasterTableView.Rebind();
                // }
             }

But the popup is not launched automatically , when i click on the button.

 

I'm using Telerik.Web.UI, v.2011.3.1305.40 , please let me know whether this version support this functionality or do we have any work around for this.

I followed the below link to develop my application and I'm using webuser control.

http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/edit-form-types/defaultcs.aspx

This is very urgent , can some one please help me.

Regards

Sai teja

 

Viktor Tachev
Telerik team
 answered on 04 May 2016
1 answer
258 views

Hi Tema,

 

I'm editing my grid vie win Popup mode,this is working fine.

This is the sample code of edit form settings

<EditFormSettings InsertCaption="Edit Item Template" CaptionFormatString="Edit ProjectID: {0}"
            CaptionDataField="ProjectID" EditFormType="WebUserControl"  UserControlName="~/UserControls/INGControl.ascx" PopUpSettings-ScrollBars="Auto" PopUpSettings-Modal="false"  PopUpSettings-Height="400px" PopUpSettings-Width="1000px" PopUpSettings-ZIndex="20">
            <EditColumn uniquename="EditCommandColumn1" ItemStyle-ForeColor="Blue" />
            <PopUpSettings ScrollBars="Auto" />
</EditFormSettings>

 

I want to place next and prev button in my edit form/user control and when use clicks on next ,I need to display next grid item details in popup/user control.

I've a req now, where I need to load next/previous record of the grid view in popup when user clicks on next/prev button.

Please share some samples.

I'm using 2011 Q3 Build.

 

Regards

Sai Teja

Eyup
Telerik team
 answered on 04 May 2016
2 answers
240 views

Any examples out there to tie a RadTooltip to the RadGantt column? 

Saw this thread: "ToolTip over tasks in the list on the left side of the gantt view", but having difficulties with how to tie the tooltip to the GanttBoundColumn.

Any help will be appreciated.

 

 

Nencho
Telerik team
 answered on 04 May 2016
1 answer
104 views

 

When I paste the below HTML in the RadEditor HTML View

<PB_START /><strong contenteditable="false">-----PageBreak-----</strong><PB_END />

Its generating the end tag for PB_START tag at wrong place. Please see below for the generated Html in the RadEditor corresponding to the above tag

<pb_start><strong contenteditable="false">-----PageBreak-----</strong><br><pb_end></pb_end><br></pb_start>

But we are expecting the end tag for pb_start tag after the start tag of <pb_start> not after the </pb_end> tag.

Please find below expected HTML

<pb_start></pb_start><strong contenteditable="false">-----PageBreak-----</strong><pb_end></pb_end>

Please let me know why the end tag </pb_start> is not after the <pb_start>. Is there any filter to resolve the above problem.


Marin Bratanov
Telerik team
 answered on 04 May 2016
1 answer
55 views

Hi,

I have the following scenario:

A Grid populated with some data. User can change order and size of columns. After that I require a button to export to PDF or Excel files with a method I have at at code behind. 

The changes were done by the user at client level....so my question is how I can reflect those changes into Server side.

I want to get the final order of the columns and their sizes in order to create PDF and Excel with those attributes.

Thanks in advance, hope you could help me with this or point me the right way to do it.

Regards

Oscar

Kostadin
Telerik team
 answered on 04 May 2016
1 answer
96 views

Hi,

 

Please help me in finding RadTextbox and updating RadTextbox value of other column in Radgrid

Note:- these operations should be done clientside

 

Thanks in Advance.

Eyup
Telerik team
 answered on 04 May 2016
8 answers
209 views

I am dynamically generating a RadWindow with an AJAX UpdatePanel added to it's ContentTemplate in my custom server control (during the control's Init event) like so:

_updatePanel = new UpdatePanel() { ID = string.Format("{0}_UpdatePanel", ID), UpdateMode = UpdatePanelUpdateMode.Conditional };
_modalWindow = new RadWindow();
_modalWindow.ID = string.Format("{0}_radWindow", ID);
_modalWindow.ContentContainer.Controls.Add(_updatePanel);

The server control with said RadWindow is also dynamically declared in a RadGrid's GridTemplateColumn. The idea is when the user edits a RadGrid record that contains a RadComboBox the user can view/edit the details of the selected RadComboBox item in a RadWindow popup. This all works fine until I attempt to hit the Save or Cancel button on the RadGrid to close edit mode.

I am aware of the following posts that describe why the error is happening but I am not sure how to go about solving this in my situation.

http://www.telerik.com/support/kb/aspnet-ajax/window/details/cannot-unregister-updatepanel-with-id-updatepanelid-since-it-was-not-registered-with-the-scriptmanager-error

http://www.telerik.com/forums/is-a-partial-postback-with-radwindow-possible

It seems the solution is to declare the RadWindow directly on the page. The problem is I am developing a server control, would it work if I got a reference to the Page and added it directly instead of to the ControlCollection of my server control?

 

Thanks!

 

Jonathan
Top achievements
Rank 1
 answered on 03 May 2016
5 answers
90 views
Hi i have this problem and you are my last choise, i explain you the scenary:
I use a FileExplore to let to user upload files to a Public Directory, i create the directory dinamically before the user work with the FileExplorer, the problem is that when the user has to work with the FileExplorer and Refresh it the file explorer change the path but thrown me an error called "NonExistingFolder", The implementation work fine but i don't want the error....
So the question is How avoid the error or how i do a best solution


To change the path dinamically i set it when a postback is called in the constructor of the page,

THANKS for helpme
Marin Bratanov
Telerik team
 answered on 03 May 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?