Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
120 views
How can I get 12:00AM or later to display at the end of the time picker's list?
Princy
Top achievements
Rank 2
 answered on 14 Jul 2009
1 answer
136 views
I turned on the AllowDragToGroup and there is a text "Drag a column header and drop it here to group by that column"
How do i localize that?
I've looked at http://www.telerik.com/help/aspnet-ajax/grdlocalizingtootips.html and I cant seem to find it.
Thanks
Princy
Top achievements
Rank 2
 answered on 14 Jul 2009
1 answer
250 views
Is there any way to enable/disable grid rows with client-side script?
Shinu
Top achievements
Rank 2
 answered on 14 Jul 2009
1 answer
94 views
How to cancel edit mode in radgrid1_ItemCommand for C#?

I use the following code in radgrid1_ItemCommand, but doesn't work.-- the grid is still edit mode after the following line called. I want it out of the edit mode.

 

if (e.CommandName == "Edit")

 


{
  // if validation fails, can not edit -cancel edit mode   

e.Item.Edit =

false;
}


Thanks!

 

Princy
Top achievements
Rank 2
 answered on 14 Jul 2009
0 answers
135 views
Hi All,

I've a Radcombobox which has values like - first ,second, third, fourth and last (indicating the first monday, second tuesday from current date). this should get automatically selected in page_load by taking the system's current date.

This radcombobox is similar to recurrence  option in outlook.There is another radcombobox which has all days(from sun to sat).
So depending on the current day(if it is july 14th 2009) my radcombobox should automatically select "second" in my radcombobox(meaning july 14th is second tuesday of the month). with next radcombobox having tuesday.
I need the code for getting first,second, third or fourth or last (day) based on current date. So, dep on current date , it should automatically change( eg july 25 th 2009 is 4th saturday ). so, on 25th july, we should have " fourth" selected in that radcombobox with saturday selected next on days comboxox. pls do help in this code. i'm struggling a lot here

Thanks,
ZR
Ayesha
Top achievements
Rank 1
 asked on 14 Jul 2009
1 answer
122 views
I'm new to RAD and I'm hoping someone can get me started...
 
I have a grid built programatically that I have bound to a datatable. I want to select a row and pass the value of one of the columns to the server with uses an API to talk to a Web Service. I then want to use that key value to retrieve some information and have it displayed in a a panel.

I need a working example of how to grab a value from the grid and pass it to the server.

Thanks!
Shinu
Top achievements
Rank 2
 answered on 14 Jul 2009
3 answers
113 views
I am using the RadTreeView with the ExpandMode = WebService. The root node gets loaded fine with the "+" sign and nothing happens when I click it. It never reaches the breakpoint in the  WebMethod of my web service. I have the same signature as the demo code. The demo example works fine, so obviously Im missing something here. Below is the code
aspx page
 <asp:ScriptManager ID="ScriptManager" runat="server">
    </asp:ScriptManager>
    <telerik:RadTreeView ID="reportsTree" runat="server" Skin="Vista">       
        <WebServiceSettings Method="GetSubFolders" Path="SubFolders.asmx" />
        <Nodes>
            <telerik:RadTreeNode Text="Departments " Value="20" ExpandMode="WebService">
            </telerik:RadTreeNode>
        </Nodes>
    </telerik:RadTreeView>
webservice
[ScriptService]
public class SubFolders : WebService
{    [WebMethod]
    public RadTreeNodeData[] GetSubFolders(RadTreeNodeData node, object context)
    { ///Method implementation here, and breakpoint that is never hit while in debug mode) }
Please let me know if there is something I am missing here.



Chris
Top achievements
Rank 1
 answered on 13 Jul 2009
1 answer
793 views
Hi,

I'm trying to set the selected date of the raddatepicker using c# and cannot find a way. Everything available on the forums deal with setting the date thru javascript, however, I need to set the raddatepicker to session variables in c#.

Thanks for your help,

Evan
Evan
Top achievements
Rank 1
 answered on 13 Jul 2009
1 answer
140 views
Ok, I need help or a good example of how to do this.

Here's what I have been attempting, using the rss demo example, I can get an rss feed to display but I can't do it with simple xml ...

Here's the xml i'm using:
<?xml version="1.0" encoding="utf-8" ?> 
<RoatatorItems> 
  <Item link="http://www.link1.com" title="This is a test 1" /> 
  <Item link="http://www.link2.com" title="This is a test 2" /> 
  <Item link="http://www.link3.com" title="This is a test 3" /> 
  <Item link="http://www.link4.com" title="This is a test 4" /> 
  <Item link="http://www.link5.com" title="This is a test 5" /> 
</RoatatorItems> 


Here's the aspx page code ...
<asp:XmlDataSource ID="XmlDataSource1" runat="server"   
    DataFile="~/NewsRotator.xml" XPath="/RotatorItems/Items"></asp:XmlDataSource> 
<telerik:RadRotator ID="RadRotator1" runat="server"   
    DataSourceID="XmlDataSource1" Height="50px" Width="901px">  
    <ItemTemplate> 
        <div class="newsFeed">  
            <strong><a href='<%# XPath("link") %>'>  
              <%# System.Web.HttpUtility.HtmlEncode(XPath("title").ToString()) %> 
            </a></strong>  
        </div> 
    </ItemTemplate> 
</telerik:RadRotator> 

I also tried:


    <ItemTemplate> 
        <div class="newsFeed">  
            <strong><a href='<%# XPath("link") %>'>  
                <%#XPath("title")%> 
            </a></strong>  
            <br /> 
        </div> 
    </ItemTemplate> 


What's wrong with it as I get nothing ... I have nothing in the VB codebehind ....
Is the XML formatted properly for this or is there a better example you can provide of how this would work?
Thanks in advance!

TT
Mehdi Mirza
Top achievements
Rank 1
 answered on 13 Jul 2009
6 answers
113 views
Hi,

So I have a grid that I export the data on, this all works fine but if a user goes back to use the grid the settings that have been set for the export effect the grid, particularly the ExportOnlyData filter which is hiding quite alot of the data in the grid when the user goes back and expands any of the hierarchy or orders the grid etc?

This is my current export:

With rgProjectSearch 
            .ExportSettings.FileName = "ProjectSearch" & Now.Date.ToShortDateString.Replace("/", "") 
            .ExportSettings.ExportOnlyData = True 
            .ExportSettings.IgnorePaging = True 
            .ExportSettings.OpenInNewWindow = True 
            .ExportSettings.Excel.Format = Telerik.Web.UI.GridExcelExportFormat.ExcelML 
            .Columns.FindByUniqueName("ProjectResearchTitle").Visible = True 
            .Columns.FindByUniqueName("ClockStatusID").Visible = False 
            .MasterTableView.ExportToExcel() 
        End With 

I have tried to revert the settings after the ExportToExcel has run but it seems to run this command at the very end anyway, presumably because of the asynchonous AJAX.  Is there anyway to revert these settings once the export has been run, even if it is on an action?


Pavlina
Telerik team
 answered on 13 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?