Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
177 views
Hello.
I have this issue: I have grid. When I try to add new record by EditForm I need to catch keydown. If Enter was pressed - save record, if Esc - Cancel.
if (e.keyCode == 13) {
     varmasterTable = $find("<%= grd.ClientID %>").get_masterTableView();
    masterTable.fireCommand("PerformInsert", "");
}

if (e.keyCode == 27) {
    var masterTable = $find("<%= grd.ClientID %>").get_masterTableView();
    masterTable.fireCommand("Cancel", "");
}

All that relates to saving is OK: I call fireCommand("PreformInsert", "") from javascript, in code behind grd_ItemCommand function gets command.
But when I press Esc grd_ItemCommand doesn't get command (but postback fires).

Could you help me by any advice?
Radoslav
Telerik team
 answered on 19 Mar 2015
6 answers
467 views
Hi,
How can I convert a radeditor into byte[]?
I need to pass something to my webservice and then save it as docx.
Is it possible?
Thanks
Ianko
Telerik team
 answered on 19 Mar 2015
3 answers
338 views
Here is the code:
I put it in RadCodeBlock at first, every thing works fine. I can open it, close it, and reopen it, close again...
MyWindow is the ID of RadWindow

function ShowWindow(url, width, height) {
    alert("test");
    var oWnd = $find($telerik.$("[id$='MyWindow']").attr("id"));
    oWnd.show();
    oWnd.setUrl(url);
    oWnd.setSize(width, height);
    oWnd.center();
  
}

but after I move this part to external JavaScript file and reference it from the original RadCodeBlock, I can open and close the radwindow, but after closing it, I cannot open it again anymore, but the alert("test") is still working. Can anyone do me a favor to tell me what's the problem in it? Thanks a lot!

Marin Bratanov
Telerik team
 answered on 19 Mar 2015
2 answers
215 views
Hello,
I have a problem when trying to refresh the grid. when editing a item in the FormTemplate I want the grid to refresh and open the same row that was opened.
I used this javascript function in order to do so:
  var refreshGrid = function () {
        var masterTable = $find("<%= RadGridTranslations.ClientID %>").get_masterTableView();
        var openedItem = masterTable.get_editItems()[0].get_element();
        masterTable.editItem(openedItem);
    }

My problem is that the grid refresh and only the row in the same index location is opened. for example if the openedItem was in row number 3 , and by the time the grid refreshed , 2 items have been added , after the editItem function the grid is refreshed and open row is number 3 even though the openedItem is number 5.

Any help will be appreciated,
Kind regards.
 
Jaya
Top achievements
Rank 1
 answered on 19 Mar 2015
1 answer
48 views
Work on vs 2012 Asp.net C# web page application.I am trying to implement a load on demand scenario for a RadComboBox but am struggling to get it to work with multi columns gridview.I don’t want to implement multi column combo box.

Is it possible to use grid inside combo box with out any server(C#) code. i dont want to implement bellow method in server(C#) side RadComboBox1_DataBound,RadComboBox1_ItemsRequested , RadComboBox1_ItemDataBound

Note:selected item also need to show in item Template and edit template.
Pavlina
Telerik team
 answered on 18 Mar 2015
10 answers
122 views
Hi
i am new to telerik  and asp.net but have been using the examples on the site to make rad grids and am able to edit and insert items.


I have radgrid and there is a column named status.  I want to add a different dropdown based on the value during inline edit mode

so if value in the rad grid cell is "drop". The list is  
drop
add
remove

if value is "taken" then the list is
taken
remove 
keep

so I need a different drop down for the same column depending on the value of the cell. 

Also so if the cell is a different value "waiting" then I don't want to allow editing at all 

thanks

Norway77
Top achievements
Rank 1
 answered on 18 Mar 2015
1 answer
85 views
 Work on Asp.net web page application.

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

1. Click to add a new record
2. The "Delete" link will appear in the new row - it would be nice to have the same X icon

want to Click "Delete" link - it fires a javascript event then i want a validation process on javascript event then want to delete the row

help me to invoke a javascript event on click delete link.
Konstantin Dikov
Telerik team
 answered on 18 Mar 2015
5 answers
165 views
This might be a dumb question, but I thought that when I went into VS2013 and did New, Project, that there would be 4 templates for Telerik Responsive sites?

I could have sworn I read that somewhere but I don't see them.

Alan Sawyer
Top achievements
Rank 1
 answered on 18 Mar 2015
2 answers
211 views
I would say 98% of time clicking the first item checkbox under the "Check all", the checkbox doesnt get checked on first attempt, and it shifts a few pixels left.  I saw this first in my app but it also does it on the listbox demo:

http://demos.telerik.com/aspnet-ajax/listbox/examples/functionality/checkboxes/defaultcs.aspx?skin=Bootstrap

It doesnt do it on Chrome, but does it on IE9 and Firefox.

Thanks.
David
Top achievements
Rank 1
 answered on 18 Mar 2015
0 answers
121 views
Download excel sheet  i got the below exception 

System.Data.OleDb.OleDbException (0x80004005): Operation must use an updateable query. at System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult hr) at System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) at System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) at System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) at System.Data.OleDb.OleDbCommand.ExecuteNonQuery() at in asp.net


I am using the  "sql = "Insert into [Data$]",connection  
MyConnection = new System.Data.OleDb.OleDbConnection("provider=Microsoft.Jet.OLEDB.4.0;Data Source='" + destPath + "';Extended Properties=Excel 8.0;");

Please help me 
NA
Top achievements
Rank 1
 asked on 18 Mar 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?