Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
153 views
Hi,

I am trying to mke use of your Grid within a page that contains two divs,  the first div has no sidth set on it, floats: left the seconond Div has a width preset and floats right.  I am placing your grid within the first div, The grid displays put occupies the full width of the browser window and not only the width of the first div, minus the width of the second DIV that I want to foloat right..  Below is the ocde,  could you please tell me what I'm doing wrong..

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="zzz-Default2.aspx.cs" Inherits="zzz_Default2" %> 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
    <title></title>  
    <style type="text/css">  
         
       #col_content  
{  
    background-position: #F7F6F2;  
    padding: 0 0 0 10px;  
    border-left: 3px solid #DFDCCB;  
    background: #F7F6F2;  
    float: left;  
    width:auto;  
    height: auto;  
}  
 
#col_right  
{  
    background-position: #F7F6F2;  
    padding: 0 0 0 10px;  
    border-right: 1px solid #CAC7B8;  
    border-left: 1px solid #CAC7B8;  
    background: #F7F6F2;  
    width: 200px;  
    float: right;  
    height: auto;  
}  
    </style> 
</head> 
<body> 
    <form id="form1" runat="server"><asp:ScriptManager ID="ScriptManager1" runat="server">  
        </asp:ScriptManager> 
    <div> 
    <div id="col_content">Content <telerik:RadGrid ID="RadGrid1" runat="server"   
            GridLines="None" AutoGenerateColumns="False"   
            onneeddatasource="RadGrid1_NeedDataSource">  
<HeaderContextMenu EnableTheming="True">  
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
</HeaderContextMenu> 
 
<MasterTableView> 
<RowIndicatorColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</RowIndicatorColumn> 
 
<ExpandCollapseColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</ExpandCollapseColumn> 
</MasterTableView> 
 
<FilterMenu EnableTheming="True">  
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
</FilterMenu> 
    </telerik:RadGrid> 
        <br /> 
         
    <br /> 
      
      
    <br /> 
 
    <br /><div align="center"></div> 
&nbsp;  
</div> 
<div id="col_right" >Right</div> 
    </div> 
    </form> 
</body> 
</html> 
 


Thanks,
Shinu
Top achievements
Rank 2
 answered on 11 Mar 2009
1 answer
86 views
Hi,

Is it possible to set master row in edit mode (showing EditFormTemplate) and at the same time display detail rows (using ItemTemplate)? In my case detail rows were hidden when master was set in edit mode -after Edit button pressed on master row.

Thanx, 
    Walter
Shinu
Top achievements
Rank 2
 answered on 11 Mar 2009
1 answer
56 views
Hi

I am having Hierarchical Grid upto 3 Detail table one inside other. Inside Master table first column data is link, so I would like to see same event as we click on expandColumn. Is there straight way to achieve this?

Thanks,
Pradip
Shinu
Top achievements
Rank 2
 answered on 11 Mar 2009
1 answer
211 views
Hi there,

Is it at all possible to edit multiple rows at the same time?  Inline editing would be preferable. 


Any suggestions appreciated 
Princy
Top achievements
Rank 2
 answered on 11 Mar 2009
6 answers
135 views
Hello. I have an interesting situation using the RadToolTipManager and asp:MediaPlayer. Here is the page I am working with:

http://www.mccsokinawa.com/dntestapps/

As you can see, when you mouse over an appointment on the RadScheduler, a pop-out tooltip shows a RadTabStrip, a MediaPlayer, and some text. The first time this tool-tip is loaded, everything shows just fine. However, as soon as you close the tooltip (use the X) or mouse-over another appointment for a new tooltip, a Javascript error takes place.

Any idea why this might be happening? Any idea how I can fix this in either Server-side or Client-side code? The controls load the first time, so I don't think it's anything server-side...

Any help would be much appreciated as always.
David
Top achievements
Rank 1
 answered on 10 Mar 2009
2 answers
136 views
Hi,
Please refer to the following telerik sample.

I want to use the same interface (multiple combo boxes) on different pages.
How can I convert the combo boxes into a server control so that I can register it in the toolbox and then drag and drop on the page I need it.

thanks and regards...
Sid
Top achievements
Rank 1
 answered on 10 Mar 2009
3 answers
81 views
Hello Guys,
  I am using the RadControls for ASPNET AJAX Q3 2008; I have a web form that contains a single radgrid and I use a usercontrol as the edit form for the grid. I have a particular condition that if it should occur, say a particular control is empty then I prompt the user to enter a value into that control. I use e.Canceled = true to cancel the updateCommand on the grid. however when I do this all the radcomboboxes on the usercontrol gets rendered incorrectly( the drop down arrow disappears). Any help will be greatly appreciated.


Rgards,
Nyron 
Kyri
Top achievements
Rank 2
 answered on 10 Mar 2009
1 answer
469 views
I am trying to retain expanded and selected columns in my radgrid with a detailview after row drop from another grid.
I am following the guides here and have set EnableAJAX="False" on my RadAjaxManager. My problem is that the ItemCommand event is not fired unless it performs a sort.

