Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
250 views
Hi, I was browsing this topic http://www.telerik.com/help/aspnet-ajax/client-update-insert-delete.html looking for a way to insert a new item at the end of a RadGrid since I'm having a few issues. I was hoping there was a simpler way to do this. Let me briefly explain what I'm trying to do.

I'm attempting to create more of a quick data entry style grid. In order to do so every cell in every row of my grid has a RadTextBox control in which the user can enter data. If the grid initially has 3 rows of data I append a 4th row that is empty, the row designated for the next set of data to be entered. When the user types into a textBox of the last row in the grid I want to do a client-side insert of a new, empty row.

Each textBox has the following javascript function assigned to its OnKeyPress ClientEvent:

        function DetailGridKeyPressed(sender, args)  
        { 
            var masterTable = $find("<%= EntryGrid.ClientID %>").get_masterTableView(); 
            var items  = masterTable.get_dataItems(); 
            var i = 0; 
            var j = 0; 
             
            for(i = 0; i < items.length; i++)  
            {             
                if (items[i].findControl(sender.get_id()) != null)  
                { 
                    if (i + 1 == items.length)  
                    { 
                        masterTable.insertItem(); 
                    } 
                    break; 
                } 
            }   
        } 

But when masterTable.insertItem() executes I get the following javascript error:

Sys.WebForms.PageRequestManagerServerErrorException: Insert item is available only when grid is in insert mode.

Is there a way I can put the grid item insert mode on the client?

Thanks in advance.
Rosen
Telerik team
 answered on 19 Feb 2009
1 answer
153 views
Hi Folks,

I have a contextmenu on my menu.  working fine.

In the contextMenu *Serverside*  ItemClick event, how do I get to the underlying menu items DataValueField?

I have my ID col bound to the Menu.  I just need to retrieve it so I can Edit or Delete the underlying data item.
Thanks,
Bob
Shinu
Top achievements
Rank 2
 answered on 19 Feb 2009
1 answer
73 views
With the new Q3 release, is this still the best way to accomplish a drag/drop from a grid to a treeview with the rad controls? 
http://www.telerik.com/community/code-library/aspnet-ajax/general/drag-and-drop-between-radgrid-and-radtreeview.aspx

Thanks,
Steve
Yavor
Telerik team
 answered on 19 Feb 2009
1 answer
118 views
Hi all,

Is there any Possibility to place  export to excel in side Radgrid (Beside to refresh icon). and export grid to excel.

I tried using  commanditem template it's working but while exporting some constraints i m facing  like(exporting referesh ,Add new record ,export to excel images and links ) even if i use ExportOnlydata="true" property also.

It would be great any help.


Shinu
Top achievements
Rank 2
 answered on 19 Feb 2009
3 answers
174 views
I need to use a RadWindow that works like a radconfirm (in the sense that it returns true/false) but I need more than just simple text on the confirm dialogue (which is why I can't use a radconfirm).  How can I acheive this (as well as have it "block" the page until a yes/no is clicked)?
Georgi Tunev
Telerik team
 answered on 19 Feb 2009
1 answer
58 views


if i am dropping the node from tree view to image (like recycle bin in desktop ), at this time I wanted open or close the radsplitter bar?  

Svetlina Anati
Telerik team
 answered on 19 Feb 2009
2 answers
172 views
Hi,

I have a web form that has several asp:textbox s on it it. Is it possible to attach a RadEditor to each textbox rather than having to replace them with a seperate RadEditor for each.

Also, I have seperately added the RadSpell control to the form and added some Javascript code so that when an asp:button is clicked it spell checks all of the textboxes on the web form. Can this spell check be performed on the RadEditor control is my above question is not possible?

Another also, if I do need to add RadEditors instead of asp:textbox s how do I remove the border colour that goes around the RadEditor as I would like the RadEditor to look like a usual textbox.

Regards
Gary
Gary
Top achievements
Rank 1
 answered on 19 Feb 2009
1 answer
146 views
i have two rad combo box
 whenever i select item in first rad combo box , their should be check that second combobox  selected index is 0 or more than 0 ,
OnClientSelectedIndexChanging of first combo box
similarly from second to first status has to check




Princy
Top achievements
Rank 2
 answered on 19 Feb 2009
2 answers
159 views
Hi,

Can someone tell me how to sort a node collection client-side pls
ali
Top achievements
Rank 1
 answered on 19 Feb 2009
2 answers
141 views
hello i am using EditorDropDown but i kip getting this error "the command InsertEmoticon is not implemented yet.
this is my code please help me

EditorDropDown InsertEmoticon = new EditorDropDown("InsertEmoticon"); 
                InsertEmoticon.Text = "Dynamic dropdown"; 
 
                //Set the popup width and height 
                InsertEmoticon.Attributes["width"] = "110px"; 
                InsertEmoticon.Attributes["popupwidth"] = "240px"; 
                InsertEmoticon.Attributes["popupheight"] = "100px"; 
                                
                for (int i = 1; i < 94; i++) 
                { 
                    InsertEmoticon.Items.Add(new EditorDropDownItem("<IMG SRC='pages/emoticons/"+i+".gif' />", "pages/emoticons/"+i+".gif")); 
                    
                } 
                main.Tools.Add(InsertEmoticon); 
                //main.Tools.Add(InsertEmoticon);   
                editor.OnClientCommandExecuted = "OnClientCommandExecuting"; 
               string script = "function OnClientCommandExecuting(editor, args)" + 
               "{" + 
                   "var name = args.get_name();" + 
               "var val = args.get_value();" + 
               "if (name == 'InsertEmoticon'){" + 
               "editor.pasteHtml('<img src=\"' + val + '\"/>');" + 
               "args.set_cancel(true);" + 
               "}" + 
               "}"; 
 
                Page.ClientScript.RegisterStartupScript(this.GetType(), "InsertEmoticon", script, true); 

dan
Top achievements
Rank 1
 answered on 19 Feb 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?