Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
291 views
Hello,

 I've Sortting  with Date type but use telerik:GridTemplateColumn in radGrid. But it always sort like string type, note date type. My code is:

    <telerik:GridTemplateColumn HeaderText="Date" ItemStyle-Width="100"
                            SortExpression="Date" UniqueName="Date" DataField="Date"
                            CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="true"
                            FilterControlWidth="100%">
                            <HeaderStyle Font-Bold="true" />
                            <ItemStyle Width="70" />
                            <ItemTemplate>
                                <%# (ConvertHelper.ToDateTime(Eval("Date"))).ToString("dd.MM.yyyy")%>
                            </ItemTemplate>
                             <EditItemTemplate>
                                <telerik:RadDatePicker ID="rdDate" runat="server" Culture="German (Switzerland)" Width="100"
                                    Skin="abc" EnableEmbeddedSkins="false" SelectedDate='<%# (ConvertHelper.ToDateTime(Eval("Date"))) %>'>
                                    <DateInput Width="70" runat="server">
                                    </DateInput>
                                </telerik:RadDatePicker>
                            </EditItemTemplate>
                        </telerik:GridTemplateColumn>

Please help me sortting in this case. Use <telerik:GridTemplateColumn>.....</telerik:GridTemplateColumn and Sortting by Date Type, not string type.

Thanks, 

Nguyen Quang Hung
Jaya
Top achievements
Rank 1
 answered on 17 Apr 2015
1 answer
95 views

hey guys - this is the code on a "stand alone" rad filter. my question is the alignment. how can I can the "apply button" to stay to the left or at least underneath the actual filter. it seems to have a mind of its own and want's to "drift" to the right.

thanks for any info (pic attached)

rik

 

 

<div style="margin: 0 0 14px 0;">
<table style="width: 100%">
<tr>
<td>
<telerik:RadFilter ID="PostResultsRadFilter" runat="server" Skin="WebBlue" ShowApplyButton="true" Width="200px"
OnApplyExpressions="PostResultsRadFilter_Apply" OnPreRender="PostResults_PreRender" ApplyButtonText="Filter Post Results">
<%--OnPreRender="WorkOrdersRadFilter_PreRender" OnFieldEditorCreating="RadFilter_FieldEditorCreating"--%>
<FieldEditors>
<telerik:RadFilterTextFieldEditor FieldName="JOINTNUMBER" DisplayName="Joint#" DataType="System.String" />
<telerik:RadFilterTextFieldEditor FieldName="DEFECTDESCRIPTION" DisplayName="Defect Desc"
DataType="System.String" />
</FieldEditors>
</telerik:RadFilter>
</td></tr></table></div>

Eyup
Telerik team
 answered on 17 Apr 2015
1 answer
74 views

Hello,

I want to create RadTreeView from java script.

 

I have used below code to create RadTreeView.

var treeview1 = new Telerik.Web.UI.RadTreeView();

 

But I am getting below error.

 

Microsoft JScript runtime error: Unable to set value of the property 'control': object is null or undefined

 

Please help me to create RadTreeView from java script.

 

Peter Filipov
Telerik team
 answered on 17 Apr 2015
36 answers
2.3K+ views
Using the Rad upload control in IE 8, it now shows c:\fakepath\myfile.doc when I browse to a file. It replaces the actual local path with c:\fakepath ... why is this?

thanks,
Jay
siva
Top achievements
Rank 1
 answered on 17 Apr 2015
1 answer
89 views

Is there any way to bind a RadGrid to the ID of the selected task and refresh when the selected task changes? 

We have additional fields that we want to add to the resources and collect other information tied to the task that would be easier to do in a RadGrid outside of the control.   (Also want to maintain the selected task when refreshing the other grids.)

Dimitar Terziev
Telerik team
 answered on 17 Apr 2015
9 answers
260 views
Hello Telerik Support Team,

Can you please advise me on how I can achieve this.

On the week View if I have many resources selected in a timeslot and gets real crowded. So I would like to limit to number of appointment appearing per day. I know the month view has the property but not the week view,

Please see attached screen shot for clarification.

Thank you for your help.

Regards,
Mafed
Plamen
Telerik team
 answered on 17 Apr 2015
1 answer
242 views
I am update dll of telerik.web.UI.dll in my existing asp.net application but after updation uploading feature is very slow ,It take too long time . what's reason, Please help.
Plamen
Telerik team
 answered on 17 Apr 2015
1 answer
136 views

With checkboxes enabled: 

 - How do I get the selected values in a RadDropDownTree?

 - How do I enumerate the checked values in a RadDropDownTree?

 - How do I determine if checkbox is at a particular depth? 

 

 

Plamen
Telerik team
 answered on 17 Apr 2015
4 answers
149 views

I want to bind below datatable into a radmenu control with sub node.Please help me with some sample code.

