Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
183 views
I tried to put a bmp image in the radToolBar, but I didn't see how to set the transparent color of the image. (The image have a pink background that I don't want to see).

Sébastien
Sébastien
Top achievements
Rank 1
 answered on 19 Jul 2010
1 answer
74 views
Hi Guys,

quick question on the feasibility of this idea:

I have a very nice radgrid on my page, i am using c# in vs 2005.

What i would like to do is create a button or clickable link on each row of bound data. This forms a "details" tab which will retrieve further details of the selected row.

I have currently got the query working to retrieve these details, but this is based on a button on the main page - not in the rad grid. from a user experience, they have to select a row in my radgrid, then nav to the details button.

It would be much more user friendly if they could perform the whole operation in the radgrid.

Is this possible, or is there a better way of achieving this?

Many thanks
Tsvetoslav
Telerik team
 answered on 19 Jul 2010
2 answers
99 views
Hi There. Is there any chance to make the final layout of raddatapager to look like the image attached? Thank you very much for your help.

elais
Top achievements
Rank 1
 answered on 19 Jul 2010
1 answer
125 views
Hello,

Please advise how i can copy & print the chart in asp.net using the RadChart 2010?

Thanks
Ves
Telerik team
 answered on 19 Jul 2010
1 answer
124 views
Hi
I have a Telerik RadGrid and I want to change the cells of a column if the column name is a certain value.

For example if the column name is 'date_comparison_1' the I do not want any cells to contain a minus number.

So what I was hoping to do was...

Protected

 

Sub rgChangeRequests_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.WebControls.GridItemEventArgs) Handles rgChangeRequests.ItemDataBound

 

 


 

 

If

 

e.Item.ItemType = Telerik.WebControls.GridItemType.Header Then

 

 

 

 

 

'If e.Item.ItemType = ListItemType.Header Then

 

 

 

 

 

Dim dg As DataGrid = TryCast(sender, DataGrid)

 

 

Dim col As DataGridColumn

 

 

Dim index As New Integer

 

 

 

 

 

For index = 0 To dg.Columns.Count - 1

 

 

If (col.HeaderText = "'date_comparison_1") Then

 

 

 

 

 

End If

 

 

 

 

 

Next

 

 

 

 

 

End If

 

 

 

 

 

 

End Sub

But I get an Object Reference error pointing to this line ...

 

For

 

index = 0 To dg.Columns.Count - 1

 



Any ideas?

thanks

Princy
Top achievements
Rank 2
 answered on 19 Jul 2010
2 answers
145 views
I have a hierarchical grid where the parent and the children all use the same column headers such as follows.  Everything looks fine when I show the Action column.  When I hide the Action column, however, the column's contents remain in the child rows (e.g., where the Type is Child in the example below) and the formatting is messed up (see below).

ActionColumn.Visible = true;
 
ID  Parent  Name    Type     Action
1   -       Note    Parent   O:E:D
2   1       Reply   Child    O:E
3   2       Reply   Child    O:E
4   -       Note    Parent   O:E:D
 
ActionColumn.Visible = false;
 
ID  Parent     Name       Type    
1   -          Note       Parent  
2   1       Reply      Child    O:E
3   2       Reply      Child    O:E
4   -          Note       Parent  

I'm setting the  grdNotes.Columns.FindByUniqueName("Actions").Visible = ShowActionColumn (where ShowActionColumn is a bool property set by the user preferences) in the Page_Load event. 

What else needs to be done to hide the contents of the child row's column contents?  (I've already tried setting toolbar.visible=false, but to no avail.)

FWIW, here's the definition of the grid:

