Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
108 views
Hi,
We're wanting to wrap the TreeMap control in our own client side object. We've done this successfully for the RadGrid and RadHtmlChart. We've got the TreeMap working great, but not we want to extend the functionality to handle the tooltips like in your demo... to do that we want to bind the onItemCreated event in javascript. Can someone provide the syntax for this? We've tried:
var test = map.get_kendoWidget();
test.bind("itemCreated", function (e, d, k) {
                alert('test');
});
but to no avail!

Any help appreciated.
Peter Filipov
Telerik team
 answered on 19 Mar 2015
1 answer
267 views
I want to bind a grid to a linqdatasource. The date in the db as stored as an integer like so 20070205 (YearMonthDay).
When I try toconvert the int to a date in the linq query like so
var q = from i in ICILOCs
select i.LASTRCPTDT.ToString("MM/dd/yyyy");
I get an error:
Method 'System.String ToString(System.String)' has no supported translation to SQL.

I can load the results into memory with ToList() and then parse it. The problem is I will loose the efficient paging with the grid. 
Or I can parse it on ItemDatabound, the problem is that how will I set the filter for this field in the grid? It should a calendar dropdown, not an integer textbox.
Do you have any solution for this?
Kostadin
Telerik team
 answered on 19 Mar 2015
1 answer
101 views
Hello,
is there a way to select some text and highlight them in editor from code behind?

i am facing this problem for many days, so any help is much appreiated.
Ianko
Telerik team
 answered on 19 Mar 2015
3 answers
77 views
In a current visual studio.net 2010 application that uses a Telerik tool to allow users to autogenerate letters, there is an html problem. When there is an  area where the user places has option 1 and option 2, the requestor wants a description of what the meaning is for each option. The user wants the wording to appear on one line. However the wording scrolls down the page like it is filling up an cell in excel spreadsheet.
The following is the auto generated html:

<table style="border: currentColor; border-image: none; border-collapse: collapse;" border="0" cellspacing="0" cellpadding="0">
    <tbody>
        <tr>
            <td valign="top" style="border-color: #f0f0f0; padding: 0in 5.4pt; background-color: transparent;">
            <p>&nbsp;</p>
            <p>Option 1</p>
            <p><span style="font-size: 11pt;">I have scheduled a collaborative plan</p>
            </td>
        </tr>
        <tr>
            <td valign="top" style="border-color: #f0f0f0; padding: 0in 5.4pt; background-color: transparent;">
            <p>&nbsp;&nbsp;</p>
            <p>Option 2</p>
            </td>
        </tr>
        <tr>
            <td valign="top" style="border-color: #f0f0f0; padding: 0in 5.4pt; background-color: transparent;">
            <p><span style="font-size: 11pt;">No meeting required.&nbsp; <br />
            </span></p>
            </td>
        </tr>
    </tbody>
</table>
 Would you tell me what can be done to solve this problem? Does the user need to click somewhere special inside of the editor?
Ianko
Telerik team
 answered on 19 Mar 2015
6 answers
218 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
542 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
401 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
268 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
64 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
164 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?