Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
74 views
Dear Telerik Team,

I have requirement to show result set into RAD Grid with Hyperlink for all / few column with each colum has different navigate URL and each row has it's own value in the querysting.

since result set from database will not be same and reference column also not same.

In Design time I won't define anything.

could you provide code snipet that does everything on run time.

with Regards
Palanivelrajan
Shinu
Top achievements
Rank 2
 answered on 18 Apr 2013
3 answers
974 views
Have a scenario, where a form includes dropdown box and RadEditor.

Once the user enters the Audit Status and Audit Objectives. The data is saved in the database. And from the database it is exported to the excel sheet. But since Audit Objectives field is a RadEditor control, the user enters the formatted data, which includes html tags like <p>, <span>, <br> etc.
When the data is exported to excel sheet, it does not store the entire data(audit objectives) in one cell, rather where it finds the <p>, <div> etc tags it breaks the data and copies the data in the new cell. Like the image below.

The cell B2 should store the entire text Paragraph line1 and line2 (as formatted in the Rad Editior).
The Html stored in the db is
<table>
        <tr>
            <td>
                <p style="mso-data-placement: same-cell;">
                    Paragraph</p>
                <span style="margin: 0px 0px 12px 0px; text-align: left; text-indent: 0pt; padding: 0px 0px 0px 0px;
                    mso-data-placement: same-cell;"><span style="font-family: 'Verdana'; font-style: Normal;
                        font-weight: normal; font-size: 16px; color: #000000;">line1</span></span>
                <br style="mso-data-placement: same-cell;">/>
                <span style="margin: 0px 0px 12px 0px; text-align: left; text-indent: 0pt; padding: 0px 0px 0px 0px;
                    mso-data-placement: same-cell;"><span style="font-family: 'Verdana'; font-style: Normal;
                        font-weight: normal; font-size: 16px; color: #CA6919;">line2</span> </span>
            </td>
        </tr>
    </table>
Please Note : Am exporting the excel data using JAVASCRIPT.

Please suggest.
ASAP!!
Slav
Telerik team
 answered on 18 Apr 2013
6 answers
107 views
I want to create a custom RadFilter

I want to show a dropdown(combo) but have the choices be IN or NotIN I would actually call them "In Order" and "Not In Order"

my data would look like the following.

orderID | OrderDate | ProductList
123456   04/01/2013   15,16,17,18,19

here is an image of what I am trying to do.


moegal
Top achievements
Rank 1
 answered on 18 Apr 2013
6 answers
116 views
When I set ContentScrolling="Auto" the left border of the tooltip is missing in opera, chrome and IE9.  I tried tooltipBorderHack but it doesn't seem to work.

The screen shot is from the online demos right here.

Thanks, Marty
moegal
Top achievements
Rank 1
 answered on 18 Apr 2013
1 answer
117 views
Hi Telerik Team!

I have been trying to get a solution to this but without any success, I have added some posts but any answer.
Please if you dont mind would appreciate your help.
This is my scenario:

BookingDate      BookingValue

1/1/2013              3
3/1/2013              6
13/2/2013            5
3/4/2013              3
13/4/2013            15
I just wnat to group by BookingDate(just by month) and Sum BookingValue for all the items belong to the same month (year was filter priviously), I need to show this information in a RadChart, my X would be month (from 1 to 12, even if there are not BookingValue for a month) and my Y would be my BookingValue.
I have been trying many ways but without any success. Please if you can hel me as soon as possible I really appreciate it! Thanks!
One thing I did was grouping all first but with anonymous type, but then dont know what to do???
Thanks!
Petar Kirov
Telerik team
 answered on 18 Apr 2013
1 answer
48 views
I am debugging code written by another developer.  It is and ASP.NET / C # Web Application.  The ASP code (actually, the .aspx file) defines a control denoted as:
<tel:RadAjaxPanel...
Unfortunately, in the Visual Studio editor, the design view does not provide any usable content.  It says "Error Reading Control".  So this is why I am posting here.  How do I edit or view the settings related to this object?

In addition to the .ASPX.CS file that corresponds to the .ASPX file, I see that there is also a .ASPX.DESIGNER.CS file.  I think this must have something to do with this.  Is there some sort of editing tool or plug in I can use?
Maria Ilieva
Telerik team
 answered on 18 Apr 2013