Menu should be generate like below.
Campaigns & Program
-> Advertising->Bundel, Business Class, Etc
Tactics & Branded Example -> Adverting And Design->Bill Insert, Billboard, etc


My datatable contain following data-

ID          Title                                              Parent      Level       sno         Root        URL                
----------- -------------------------------------------------- ----------- ----------- ----------- ----------- --------------------
1           Campaigns and Programs                  0           1           1           1           CampaignHeader.aspx  
5           Tactics and Branded Ex                      0           1           1           2           TacticHeader.aspx
6           Advertising and Design                       5           2           1           2           home_page.aspx  
6           Advertising and Desi                           5           2           1           2           home_page.aspx  
7           Bill Insert                                             6           3           2           2           NULL    
7           Bill Insert                                             6           3           2           2           NULL      
8           Brand Standards                                 0           1           1           3           BrandStandardsHome.aspx      
11          Call Tracker                                       1           2           3           1           NULL  
11          Call Tracker                                       1           2           3           1           NULL  
16          Research                                           0           1           1           4           ResearchHome.aspx
17          Resources                                         0           1           1           5           ResourcesHome.aspx
18          Collateral and Office                          5           2           3           2           home_page.aspx   
18          Collateral and Office                          5           2           3           2           home_page.aspx   
25          Billboard                                            6           3           3           2           NULL             
25          Billboard                                           6           3           3           2           NULL             
26          Buck Slips                                        6           3           25          2           NULL             
30          Door Hanger                                    6           3           25          2           NULL             
30          Door Hanger                                    6           3           25          2           NULL             
31          eMarketing                                       6           3           25          2           NULL             
32          Core Brand Elements                       8           2           1           3           home_page.aspx   
32          Core Brand Elements                       8           2           1           3           home_page.aspx   
33          Communication Materials                 8           2           2           3           home_page.aspx   
33          Communication Materials                 8           2           2           3           home_page.aspx   
36          Brand Awareness & Image               16          2           1           4           #                
36          Brand Awareness & Image               16          2           1           4           #                
37          Affiliates                                            17          2           1           5           home_page.aspx   
37          Affiliates                                           17          2           1           5           home_page.aspx   
38          Logo Usage                                      32          3           1           3                            

I have tried with below code but it is not working.

 

RadMenu2.DataSource = dt

 

 

 RadMenu2.DataFieldParentID = "Parent"

 

 

 

 ''Set Text, Value, and NavigateUrl:

 

 

 

 RadMenu2.DataTextField = "Title"

 

 

 

RadMenu2.DataValueField = "ID"

 

 

 

 RadMenu2.DataNavigateUrlField = "URL"

 

RadMenu2.DataBind()

Thanks

Keshava
Top achievements
Rank 1
 answered on 17 Apr 2015
7 answers
274 views
I'm using a RadWindow (rw_viewUpload) which pops up and displays a RadCombo box (sel_DocType), among other things. The popup RadWindow works fine, the ComboBox its self displays fine, but when the RadCombo is selected it paints the dropdown menues on the base page, behind the popup RadWindow, rather than in the RadWindow as it should. My code is as follows. Any help appreciated, thanks. 

<telerik:RadWindow 
            ID="rw_viewUpload" runat="server" Modal="true" CenterIfModal="true" 
            Title="Upload Documents" Behaviors="Close,Move" Width="750px" Height="500px" >
            
<ContentTemplate> <P><B>Upload Documents:</B></P>
            <table id="tbl_Upload"> <tr> <td class="labelCol">
                    <asp:Label ID="Label1"  runat="server"  AssociatedControlID="rau_receipt" Text="Attach receipts / logs / misc:" />
                </td> <td>
                    <telerik:RadAsyncUpload 
                        ID="rau_receipt" runat="server" Width="99%"  MultipleFileSelection="Disabled" MaxFileInputsCount="1" 
                        AllowedFileExtensions=".pdf" AllowedMimeTypes=".pdf" PostbackTriggers="btn_claimSave,btn_claimReset" />
                    
                     <telerik:RadComboBox 
                        ID="sel_DocType" 
                        RenderMode="Lightweight" 
                        runat="server" 
                        MarkFirstMatch="true" 
                        EmptyMessage="Select a Document Type" 
                        AutoPostBack="true" 
                        OnSelectedIndexChanged="sel_DocType_SelectedIndexChanged" 
                        ExpandDirection="Down" 
                        EnableScreenBoundaryDetection="false"
                        EnableVirtualScrolling="true" 
                        ToolTip="Select Document Type" 
                        Height="150px" 
                        DropDownAutoWidth="Enabled" />

                </td></tr></table>
   </ContentTemplate>
    </telerik:RadWindow>
JT
Top achievements
Rank 1
 answered on 16 Apr 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?