Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
50 views
I have a RadGrid that I'm building manually using a series of Grid.MasterTableView.Columns.Add(boundColumn) commands. Everything works great when the grid is initially being built. Then depending upon user actions I add additional columns to the grid in the same manner. This works well. But if I add a column and the user moves (resequences) that column, then the next time a add a column it's not appended as the last column - it shows up after the previously added column.

So let's say I have a grid like this:
NAME ID ADRESS

Then programmatically I add phone. The grid now looks like this:
NAME ID ADRESS PHONE

Now the user drags PHONE to the left and makes it the first column:
PHONE NAME ID ADRESS

Now I programmatically add another column TITLE (using columns.add) and instead of appearing as the last column it appears after PHONE:

PHONE TITLE NAME ID ADRESS

Is there any way to always have columns appear as the last column as they're added?

Georgi Krustev
Telerik team
 answered on 06 Oct 2009
1 answer
180 views
Hi,
     We have extended the Telerik Grid, and I'm trying to add some custom filtering to it.  Specifically to Master/Detail implementations of it.  What I'm trying to do is this.  If the Master Table has columns A, B and C, and Detail Table (I'm gonna assume only 1 detail table for our purposes) has columns X, Y and Z.  I would like to be able to allow the users to search for an Item in Column Z without having to expand each row in the MasterTable.  When the Search is complete, I would like only the MasterTableRows that have Detail rows with the search string to remain (to complicate this even futher if the searchstring is found in a MasterTableRow, I want that row to show also even if the search string wasn't found in that row's detail rows). 

I love the built-in Filtering you folks have in the grid, but because of this scenario above (plus the fact that we often allow users to search for items in columns that aren't necessarily visible) I can't seem to figure a way to use it.

So my questions are these...  Is there something I'm missing, and there actually is a way to use the built in filtering of the grid? 

If not, I've started down the path of building a MasterDetailQuickFilter method, and I need to be able to grab the Detail Tables ParentTableRelations.GridRelationFields MasterKeyField and DetailKeyField, so I can build my search string and apply it directly to the datasources for both the Master and Detail table.

I'm sorry if this is confusing (it's confusing to me as well).

-Mike
Georgi Krustev
Telerik team
 answered on 06 Oct 2009
2 answers
104 views
hiya,

I have a gridView which I'd like to convert to nice radMenu.I thought it'd have been easy, but I'm having difficulty.
The gridView is bound and contains a ItemTemplate.

(gridViewBegin)
Columns
            asp:TemplateField HeaderText="Property" SortExpression="TableName"
                ItemTemplate
                    asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%#Eval("ListActionPath") %>'><%#Eval("DisplayName") %></asp:HyperLink
                /ItemTemplate
            /asp:TemplateField
(gridViewEnd)

So far, I have this for my radMenu...

(radMenuBegin)
radM:RadMenu ID="Menu1" runat="server" Flow="Vertical"
Items

items
(radMenuEnd)

I can't figure out how to convert the "TemplateField " and  "itemTemplate" into their radMenu equivalents..Any ideas, I'm running out of time!

Thanks,

yogi
Chris Yoker
Top achievements
Rank 1
 answered on 06 Oct 2009
1 answer
115 views
Hi, attached is the image of some charts, we have some overlaping of values in the first one.
please tell us some solution for it.
Regards
Zeeshan Fawad.
Schlurk
Top achievements
Rank 2
 answered on 06 Oct 2009
1 answer
153 views
Hi,

I am using RadGrid to show the list of request. One of the columns is the Status column. The request record contains the Id  of the status
I am using the GridDropDownColumn  for the status column. I want to bind the GridDropDownColumn  datasource at runtime to a collection. I only see the DataSourceId  property and no DataSource Property. Is there a way I can bind the GridDropDownColumn 
column to a collection. All the examples shows only the binding in edit mode.

Request Records
Requestor          ReqDate         StatusId
John                   01/01/2009     1
James                02/02/2009      2


Status values
StatusId          StatusName
1                     New
2                     Closed

I want the grid to show
John           01/01/2009       New
James         02/02/2009      Closed     


I would appreciate any help inthis matter
thanks
Martin
Telerik team
 answered on 06 Oct 2009
2 answers
336 views
Hi Telerik team,

I am working on rad tooltip manager and I am facing some issues.

I have created a RAD tooltip manager in aspx.

<telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" Width="250" Height="300"
                    OffsetY="-7" OffsetX="10" RelativeTo="Element" Position="BottomCenter" HideEvent="ManualClose"
                    OnAjaxUpdate="OnAjaxUpdate" ShowEvent="OnClick">
                </telerik:RadToolTipManager>

Then I created an user control .ascx which will be my tooltip. My tooltip code looks something like this.

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Tooltip.ascx.cs" Inherits="RADPrototype.Tooltip" %>
<asp:Label ID="lblMarketValue" runat="server" Text="Market Value"></asp:Label>
<asp:Button ID="Close" runat="server" Text="Button" />

Please observe that I have close button on the tooltip. In aspx.cs file, I am adding this tooltip to the tooltip manager.

this.RadToolTipManager1.TargetControls.Add(target.ClientID, "123$", true);

My problem is when I click on Close button on the popup (in ascx), popup is not closing. (However when I click on x button, tooltip getting closed). Since I am using HideEvent as manual close, I am getting x button to the tooltip. However having the close button and selecting it, is not closing it. I wrote onclientclick for the button to close it. But it is not happening. Could you please provide me your help on this?

Thanks.

Regards,
Kishan G K
Kishan Gandikota
Top achievements
Rank 1
 answered on 06 Oct 2009
3 answers
113 views
Hello
I used to control RadGreid
When View Record GridTemplateColumn defined as I, shows the pages before and after the page is not working
       <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" OnItemCommand="grdusers_ItemCommand" AllowPaging="True" PagerStyle-Position="TopAndBottom" DataSourceID="SqlDsEbook" GridLines="None">  
                <MasterTableView DataKeyNames="DocId" DataSourceID="SqlDsEbook" NoMasterRecordsText="There is no record to display!" 
                CommandItemDisplay"TopAndBottom" > 
                <CommandItemSettings AddNewRecordText="Append"  /> 
                <Columns> 
                    <telerik:GridTemplateColumn UniqueName="TemplateColumn">  
                        <ItemTemplate> 
                            <div> 
                                <span style="font-weight: bold;">  
                                <asp:Label ID="numberLabel" runat="server" /> 
                                <span style="font-weight: bold;">.&#160;</span> 
                                      
                                              
                                      
                                <asp:HyperLink ID="HyperLink2" runat="server" ForeColor="#0000C0"   
                                                    NavigateUrl='<%# "Ebook.aspx?ID=" + Eval("DocId").ToString() %>'<%#  Eval("Title")%> </asp:HyperLink> 
                                <br /><br /> 
                                                <asp:Image ID="ProductImage" runat="server" Width="2%"   
                                ImageUrl="Image/doc.jpg"   
                                Visible='<%# (Eval("NameFile").ToString().Trim()=="") ? false : true %>'      
                                AlternateText="No preview available" />   
 
                                <span style="font-weight: normal; color: Purple ">  
                                <%# (Eval("ISBN").ToString().Trim()=="") ? "" : "ISBN : " + Eval("ISBN")%> &#160;</span> 
                                  
                            </div> 
                        </ItemTemplate> 
                    </telerik:GridTemplateColumn> 
                </Columns> 
                    <RowIndicatorColumn> 
                        <HeaderStyle Width="20px" /> 
                    </RowIndicatorColumn> 
                    <ExpandCollapseColumn> 
                        <HeaderStyle Width="20px" /> 
                    </ExpandCollapseColumn> 
                </MasterTableView> 
            </telerik:RadGrid> 
Iana Tsolova
Telerik team
 answered on 06 Oct 2009
8 answers
157 views
(Imagine the results you get back from an image search on google)

I want to use the built in binding and paging capabilities of the RadGrid to do the heavy lifting of displaying a "grid" of user controls containing similarly formatted content. That's easy enough ;) The catch is I want to have the items going across the page as well as down. I have a grid now that is bound to a datasource which binds a single value for each row. This value is passed to a user control which manages everything to do with rendering the content for that item. This all works nicely as rows.

However users will want to see say, 4 columns x 4 rows (but can change this according to their prefs)

The two things I haven't fathomed:

  • How do I override the standard behaviour of the RadGrid so I can manage the output of TR and TD tags myself when data rows are being rendered?
  • How can I detect the last record being displayed on a page so that if not all the columns have been output in the table I can put out the necessary <TD>&nbsp;</TD> strings to complete the row?

Any guidance or better still pointers to examples would be much appreciated!

Thanks,
Mark
Chris
Top achievements
Rank 1
 answered on 06 Oct 2009
1 answer
64 views
I don't want group or re-order enabled on a grid and the message and icon change regardless of what properties i set:

ClientSettings-AllowColumnsReorder

 

="false"

 


ClientSettings-AllowDragToGroup

 

="true"

 



How can i turn off the tooltip and the mouse pointer change???

thanks,

Rich
Schlurk
Top achievements
Rank 2
 answered on 06 Oct 2009
2 answers
88 views
Hi,
Im trying to build a hierarchical grid ......
have the following structure

 

<telerik:RadGrid ID="RadGrid2" runat="server" Width="100%" ShowStatusBar="true" AutoGenerateColumns="false"

 

 

Skin="Web20" AllowSorting="false" AllowMultiRowSelection="False" AllowPaging="false"

 

 

OnDetailTableDataBind="RadGrid2_DetailTableDataBind" >

 

 

<MasterTableView Width="100%" DataKeyNames="TypeID " ShowHeader="false" ShowFooter="false">

 

 

<DetailTables>

 

 

<telerik:GridTableView Width="100%" ShowHeader="false" BorderColor="black" BorderWidth="0px" AutoGenerateColumns="false"

 

 

BorderStyle="Solid" DataKeyNames="CoverID" Name="covers">

 

 

<DetailTables>

 

 

<telerik:GridTableView Width="100%" ShowHeader="false" BorderColor="black" BorderWidth="0px" AutoGenerateColumns="false"

 

 

BorderStyle="Solid" DataKeyNames="CoverID,ElementTypeID" Name="coverelementtype">

 

 

<Columns>

 

 

<telerik:GridBoundColumn DataField="TypeName">

 

 

</telerik:GridBoundColumn>

 

 

</Columns>

 

 

</telerik:GridTableView>

 

 

</DetailTables>

 

 

</telerik:GridTableView>

 

 

</DetailTables>

 

 

<ItemStyle CssClass="telerikgriditem" />

 

 

<AlternatingItemStyle CssClass="telerikgriditem" />

 

 

<Columns>

 

 

<telerik:GridBoundColumn DataField="TypeName">

 

 

</telerik:GridBoundColumn>

 

 

</Columns>

 

 

</MasterTableView>

 

 

</telerik:RadGrid>

 


-------------------------------------------------
and dataset is fetched in page load & rad control is bound
& in detailsdatabound the dataset is fetched & datasource of detailsview is set

the problem here is i expand  a node & child grid is visible
now if i expand other node the previously visible child grid data disappears

im not using ajaxmanager

any help??


Veli
Telerik team
 answered on 06 Oct 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?