Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
89 views
Can you program the legend to display items in more than one column? I have a legend with 7 items, but I'd like them to display as two columns instead of one long column. Is this possible?
Sue
Top achievements
Rank 1
 answered on 23 Apr 2009
2 answers
130 views
Hi,

I have a 'save' RadToolBarButton and a 'cancel' RadToolBarButton in my RadToolBar.
The 'save' button I want to handle server-side with the event handler defined in the 'onbuttonclick' property of the RadToolBar.
This works perfectly.
However, for the 'cancel' button I don't want a Postback.

In the Page_Load event handler I have (dynamically) defined a NavigateUrl for the 'cancel' button (depending on from where the user comes on the page).
If I'm not mistaken having the NavigateUrl property set should prevent a Postback from happening for the 'cancel' button.

Unfortunately this doesn't work.
A Postback still happens and the user is not brought to the page defined by the NavigateUrl.
Could someone please tell me whether this is a glitch in the RadToolBar or that I'm doing something wrong? In either case I'd like to know how to solve this problem.


Mink
Top achievements
Rank 1
 answered on 23 Apr 2009
3 answers
135 views
If, when resizing the editor, your mouse goes outside the browser window, the page display gets screwed up. You can see this on the Telerik site demo. On the "default settings" demo, drag the resize handle down until your mouse leaves the page. You will see the display shift - the editor now overlaps the 'key features' box, and the 'settings' panel to the right of the editor is gone completely. Resizing the editor again does not restore the 'settings' panel or fix the overlap.

Rumen
Telerik team
 answered on 23 Apr 2009
1 answer
97 views

The tutorial has the following C# code to update a row in the database for the RadGridServerSideAPI example:

                //Update Query execution        
                SqlDataSource1.UpdateCommand = "UPDATE Shippers set CompanyName='" + CompanyName + "',Phone='" + Phone + "'";  
                SqlDataSource1.Update(); 

When I execute this all the rows are updated. Clearly a "WHERE ShipperID = @ShipperID" clause is missing. Shouldn't this be included in the UpdateCommand set on SqlDataSource1 or is there a way to get the data source to append this?

The delete command is similar.
Sebastian
Telerik team
 answered on 23 Apr 2009
1 answer
127 views
Hi!

I have a custom collection class that implements the IEnumerable interface like this:
public class BalanceSummering : IBalanceSummering, IEnumerable<IBalanceSum> 
... 

When I bind this to a radgrid, the rows corresponding to the items in the collections are displayed as they should.
But, the totals are not listed in the footer. Do I need to implement a specific interface to make it work?

If I bind the grid to an IList<entities>, the totals are displayed as they should.

Can you please help me?

Best regards

Henrik


Tsvetoslav
Telerik team
 answered on 23 Apr 2009
3 answers
196 views
Hello,

First, I just want to say that I'm really enjoying all of the functionality, simplicity and capabilities built into the RadControls for ASP AJAX.  There's a lot to digest, but for the most part I've been able to figure out how to accomplish everything I set out to accomplish.  That said, I have a scenario where I've been unable to discover a solution.  I'm hoping that there is a simple, elegant solution to my problem.

