Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
123 views
Hi,

I  am trying to print a view that has telerik grid, I want all rows to appear in the printed output, so I gave the grid height 2500 px, the grid show all rows, but when i print the page, the first page has blank area after columns header

please find attached a sample of the print output in PDF.

please tell me how to fix it.
Pavlina
Telerik team
 answered on 12 Jan 2015
1 answer
101 views
We have a grid that has a GridDateTimeColumn with the globalization culture info settings set to "en-GB".  If I enter the date "30/12/2014" and save it to the database, the column maintains the correct formatting of "dd/MM/YYYY" after the save postback completes.  However, if I enter "06/01/2015" and click save, the date format changes to "01/06/2015" after the postback.  The date is saved correctly in the db as "12/30/2014" and "01/06/2015".

I'm at a loss as to what the problem could be.  Checking CultureInfo and CultureUIInfo shows the following:
CultureInfo = "en-GB"
CultureUIInfo = "en-US"

Internet Explorer's "Language Preference" has only "English (United Kingdom) [en-GB]" in its list.

Even when I set CultureUIInfo to "en-GB" manually in the page_load, the problem persists.

Please help,

Thank you,
James
Angel Petrov
Telerik team
 answered on 12 Jan 2015
3 answers
93 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
245 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
93 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
138 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
44 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
286 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
85 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
71 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
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
Iron
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?