Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
111 views
I have a sortable radgrid.  We are using skin="" and styling the grid ourselves.  With no skin, there are no arrows or indicators next to the text to tell the user this column is sortable.  The text on sortable fields is bold and when you mouse over a "Click here to sort" hint comes up.  But I have just been told by my client that this isn't a good enough indicator.  They want arrows to tell the user that it's sortable.  There currently are no arrows which I'm sure is proper for no skin.  However, when the user clicks the sort text, an up or down arrow shows up.  I tried adding an image in ItemDataBound and it worked ok but as soon as the user clicks the text I get both my image AND the up/down arrow from the grid.  Is there any way to either add both up and down arrows on default state or hide the arrows when sorted so I can add my own image in ItemDataBound?  
Pavlina
Telerik team
 answered on 12 Jan 2015
1 answer
273 views
Hi, I have this raddatepicker: 

                                                                                       <telerik:RadDatePicker ID="datePicker" runat="server" MinDate="1900-01-01" 
                                                                                            DateInput-Width="217px" Culture="en-GB" 
                                                                                            DateInput-Enabled="false"  Skin="Sunset" Width="247px"  >
                                                                                           <ClientEvents OnDateSelected="getTripsAndHistory" />
                                                                                            <Calendar ID="Calendar3" RangeMinDate="1900-01-01" runat="server" >
                                                                                            </Calendar>
                                                                                                <DateInput Enabled="False" DisplayDateFormat="dd/MM/yyyy" DateFormat="dd/MM/yyyy"></DateInput>
                                                                                                <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                                                                        </telerik:RadDatePicker>

which has <ClientEvents OnDateSelected="getTripsAndHistory" />

The problem, I need to write the event in jQuery Ready block:

         (function ($) {
             $(document).ready(function () {

                 function getTripsAndHistory(sender, eventArgs) {
                     var date = eventArgs.get_renderDay().get_date();
                     var dfi = sender.DateTimeFormatInfo;
                     var formattedDate = dfi.FormatDate(date, dfi.ShortDatePattern);
                     alert(formattedDate + " was just " +
                     (eventArgs.get_renderDay().get_isSelected() ? "selected. " : "unselected. "));
                 }

             });
         })(jQuery);

I am getting an error in firebug --> ReferenceError: getTripsAndHistory is not defined
How can I solve it without removing the event function from jquery ready block?

Kostadin
Telerik team
 answered on 12 Jan 2015
2 answers
119 views


http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multicolumncombo/defaultcs.aspx

 

Please find the attached screenshot.

I just followed the same code for implementation, but the
chosen value get changing to the first item ‘Ana Trujillo’.

The above scenario only happening whenever exist the
duplicate values of ‘Title column‘.

 

Ex: In my scenario ItemDataBound event
Text is ContactName and Value is Title.

The ComboBox data binding happens only once on page load
in page life cycle.

 

The failure case at the movement is considering the
selection item get changes the item to first instance of the duplication of the
‘Title’ column.

Any help please.

Nencho
Telerik team
 answered on 12 Jan 2015
1 answer
161 views
Hi,

I have a custom control which works as a pager: it's a RadListView in which each element is sort of a button which postbacks

This ascx is used in 2 projects; in the first one everything works like a charm: when a button is clicked, the event is raised and handled by the ascx
In the second one, however, something went wrong: clicking on the button does the postback, but does not fire because, I've discovered, the target isn't there no more

In practice, in project 1 the RadListView re-create its items (as stated here), while in the second one items are not created after the button's postback
Since the button isn't there, __EVENTTARGET is null and the event fails

Both projects are quite knotty, since have a main page, the pager ascx and the button (which is an hyperlink child class object), and I can't post'em publicly.. but a smaller project would of course work, such the project 1 does, so I can just wonder what went wrong without reproducing it

I think there's little I could broke since the ItemCreated should occur before the page_load, but clearly something is different and I don't know what could it be.. any ideas?

Thanks
Konstantin Dikov
Telerik team
 answered on 12 Jan 2015
1 answer
59 views
I have a RadGrid with paging and sorting enabled.  On first load, the page size dropdown works well - i can select a new page size.  But once i do so, the page size selector stops working, although the page size i previously selected is remembered.  There doesn't seem to be any script errors on the page.  What can cause such behaviour?
Pavlina
Telerik team
 answered on 12 Jan 2015
1 answer
313 views
I am trying to use the ASP.NET 4.5 Model Binding features of RadGrid in version 2013.3.1114. My SelectMethod is defined in a Business Object. RadGrid throws an exception indicating that it cannot find the method on the page.

I have implemented the OnCallingDataMethods event:

protected void CallingDataMethods(object sender, CallingDataMethodsEventArgs e)
{
    e.DataMethodsObject = new BLL();
}

However, RadGrid still attempts to locate the SelectMethod on the page object. Using the OnCallingDataMethods event of RadComboBox works correctly, so I am surprised that it is not working for RadGrid.

Has this been resolved in newer versions of RadGrid? If not, what are my options?
Konstantin Dikov
Telerik team
 answered on 12 Jan 2015
0 answers
97 views
When i sort my grid i get Z before a,b,c,d,e,f 

How do i solve it?

i use vb.net MVC

Urgent!
Offir
Top achievements
Rank 1
 asked on 11 Jan 2015
1 answer
109 views
Here is the code I tried to store the data in binary format for the uploaded file.....................



protected void Button1_Click(object sender, EventArgs e)
{
    int PartyRowId = 0;
    foreach (UploadedFile file in AsyncUpload1.UploadedFiles)
    {
        byte[] bytes = new byte[file.ContentLength];
        file.InputStream.Read(bytes, 0, Convert.ToInt32(file.ContentLength));
        string json3 = "{'PartyRowId':" + PartyRowId + ",'CommonCategoryRowId':" + PartyRowId + ",'CommnonCategoryAttributesRowId':" + PartyRowId + ",'PartyDoc':" + bytes + "}";
        string status = ClsUtility.HttpPost("http://localhost/ServiceWrapper/MetaData.svc/PartyDocumentsID", json3);
 
    }
}


i get the Json as


{'PartyRowId':0,'CommonCategoryRowId':0,'CommnonCategoryAttributesRowId':0,'PartyDoc':System.Byte[]}


not able to retrieve the binary data Please help me......



Gopi
Top achievements
Rank 2
 answered on 10 Jan 2015
1 answer
160 views
In a RadTreeList I need to show only the first 50 chars in a specific column unless a session variable is valid.

<telerik:TreeListBoundColumn UniqueName="TextM" DataField="TextM" HeaderText="Message" HeaderStyle-Width="400">
 <HeaderStyle Width="400px" ></HeaderStyle>
</telerik:TreeListBoundColumn>

Is there a way to achieve such feature?

Thanks for supporting,

Felice
Felice
Top achievements
Rank 1
 answered on 10 Jan 2015
4 answers
148 views
Hi,

I am using the skin Office2010Silver but i have a problem when selecting a row in the treelist. The background changes when the row is selected but it does not took up all the row.
It is like it was prepaired for rows of a specified height but my rows are a bit higher.

How can i solve it? Thank you.

Pavlina
Telerik team
 answered on 09 Jan 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?