I have built an application that dynamically creates RadDocks and loads them into a Layout using an UpdatePanel (based on your dynamic RadDock demo, of course).  These RadDocks contain one RadGrid each.  I want the RadDocks to load up immediately with a "loading, please wait" animation playing while the RadGrid in the dock is updated (a la PageFlakes).  Based on this usage requirement, it seems that each grid needs to get data via a client-side Web Service call based on parameters provided by the user.  Here's where I run into problems:

  1. I found an example in the forums (I can't find the thread again, but the sample project file was called '125798_webservice.zip') that almost works as I'd like.  It does everything I described above, and even returns a view of the data pre-bound to a control and sent as HTML rather than a collection of rows, which I think is a better approach, but it builds the view using an asp:Repeater control instead of a RadGrid.  All attempts to use a RadGrid (or even an asp:GridView) in this way have failed.  The exception thrown instructs me to put the grid control in a form tag with runat="server" as an attribute.  I've done this, but that throws all kinds of other problems...
  2. Since that didn't work, I figured I'd try and attach to a RadGrid's 'Initialize' or 'Created' event and load the data via client-side databinding.  I can add empty RadGrids to the RadDocks when I create them, but I'm having a very difficult time getting each grid to go fetch data and update the view.  I can't seem to successfully attach to a RadGrid create event and cause the grid to fetch and update.  Even if I could capture the event properly, I can't seem to get a handle to the MasterTableView of the RadGrid.  Another bummer is that I want autogenerated columns for most of these RadGrids, and I learned today that client-side databinding requries explicitly defined columns... so client-side databinding isn't the answer.
  3. I tried using client script to fetch the data and programatically add rows to the grid, but this requires a TON of JavaScript (not ideal) - especially considering that I have no idea what the columns will look like for each RadGrid.  I did get this to work for one type of table, but I don't know how I can generalize this code enough to cover all the potential table layouts I will encounter.  I suppose I COULD figure out all the possible column combinations and write script to handle them, but wow... I really don't want to do that.

Of all the solutions I listed, number 1 was the closest to working as I'd hoped.  It was even pretty elegant in its approach.  If I could get a RadGrid to render properly in that scenario, that would be great.  That said, I'm more interested in knowing the "right" way to do this vs. the easiest.  I do want it to be reusable and easy to maintain, but if I can get that without writing my massive JavaScript library... that would be great!

I'll appreciate any help,
Eric Dzikowski
Nikolay Rusev
Telerik team
 answered on 23 Apr 2009
7 answers
167 views
Hi

I want to know, is this possible to add more than one ExpandColumn to the same radGrid ?I want to be able to have multiple expand column associated with different tableview. If so, how i can specify wich expand column a detail table is associated with and where i can find some samples for that kind of scenario ?

Thanks in advance for your help.

Pavlina
Telerik team
 answered on 23 Apr 2009
2 answers
138 views
Hi all

I'm trying to get a treeview control working with the keyboard, and I'm finding that after editing a node (via the F2 key) the keyboard navigation is broken.  I can reproduce this with a simple statically-defined treeview with AllowNodeEditing set to true:

    <telerik:RadTreeView ID="tree"  Runat="server" AllowNodeEditing="true">  
        <Nodes> 
            <telerik:RadTreeNode runat="server" Text="TopLevelA"></telerik:RadTreeNode> 
            <telerik:RadTreeNode runat="server" Text="TopLevelB"></telerik:RadTreeNode> 
            <telerik:RadTreeNode runat="server" Text="TopLevelC"></telerik:RadTreeNode> 
        </Nodes> 
    </telerik:RadTreeView> 
 

Selecting a node and hitting F2 puts a node into edit mode, and hitting Enter exits from edit mode. However, after exiting from edit mode in this manner, the arrow keys no longer server to move the selection indicator up and down. Once it gets into this state, you can get out of it by clicking the treeview with the mouse, but until you do this the arrow keys don't work. This pretty much defeats the purpose of using keyboard navigation in my application and changes the treeview from a thing of beauty to a thing of aggravation and angst, at least for for keyboard users and repetitive data-entry personnel.

Are there any hacks or workarounds for this? I'm using version 2009.1.402.35

Mike
MikeWiese
Top achievements
Rank 1
 answered on 23 Apr 2009
1 answer
223 views
Is there a way to add a simple line separator between combobox items? I know there is an IsSeparator property but to me this does not seem like a separator at all... people don't want a big tall colored line with text just to separate options. To me this seems more like category headings. Is there a way to do a line instead of a label for separation?

Thanks!
Levi
Atanas Korchev
Telerik team
 answered on 23 Apr 2009
1 answer
172 views

We are experiencing a problem with the RadGrid in the Q1 2009 version of the RadControls. We have setup a NeedsDataSoure method that gets the data for the grid. When a user deletes a row from the grid, the NeedsDataSoure method is called successively. However, the grid is not refreshed and the deleted item still appears in the grid. We tried calling DataBind manually, but the Grid Control won't let us do that because it takes place automatically in the NeedsDataSoure method? Is this a known bug with the Q1 2009 release? We have found quite a few problems with the Q1 2009 release, and are not sure whether we should use it. Can someone from Telerik please assist us with this issue as soon as possible. If this is a bug with the product, we are going to have to back out the release.

Anthony
Tsvetoslav
Telerik team
 answered on 23 Apr 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
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
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?