Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
120 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
112 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
786 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
133 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
108 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
3 answers
186 views
 <telerik:RadGrid ID="rgTickets" runat="server" AllowSorting="false" Width="97%" AutoGenerateColumns="False" ShowGroupFooter="true" ShowFooter="true"
                                    PageSize="20" AllowPaging="false" GridLines="None" ShowGroupPanel="True" OnPreRender="rgTickets_PreRender" OnItemDataBound="rgTickets_ItemDataBound"  OnNeedDataSource="rgTickets_NeedDataSource">
<ClientSettings AllowDragToGroup="True">
</ClientSettings>
<MasterTableView AllowMultiColumnSorting="true">
<Columns>
<telerik:GridBoundColumn DataField="Year" HeaderText="Year" SortExpression="Year" />
<telerik:GridBoundColumn DataField="Ordinal" HeaderText="Month" DataFormatString="{0:MMM}" SortExpression="Ordinal"/>
<telerik:GridBoundColumn DataField="CategoryName" HeaderText="Category" SortExpression="CategoryName"         />
<telerik:GridBoundColumn DataField="NetworkName" HeaderText="Network" SortExpression="NetworkName" />
<telerik:GridBoundColumn DataField="Created" FooterText="Total: " Aggregate="Sum" HeaderText="Created" SortExpression="Created"/>
<telerik:GridBoundColumn DataField="Closed" FooterText="Total: " Aggregate="Sum" HeaderText="Closed" SortExpression="Closed"/>
</Columns>
 <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
</MasterTableView>
</telerik:RadGrid>


I get a grid footer but no group footers, when I drag and drop to go grouping.
Pavlina
Telerik team
 answered on 13 Jul 2009
1 answer
93 views

Hello Telerik and Telerik Developers,

I have been dreaming of a product for years, and I think Telerik would be the ideal company to develop it.  I would like to see a product that manages and makes use of the Profiles, Memberships and Users in ASP.net.

Here is a list and description of each component that would be required in the suite.

 

·         User/Profile/Membership Manager

o   Use the Profile/User DataControl to connect to SQL database

o   Has smart tags to add Profile properties to the web.config

o   Allow properties to be set as ReadOnly orAllowAnonymous

o   Skinning/Themes Compliant

o   Creates an ASP.net (User) Control that can be added to any web form that uses RadTabStrip, TabView and RadGrid to manage Users, Groups, Roles, etc. (A combination of RadControls like RadScheduler)

·         ProfileView

o   Basically a custom FormView that allows a user to manage their profile settings.

o   Respects ReadOnly/Allow Anonymous, and current user settings

o   Skinning/Themes Compliant

o   Allow for “Delete Account”

This type of product would give an edge to Telerik over their competitors as no one else offers this type of product.

What do other developers think?  Does the staff of Telerik have any comments?

Hope to see something in the near future.

Sebastian
Telerik team
 answered on 13 Jul 2009
0 answers
107 views
----------------------------------
ok working no problem.
----------------------------------


Hello,

i got a side to search documents. The top part gives u choices to search for name of the document or other metainformation. With the Search button the second part of my page containing the RadGrid gets the Rebinds to retrieve the new datasource with the fired NeedDataSource event. So after a search the Radgrid and a lbl schowing the number of found documents get updated from postback.

I set programatically that the button ajaxified updates the label and the grid, which works fine.

Now i put the top part (the searching including, inputs, this count label and the search button) into one PanelBar (Item, ItemTemplate).

My first thought was that i shouldnt have to change anything ^^ wrong :(

I have to contact all controls in a different way.

Ok did that, but what do i have to change that the grid still takes the ajax like update like before?

thx mario
Mario
Top achievements
Rank 2
 asked on 13 Jul 2009
2 answers
86 views
Hi,

Could you please help to add column data rowise and display it in the last column in the grid..
e.g

Let's say the grid looks like this

Col1    Col2   Col3    TotalCol
1           1         1          3
     3         5          10
3           3         5     11


In the above grid, TotalCol is contains summation of Col1 + col2 + col3 horizontally. Can it be achieved at runtime. Please note that the the number of coumns are not always same - it changes based on parameters passed to database.


Any help would be deeply appreciated.

Thanks a lot.

Milan G

Milan Gurung
Top achievements
Rank 1
 answered on 13 Jul 2009
1 answer
122 views
Hi,

I tried to extend my grid with custom columns.
This looks good - but it does not sort for that column.

You can check this out using your own example at http://demos.telerik.com/aspnet-ajax/fileexplorer/examples/customgridcolumns/defaultcs.aspx

It first looks like it does something - BUT - all "Creation Date" and "Owner" have the same value (not so good to proof sorting).
Anyhow - if you simply change the owner by adding an iteration between Telerik and Adam - you will see that sorting this column,
always sorts by name.

So I guess
a.) Something is missing in the sample
b.) There is problem with custom column sorting
c.) I've overseen something (I don't hope so - I tried a lot)

Regards

Manfred
Lini
Telerik team
 answered on 13 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?