1 answer
105 views
Hi.

I have unit dropdown on grid header which converts values from centigrade to kelvin. When I filter data first time (i.e. default unit C) it works perfectly, after conversion to kelvin i'm getting updated datatable from database, but when i tried to do filter on converted data it is not working.

Thanks,
Kumar
Eyup
Telerik team
 answered on 18 Apr 2013
1 answer
72 views
Hi,

I have a rad grid in which I have a column which is a template column and this column is always in edit mode.
The template column has a rad Date Picker. I want to set the rad date picker date in the RowCreated Client side event of the rad grid.

<telerik:GridTemplateColumn UniqueName="CustomerStartDate" HeaderText="Customer Start Date"
    DataField="CustomerStartDate" HeaderStyle-Width="80px" SortExpression="CustomerStartDate">
    <ItemTemplate>
            <telerik:RadDatePicker ID="radDatePickerCustomerStartDate" runat="server" DbSelectedDate='<%# Bind("CustomerStartDate") %>'
            ShowPopupOnFocus="true" DateInput-DateFormat="MM/dd/yyyy">
            <ClientEvents OnDateSelected="radDatePickerCustomerStartDate_OnDateSelected"></ClientEvents>
        </telerik:RadDatePicker>
    </ItemTemplate>
</telerik:GridTemplateColumn>

I have tried with this but its unable to do so,

var date = new Date();
args.get_gridDataItem().findControl(
'radDatePickerCustomerStartDate').get_element().set_selectedDate(date);

Please help me out. I need to do it in the RowCreated event handler on client side.
Bibhudutta
Top achievements
Rank 1
 answered on 18 Apr 2013
1 answer
189 views
I am having trouble getting the DataNavigateUrlFormatString to work properly with client-side databinding.

I am binding the RadGrid client-side to a serialized collection of JSON objects.  One of the object's properties is a JobID, which is a string representation of a GUID such as 'E45FA7DC-EAE5-4443-B72D-806D18FAE428'

I need to pass this string to a Javascript function, I am using a GridHyperlinkColumn in the RadGrid to do this:

<telerik:GridHyperlinkColumn DataTextField="JobStatus" HeaderText="Job Status" DataNavigateUrlFields="JobID"
        DataNavigateUrlFormatString="javascript:OpenJobInfoWindow('{0}');" >
    <ItemStyle Width="180" />
</telerik:GridHyperlinkColumn>

I am getting the Javascript error "Unexpected token {" after calling the mastertableview.dataBind() function in Javascript (Google Chrome):
Uncaught SyntaxError: Unexpected token {
Telerik.Web.UI.WebResource.axd:12965
Telerik.Web.UI.GridTableView._prepareHyperLinkColumnElement Telerik.Web.UI.WebResource.axd:12965
Telerik.Web.UI.GridTableView.dataBind Telerik.Web.UI.WebResource.axd:12883
RefreshSummaryCallback Status.aspx:216
l Telerik.Web.UI.WebResource.axd:6
(anonymous function) Telerik.Web.UI.WebResource.axd:6
Sys.Net.WebRequest.completed Telerik.Web.UI.WebResource.axd:6
_onReadyStateChange

This appears to have to do with the DataNavigateUrlFormatString.  From what I can tell, it specifically has to do with having single quotes around the {0} placeholder in the DataNavigateUrlFormatString property of the RadGridHyperlinkColumn.  If I remove these, everything binds correctly:
<telerik:GridHyperlinkColumn DataTextField="JobStatus" HeaderText="Job Status" DataNavigateUrlFields="JobID"
        DataNavigateUrlFormatString="javascript:OpenJobInfoWindow({0});" >
    <ItemStyle Width="180" />
</telerik:GridHyperlinkColumn>

Problem is, I have to have the single quotes there, since the value I am passing as a parameter to OpenJobInfoWindow is a string.  What can I do to make this work?
Antonio Stoilkov
Telerik team
 answered on 18 Apr 2013
3 answers
123 views
please help me ! When i upload my image to ImageManager , but i don't see my image, i just see a blank image. when i using imageeditor i see this image.
Rumen
Telerik team
 answered on 18 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?