Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
107 views
Hello,

I have a content page where I have RadAutoCompleteBox with Token mode.

<telerik:RadAutoCompleteBox ID="rCitation" runat="server" Width="350px" MaxResultCount="20"
                    MinFilterLength="2" InputType="Token" TextSettings-SelectionMode="Multiple" OnClientEntryAdding="OnClientEntryAddingHandler"
                    AllowCustomEntry="true" WebServiceSettings-Path="~/AutoComplete.aspx" WebServiceSettings-Method="SearchAutoCompleteCitation" 
                    OnEntryAdded="rtb_EntryAdded" />

On Entry Added, I am trying to auto populate another control asynchronously. for that I have added the following AjaxSetting.

<telerik:AjaxSetting AjaxControlID="ractCitation" EventName="EntryAdded">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="rtbCaseName" LoadingPanelID="RadAjaxLoadingPanel1">
                </telerik:AjaxUpdatedControl>
            </UpdatedControls>
</telerik:AjaxSetting>

After adding a token, the async event is fired. However, after returning from async-callback, my pages is scrolling in such way that the autocompletebox comes to the bottom.

Interestingly, I have nother dropdownlist with similar behavior. But, the page position is intact after async-callback. The issue is with only autocompletebox.

Any solution?




SS









Hristo Valyavicharski
Telerik team
 answered on 19 Mar 2015
1 answer
104 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
256 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
98 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
71 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
213 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
533 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
396 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
262 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
62 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?