here is the grid I am trying to retain select and Expand Collapse on
<telerik:RadGrid ID="rgGroups" runat="server" OnItemCommand="rgGroups_ItemCommand"  
                OnDataBound="rgGroups_DataBound" AllowFilteringByColumn="True" AllowPaging="True" 
                    AllowSorting="True" AllowMultiRowSelection="True" AutoGenerateColumns="False" 
                    DataSourceID="obsUserGroups" GridLines="None" ShowGroupPanel="True" Skin="Hay" 
                    PageSize="30"> 
                    <HeaderContextMenu> 
                        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                    </HeaderContextMenu> 
                    <ClientSettings AllowColumnsReorder="True" AllowDragToGroup="true" AllowRowsDragDrop="true" 
                        AllowExpandCollapse="True"> 
                        <Selecting AllowRowSelect="true" EnableDragToSelectRows="true" /> 
                    </ClientSettings> 
                    <MasterTableView AllowMultiColumnSorting="True"  
                        DataKeyNames="GroupID"  
                        DataSourceID="obsUserGroups" 
                        HierarchyLoadMode="Client"  
                        NoDetailRecordsText="No groups defined."  
                        ShowHeadersWhenNoRecords="false" 
                        NoMasterRecordsText="No groups found."> 
                        <DetailTables> 
                            <telerik:GridTableView runat="server" AllowPaging="False"  
                                AutoGenerateColumns="False" 
                                DataKeyNames="UserID,GroupID" DataSourceID="obsGetGroupMembers"  
                                NoMasterRecordsText="No users found." 
                                NoDetailRecordsText="No users in group."  
                                ShowHeadersWhenNoRecords="False"> 
                                <RowIndicatorColumn> 
                                    <HeaderStyle Width="20px" /> 
                                </RowIndicatorColumn> 
                                <ExpandCollapseColumn> 
                                    <HeaderStyle Width="20px" /> 
                                </ExpandCollapseColumn> 
                                <ParentTableRelation> 
                                    <telerik:GridRelationFields DetailKeyField="GroupID" MasterKeyField="GroupID" /> 
                                </ParentTableRelation> 
                                <Columns> 
                                    <telerik:GridBoundColumn SortExpression="FName" HeaderText="FName" UniqueName="FName" 
                                        DataField="FName" /> 
                                    <telerik:GridBoundColumn SortExpression="LName" HeaderText="LName" UniqueName="LName" 
                                        DataField="LName" /> 
                                    <telerik:GridBoundColumn SortExpression="UserEmail" HeaderText="UserEmail" UniqueName="UserEmail" 
                                        DataField="UserEmail" /> 
                                </Columns> 
                            </telerik:GridTableView></DetailTables> 
                        <RowIndicatorColumn> 
                            <HeaderStyle Width="20px"></HeaderStyle> 
                        </RowIndicatorColumn> 
                        <ExpandCollapseColumn Visible="True"> 
                            <HeaderStyle Width="20px"></HeaderStyle> 
                        </ExpandCollapseColumn> 
                        <Columns> 
                            <telerik:GridBoundColumn DataField="GroupName" HeaderText="Group" SortExpression="GroupName" 
                                UniqueName="GroupName"> 
                            </telerik:GridBoundColumn> 
                        </Columns> 
                    </MasterTableView><FilterMenu> 
                        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                    </FilterMenu> 
                </telerik:RadGrid> 

Code Behind (although it doesn't reach this):
 Protected Sub rgGroups_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles rgGroups.ItemCommand 
        'save the expanded/selected state in the session 
        If e.CommandName = RadGrid.ExpandCollapseCommandName Then 
            'Is the item about to be expanded or collapsed 
            If Not e.Item.Expanded Then 
                'Save its unique index among all the items in the hierarchy 
                Me.ExpandedStates(e.Item.ItemIndexHierarchical) = True 
            Else 
                'collapsed 
                Me.ExpandedStates.Remove(e.Item.ItemIndexHierarchical) 
                Me.ClearExpandedChildren(e.Item.ItemIndexHierarchical) 
            End If 
            'Is the item about to be selected  
        ElseIf e.CommandName = RadGrid.SelectCommandName Then 
            'Save its unique index among all the items in the hierarchy 
            Me.SelectedStates(e.Item.ItemIndexHierarchical) = True 
            'Is the item about to be deselected  
        ElseIf e.CommandName = RadGrid.DeselectCommandName Then 
            Me.SelectedStates.Remove(e.Item.ItemIndexHierarchical) 
        End If 
    End Sub 

I would appreciate any help as I am lost.

WOWPhantom
Top achievements
Rank 1
 answered on 10 Mar 2009
6 answers
215 views
Hi,

How can i make my scheduler to accept only 1 appointment per Time Slot?
And if possible, how can make it on clientside only.

For example : 
I schedule an appointment on Jan 5, 2009 8:00am to Jan 5, 2009 10:00am
Between 8am and 10am timeslot i will not be able to insert a new appointment.

Thanks,
Bermo
andrea
Top achievements
Rank 1
 answered on 10 Mar 2009
4 answers
264 views
Hi

Is it possible to get the RadRotator control to reference images that are stored in a SQL Server 2008 database, rather than in the file system itself?

Any help or code segments would be appreciated.

Regards
Fitz

ManniAT
Top achievements
Rank 2
 answered on 10 Mar 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?