Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
43 views
I want wen user click on Button "Choose Image" magemanager will appear. then when user click on an imager, image's url wil appear on a text box
ckeditor can do this but not good. I don't know how to do that with rad controls can you hel me
Thankss
Ianko
Telerik team
 answered on 28 Oct 2013
1 answer
57 views
I have the following issue with my grid needdatasource method, can't figure out why this keeps happening and its killing me:

    void grid_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
    {
        RadGrid grid = (RadGrid)sender;
        string id = grid.ID;
        DataTable current = (DataTable)HttpContext.Current.Session[int.Parse(id.Split(new string[] { "RadGrid" }, StringSplitOptions.RemoveEmptyEntries)[0])];
        grid.DataSource = current;
    }

If i go to the page directly no problems what so ever, everything works perfect,but if i try to navigate to that page from a different page, lets say using server.trasnfer or response.redirect, i keep getting this error:

Unable to cast object of type 'System.Int32' to type 'System.Data.DataTable'.

On this line, does anyone know why this would happen or how to fix it?
Eyup
Telerik team
 answered on 28 Oct 2013
1 answer
175 views

I am trying to use the client side repaint method. But I can not seem to get it to work.  Can anyone give me the correct way to access the method?


Part of my javascript function:

            var payeeElement = window.$find(var_radPayeeSearchClientID_fromASPX);
            payeeElement.control.repaint();



Thanks.
Shinu
Top achievements
Rank 2
 answered on 28 Oct 2013
1 answer
111 views
Hi,

I have the following script rendering in my aspx:


Sys.Application.add_load(function () {
    var target = $find('{0}');
 
    alert(target.get_id());
    //finds it
 
    $addHandler(target, "OnClientItemsRequested", function (sender, e) { alert('OnClientItemsRequested'); });
    $addHandler(target, "onclientItemsRequested", function (sender, e) { alert('onclientItemsRequested'); });
    $addHandler(target, "clientItemsRequested", function (sender, e) { alert('clientItemsRequested'); });
    $addHandler(target, "clientitemsrequested", function (sender, e) { alert('clientitemsrequested'); });
    $addHandler(target, "onclientitemsrequested", function (sender, e) { alert('onclientitemsrequested'); });
 
    //none fires
});

The alert showing server id fires, nothing else happens after using the auto-populate, while the same event works when I configure the event-handler in combobox's properties.

My problem is none of the subscriptions works, so is there a way to attach an event-handler function for OnClientItemsRequested in JS?

Thx in advance,
Branimir Giurov
Shinu
Top achievements
Rank 2
 answered on 28 Oct 2013
20 answers
1.1K+ views
After setting a filter, I need to get the count of the records that match the filter. 

The footer displays it but I can't figure out how it does it.

Thanks,

Chad
Princy
Top achievements
Rank 2
 answered on 28 Oct 2013
1 answer
652 views
I am having trouble with formatting a column that is bound to a nullable datetime field. The grid is bound on the client side using ajax. Wondering if anyone has seen this behavior before, and if so, what the solution was.

Here is the part of the grid instantiation code that formats the nullable datetime field:

columns.Bound(c => c.MediaFileVersion.MediaFile.LastCheckOutDate).ClientTemplate("<#= $.telerik.formatString('{0:MM/dd/yyyy - hh:mm tt}', GetDateFrom(LastCheckOutDate)) #>").Title("Check-out Date");
                        

The LastCheckOutDate field is of type nullable datetime.

The page has a javascript error like this:

Uncaught ReferenceError: LastCheckOutDate is not defined

It seems that Telerik grid does not know how to render a nullable datetime field. Would appreciate any help or ideas relating to the above problem.

Thank you




Viktor Tachev
Telerik team
 answered on 28 Oct 2013
1 answer
45 views
I have three different datasets.  The user is going to be toggling between the three datasets.  The three datasets are different data, and when they are swapped out, the labels need to be changed client side.  In the future, more data sets could be added with different column names, so I need a way for this process to be dynamic.

How can this be done?

Marin Bratanov
Telerik team
 answered on 28 Oct 2013
1 answer
140 views
Hi,

I have created a AutoCompleteBox similar as the following:
<telerik:RadAutoCompleteBox ID="TEST" runat="server" AllowCustomEntry="false" DropDownPosition="Automatic" InputType="Token" RenderMode="Lightweight" Delimiter="," DataTextField="field_name" DataValueField="field_value">
<WebServiceSettings Path="Default.aspx" Method="GetSet" />
</telerik:RadAutoCompleteBox>

And in the code behind as the follows:
Imports Telerik.Web.UI
Imports System.Data
Imports System.Web.Services
 
Partial Class _Default
    Inherits System.Web.UI.Page
 
    <WebMethod()> _
    Public Function GetSet(context As RadAutoCompleteContext) As AutoCompleteBoxData
        Return Nothing
    End Function
 
End Class

After put some text in the AutoCompleteBox, he will alert 'the method 'GetSet' failed' all time. The breakpoint i had putted at the first rule of the webmethod don't fire. This did worked with other controls, but not with this control.

Known issue or am i doing something wrong?
I have checked the example in your documentation already.
Shinu
Top achievements
Rank 2
 answered on 28 Oct 2013
8 answers
161 views
Hi,

We are currently implementing the grid control and like the various filter options but wanted to know if someone has achieved an Excel Style Multi Select filter, similar to how the new version of the Silverlight control works? Our problem is that from the column filter dropdown, we want to be able to select ALL or nothing or pick several items that are not in a range for example option 1,3 and 9.
The silverlight control looks like it would do the trick, is there something similar out there?
http://demos.telerik.com/silverlight/#GridView/FirstLook

Thanks in advance,
Adam
Eyup
Telerik team
 answered on 28 Oct 2013
1 answer
125 views
Hi , 
     Bubble and donut charts are  not supporting, While binding with string value in x-axis , it shows error . please tell me the solution to bind the  string value to the  x-axis with the radhtmlchart .

thanks .

Marin Bratanov
Telerik team
 answered on 28 Oct 2013
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?