<telerik:RadGrid ID="grdNotes" runat="server" OnColumnCreated="grdNotes_ColumnCreated"
    OnItemCreated="grdNotes_ItemCreated" OnItemDataBound="grdNotes_ItemDataBound"
    OnNeedDataSource="grdNotes_NeedDataSource" OnPreRender="grdNotes_PreRender" AutoGenerateColumns="false"
    SkinID="HierarchicalGrid" GridLines="None" AllowPaging="false" AllowCustomPaging="True"
    ShowStatusBar="True" EnableLinqExpressions="True" PageSize="20" Width="100%">
    <HeaderContextMenu EnableTheming="True">
        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
    </HeaderContextMenu>
    <ClientSettings Selecting-AllowRowSelect="true" Resizing-AllowColumnResize="true">
        <ClientEvents OnRowSelected="RowSelected" OnRowContextMenu="NoteContextMenu" OnRowCreated="RowCreated"
            OnRowDblClick="grdNotes_OnRowDblClick" OnColumnResized="ResizeAllColumns" OnGridCreated="PageLoad" />
    </ClientSettings>
    <PagerStyle Position="Bottom" AlwaysVisible="True" Mode="NextPrevAndNumeric" Wrap="False"
        BackColor="White" Font-Size="Large" />
    <MasterTableView HierarchyDefaultExpanded="true" HierarchyLoadMode="Client" AllowSorting="true"
        DataKeyNames="Id,ParentId,Token,IsRoot,Replies,NoteCreator" ClientDataKeyNames="Id,ParentId,Token,IsRoot,Replies,NoteCreator"
        NoDetailRecordsText="" EnableNoRecordsTemplate="False" Width="100%">
        <SelfHierarchySettings ParentKeyName="ParentId" KeyName="Id" MaximumDepth="20" />
        <Columns>
            <telerik:GridBoundColumn DataField="Id" HeaderText="Id" SortExpression="Id" UniqueName="Id"
                ReadOnly="True" HeaderStyle-Width="10%">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Title" HeaderText="Title" SortExpression="Title"
                UniqueName="Title" HeaderStyle-Width="20%" />
            <telerik:GridBoundColumn DataField="Body" HeaderText="Body" SortExpression="Body"
                UniqueName="Body" HeaderStyle-Width="40%" />
            <telerik:GridBoundColumn DataField="CreatedBy" HeaderText="Created By" SortExpression="CreatedBy"
                UniqueName="CreatedBy" HeaderStyle-Width="15%" />
            <telerik:GridBoundColumn DataField="CreatedDate" HeaderText="Created On" SortExpression="CreatedDate"
                UniqueName="CreatedOn" HeaderStyle-Width="15%" />
            <telerik:GridBoundColumn DataField="ParentId" HeaderText="Parent Id" SortExpression="ParentId"
                UniqueName="ParentId" Visible="false" />
            <telerik:GridBoundColumn DataField="Token" HeaderText="Token" SortExpression="Token"
                UniqueName="Token" Visible="true" />
            <telerik:GridBoundColumn DataField="IsRoot" HeaderText="IsRoot" SortExpression="IsRoot"
                UniqueName="IsRoot" Visible="false" />
            <telerik:GridBoundColumn DataField="Replies" HeaderText="Replies" SortExpression="Replies"
                UniqueName="Replies" Visible="false" />
            <telerik:GridBoundColumn DataField="NoteCreator" HeaderText="NoteCreator" SortExpression="NoteCreator"
                UniqueName="NoteCreator" Visible="false" />
            <telerik:GridTemplateColumn UniqueName="Actions" HeaderStyle-Width="150" HeaderText="Actions">
                <ItemTemplate>
                    <telerik:RadToolBar ID="rtbNoteActions" runat="server" SkinID="ActionToolbar" OnButtonClick="NotesGridToolbarButtonClicked"
                        OnClientButtonClicking="NoteActionToolbarClicking">
                        <Items>
                            <telerik:RadToolBarButton Text="Properties" CommandName="Properties" ImageUrl="~/Images/page_view.gif" />
                            <telerik:RadToolBarButton Text="Reply" CommandName="Reply" ImageUrl="~/Images/page_edit.gif" />
                            <telerik:RadToolBarButton Text="Security" CommandName="Security" ImageUrl="~/Images/shield16.gif" />
                            <telerik:RadToolBarButton Text="Delete" CommandName="Delete" ImageUrl="~/Images/delete16.gif" />
                        </Items>
                    </telerik:RadToolBar>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
        </Columns>
    </MasterTableView>
    <FilterMenu EnableTheming="True">
        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
    </FilterMenu>
</telerik:RadGrid>
Daniel
Telerik team
 answered on 19 Jul 2010
3 answers
128 views
Hi Guys,

I am using Telerik RAD Grid Control. I am populating the Grid with ObjectDataSource, means I am filling that through coding and its working fine. Now I want to implement the custom paging for that. I gone through so many links and demos but all those are with ObjectDataSource, but I want to do without it. Can anybody help me on this issue? Pls provide provide the answer as soon as you can.

Thanks in Advance,
Bikramjit
Rosen
Telerik team
 answered on 19 Jul 2010
3 answers
109 views
Hello!

I have 2 problems with displaying RadGrid.

I have attached a picture displaying it.

First problem (RED square): Every time there is a vertical scroll displayed we get this strange white space. Any idea how to fix this?

Second problem (BLUE square) apears when client side colum resizing is possible. We think that the last column should always be connected with the right side of the grid just like the fist one is connected with the left side.

Thanks for your help!

Ales
Dimo
Telerik team
 answered on 19 Jul 2010
1 answer
34 views
Hi,

I use the editor for subcontent on pages, and therefor the AbolutePosition is no go.

Then the content is shown relative to the top left corner of the browser, and not the DIV where I place the content from the Editor.

So please add RelativePosition as well :-)

Best regards,
Christian
Dobromir
Telerik team
 answered on 19 Jul 2010
8 answers
424 views
I have a Grid setup with a self hierarchy with additional detail tables.  When I expand a top level entry, I correctly see the children (both the linked detailtables and also the self hierarchy entries).  But when I expand the next level of a entry from the self hierarchy, the linked detailtables are not displayed.

I am using the NeedDataSource method on the Grid, which checks if the event is from the detail table or not.
And also using the DetailTableDataBind as described at http://demos.telerik.com/aspnet-ajax/grid/examples/programming/detailtabledatabind/defaultcs.aspx, and when I step through the code in the debugger, the DetailTableDataBind never gets called for the detail tables when I expand below the first level.

An example of what I am trying to do is a Folder table and a File table.  You can have Folders within Folders, and Files in Folders.  If I expand the top level Folder, I can correctly see the child folders and files, but when I expand one of the child folders, it only shows folders.  It seems to skip over the detailtables.

Is this a bug, or might I be overlooking something?

Thanks,
Eric
Veli
Telerik team
 answered on 19 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?