Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
142 views
I've just installed the free RAD Editor for MOSS (version 4.5.6) as a content manager editor. Is there a way to get the editor to display the full width of the window, similar to the MOSS built-in editor? Currently it only opens half the window's width.

Leigh D'Sylva
Top achievements
Rank 1
 answered on 10 Sep 2009
6 answers
176 views
I just loaded the 2009.1 version of the controls and I'm having an issue with the Scheduler event edit form. When the RadFormDecorator is turned on, the checkboxes for All Day and Recurring task are appearing over the text. Also, when I expand Recurrence, the radio buttons are also appearing on top of the text. If I turn off RadFormDecorator, the checkboxes and radio buttons align properly.

I am using the built-in skins (Vista) for both Calendar and RadFormDecorator in FireFox 3.0.7.

Can you take a look at the issue and either suggest a work-around or tell me how I can turn off RadFormDecorator for this page? Thanks.

EDIT:  I just realized that I meant to put this in the RadScheduler forum. Could you move this for me please
Georgi Tunev
Telerik team
 answered on 10 Sep 2009
1 answer
77 views
Hello,

Can i make a Project with Tabstrib and without Multipage ?

I will make the Tabstrip at the Top of my Site like a Menue,
in my Masterpage and Load the Sites on Click...

I will not have Multipage!
When i click in my Masterpage on a Tab i will load another
Site in my Masterpage.. and then the right Tab must be correct Selected....

In my Masterpage i click bsp.. on a Tab like Contact then i load the Contact.aspx in my
Masterpage and then must the Contact Tab marked as Active ....

Can i work like this ????? or must i insert RadMenu

Thanks
Paul
Telerik team
 answered on 10 Sep 2009
3 answers
164 views
Hi,

I am using a RadGrid. There is a griddatetimecolumn TotalTime represting time from sqlserver database. I have to generate a new column in the grid at run time by subtracting time in last column - 2nd last column.
Example:
S.NO.        Total_Time    DrivingTime
                    (HH:MM)         (HH:MM)
1                01:00            01:00
2                01:35            00:35
3                02:00            00:25

Now I have Total_time from DB, and want DrivingTime to be generated at runtime by doing simple calculations on Total_Time column.i.e. Just subtracting current row total_time with previous row total_time (if exist)  e.g. RowNo.3 DrivingTime= (02:00 - 01:35) = (00:25).

I am using C#

Any help will be highly appreciated.

Cheers, Ali
Syed M Ali Shah
Top achievements
Rank 1
 answered on 10 Sep 2009
3 answers
221 views
 

Hi

We are starting to play with the Rad Grid and investigating the Popup settings with a user control for inserts/updates to the grid.  The grid is being created in code during page init.

        With grd  
            .ID = "grdMyGrid" 
            .AutoGenerateColumns = False 
            .AllowMultiRowEdit = False 
            .AllowPaging = True 
            .AllowSorting = True 
 
            .GridLines = GridLines.None  
            .ShowStatusBar = True 
 
            .MasterTableView.PageSize = 10  
            .MasterTableView.AllowMultiColumnSorting = False 
            .MasterTableView.CommandItemDisplay = GridCommandItemDisplay.Top  
            .MasterTableView.DataKeyNames = New String() {"MySerialNo"}  
            .MasterTableView.TableLayout = GridTableLayout.Fixed  
            .MasterTableView.Width = New Unit(100, UnitType.Percentage)  
 
            .MasterTableView.EditFormSettings.UserControlName = "MyUserControl.ascx" 
            .MasterTableView.EditFormSettings.EditFormType = GridEditFormType.WebUserControl  
            .MasterTableView.EditMode = GridEditMode.PopUp  
            .MasterTableView.EditFormSettings.PopUpSettings.Modal = True 
            '.MasterTableView.EditFormSettings.PopUpSettings.Width = New Unit(750, UnitType.Pixel)  
            .MasterTableView.EditFormSettings.CaptionFormatString = "Popup Title" 
 
 
            '... create columns ... 


When the user clicks the edit button to display the edit control, the user control is being displayed as anticipated.  However, because we haven’t declared a width for the popup window, the window borders are being drawn behind the user control at a fixed width of 400px plus 2px of border because the user control is 750px wide.  Obviously I know that we can set the width in code, but I was wondering if there is any way to have the popup auto size its width like it does with the height.

 

 

Thanks in advance.

Paul

Paul Mc
Top achievements
Rank 1
 answered on 10 Sep 2009
2 answers
80 views
Hi,

 I would like to know how to retain the selected item in the grid after the filtering operation had done.

Help me.

Unni
unnikkannan m
Top achievements
Rank 1
 answered on 10 Sep 2009
3 answers
191 views
I have a grid with a single Detail Table into it. 
Basically, master table is category which just displays category name and detail table displays records for that related parent category. 
Detail table has 5 columns. Evenrything is fine but paging in detail table is not working. 
Even though each category has more than 2 records with PageSize=2; it doesn't display more than 1 page in paging control.
What seems to be wrong here? Appreciate any help!!
~Narendra

ASPX:
<telerik:RadGrid ID="RadGridParent" runat="server" EnableAJAX="True" GridLines="None"  
            ShowGroupPanel="True" Skin="Office2007" AutoGenerateColumns="False" Description="Messages"  
            ShowStatusBar="True" Subtitle="Messages" Title="Messages" Width="98%"  
            OnItemCommand="RadGridParent_ItemCommand" ShowHeader="False" 
            PagerStyle-AlwaysVisible="False" AllowPaging="True" PageSize="2"  
            OnDetailTableDataBind="RadGridParent_DetailTableDataBind"  
            onitemdatabound="RadGridParent_ItemDataBound"  
            onneeddatasource="RadGridParent_NeedDataSource" 
            onprerender="RadGridParent_PreRender" AllowSorting="True"  
            AllowMultiRowSelection="True"
        <MasterTableView DataKeyNames="CategoryID" CommandItemDisplay="Top"
            <DetailTables> 
                <telerik:GridTableView runat="server" DataKeyNames="CategoryID"  
                        AutoGenerateColumns="False" GridLines="Both"  
                        CommandItemDisplay="Bottom" AllowAutomaticInserts="false" AllowAutomaticUpdates="false"  
                        HierarchyLoadMode="ServerOnDemand" ShowHeader="True"  
                    PagerStyle-AlwaysVisible="True" AllowCustomPaging="True" 
                    BorderStyle="Ridge" Width="100%" 
                        NoDetailRecordsText="There are no messages." > 
                    <ParentTableRelation> 
                        <telerik:GridRelationFields DetailKeyField="CategoryID" MasterKeyField="CategoryID"  /> 
                    </ParentTableRelation> 
                    <RowIndicatorColumn Visible="false"
                        <HeaderStyle Width="20px" /> 
                    </RowIndicatorColumn> 
                    <ExpandCollapseColumn Resizable="False"
                        <HeaderStyle Width="20px" />                             
                    </ExpandCollapseColumn> 
                    <PagerStyle Mode="NumericPages"></PagerStyle> 
                     <CommandItemTemplate> 
                        <div> 
                          <table border=0 cellspacing=0 cellpadding=0 width="100%"
                            <tr> 
                                <td width="40%"
                                    <div style="float:left;"
                                    <asp:LinkButton ID="btnDeleteMessage" ConfirmText="Sure?" runat="server" Text="Delete Selected" CommandName="MessageDelete" OnClientClick="return ConfirmDelete(this);" SkinId="swGridDeleteSelectedLinkButton"</asp:LinkButton> 
                                    </div> 
                                </td> 
                                <td width="20%"
                                    <div style="float:left;"
                                        <asp:LinkButton ID="btnMessageMarkAsRead" runat="server" Text="Mark Selected as Read" CommandName="MessageMarkRead" SkinId="swGridMarkMessageReadLinkButton"</asp:LinkButton> 
                                    </div> 
                                </td> 
                                <td width="40%"
                                    <div style="float:right;"
                                        <asp:LinkButton ID="btnMessageMarkAsUnread" runat="server" Text="Mark Selected as Unread" CommandName="MessageMarkUnread" SkinId="swGridMarkMessageUnreadLinkButton"></asp:LinkButton> 
                                    </div> 
                                </td> 
                            </tr> 
                          </table> 
                        </div> 
                    </CommandItemTemplate>         
                    <Columns> 
                     
                    <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn"  HeaderText="Select All"
                    <HeaderStyle Width="10px" /> 
                    </telerik:GridClientSelectColumn> 
                        <telerik:GridBoundColumn DataField="IsRead" DataType="System.String" HeaderText=""  Groupable="false"  
                                SortExpression="IsRead" UniqueName="MessageReadIcon" Visible="True"
                                <HeaderStyle Width="10px" /> 
                                <ItemStyle Width="10px" /> 
                        </telerik:GridBoundColumn> 
 
                        <telerik:GridBoundColumn DataField="CategoryID" DataType="System.Int32"  Groupable="false"  
                                ReadOnly="True" SortExpression="NotificationMsgID" UniqueName="NotificationMsgID" Visible="False">                     
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="NotificationMsgUserID" DataType="System.Int32"  Groupable="false"  
                                ReadOnly="True" SortExpression="NotificationMsgUserID" UniqueName="NotificationMsgUserID" Visible="False">    
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="RVNotificationMsgUser" DataType="System.Int32"  Groupable="false"  
                                ReadOnly="True" UniqueName="RVNotificationMsgUser" Visible="False">    
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="Topic" HeaderText="Topic" DataType="System.String" Groupable="false"  
                                SortExpression="Topic" UniqueName="Topic">                     
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="SendDate" DataType="System.DateTime"  Groupable="false"  
                                HeaderText="Date" SortExpression="SendDate" UniqueName="SendDate">                     
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="Sender" DataType="System.String" HeaderText="From"  Groupable="false"  
                                SortExpression="Sender" UniqueName="Sender"
                            <ItemStyle Width="140px" /> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="MessageText" DataType="System.String" HeaderText="Message" Groupable="false" SortExpression="MessageText"  
                                UniqueName="MessageText">                     
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="SenderUserLastName" UniqueName="SenderUserLastName" Groupable="false" Visible="False">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="SenderUserFirstName" UniqueName="SenderUserFirstName" Groupable="false" Visible="False">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="SenderUserMiddleName" UniqueName="SenderUserMiddleName" Groupable="false" Visible="False">  
                        </telerik:GridBoundColumn> 
                    </Columns>      
                    <editformsettings> 
                        <popupsettings scrollbars="None" /> 
                    </editformsettings> 
                </telerik:GridTableView> 
            </DetailTables> 
             
            <editformsettings> 
                <popupsettings scrollbars="None" /> 
            </editformsettings> 
             
            <CommandItemTemplate> 
                <div style="float:right;text-align:right"
                    <asp:LinkButton ID="LinkButton4" runat="server" CommandName="RebindGrid" 
                            SkinID="swGridRefreshLinkButton" Text="Refresh" ToolTip="Refresh"</asp:LinkButton> 
                </div> 
            </CommandItemTemplate> 
            <RowIndicatorColumn Visible="False"
                <HeaderStyle Width="20px"></HeaderStyle> 
            </RowIndicatorColumn>  
            <ExpandCollapseColumn Visible="true" Resizable="False"
                <HeaderStyle Width="20px"></HeaderStyle> 
            </ExpandCollapseColumn> 
            <Columns> 
                <telerik:GridBoundColumn DataField="MessageDescription" HeaderText="Messages"  
                    SortExpression="MessageDescription" UniqueName="MessageDescription"  
                    ItemStyle-Font-Bold="true" Groupable="false">                     
                    <ItemStyle Font-Bold="True" /> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="CategoryID" UniqueName="CategoryID" HeaderText="" Visible="False"
                </telerik:GridBoundColumn> 
            </Columns> 
        </MasterTableView> 
        <GroupPanel ID="SystemWorksStandardGridGroupPanel" Text="Notifications"
          <PanelStyle Width="100%" Height="20px" /> 
        </GroupPanel> 
        <ClientSettings AllowColumnsReorder="False" AllowDragToGroup="True" ReorderColumnsOnClient="False"
            <Selecting AllowRowSelect="True" /> 
            <Scrolling AllowScroll="false" UseStaticHeaders="false" /> 
        </ClientSettings> 
        <PagerStyle Mode="NumericPages"></PagerStyle> 
</telerik:RadGrid> 
 

CS
protected void RadGridMessages_NeedDataSource(object source, GridNeedDataSourceEventArgs e) 
        { 
            if (!e.IsFromDetailTable) 
            { 
                LoadParentData(); 
            } 
        } 
 
 
        private void LoadParentData() 
        { 
            Category[] cats = new Category[2]; 
 
            Category cat1= new Category(); 
            cat1.MessageTypeID = 1; 
            cat1.MessageDescription = "Catorogy 1"
            cats [0] = cat1 ; 
 
            cat1.MessageTypeID = 2; 
            cat1.MessageDescription = "Category 2"
            cats[1] = cat1; 
 
            RadGridParent.MasterTableView.DataSource = cats; 
        } 
 
        protected void RadGridParent_DetailTableDataBind(object source, GridDetailTableDataBindEventArgs e) 
        { 
            childDataSource[] childDS; 
 
            GridDataItem dataItem = (GridDataItem)e.DetailTableView.ParentItem; 
            int catId = Int32.Parse(dataItem.GetDataKeyValue("CategoryID").ToString()); 
 
            childDS = GetChildDataSourceByCategory(catId); 
             
        e.DetailTableView.DataSource = childDS; 
        } 
 
 


Anil Sahu
Top achievements
Rank 1
 answered on 10 Sep 2009
8 answers
128 views
Hi,

How can I add more than one AutoCompleteSeparator character ? E.g ';' and ','

Because, when I set up AutoCompleteSeparator=";,", it does not work properly. The text isn't autocompleted when the ',' is pressed.

Thanks in advance,
Michal
Top achievements
Rank 1
 answered on 10 Sep 2009
2 answers
138 views
Dear Sirs,

i need to count the selected nodes on my treeview.
can you show me an example using VB code, please?
many thanks in advance

Luca
 
Luca Fumagalli
Top achievements
Rank 1
 answered on 10 Sep 2009
1 answer
105 views
hai!

I can not get correct subtotals of each column field.. subtotals is very long.....And also I have another issue...when view report through report viewer control the below error comes..

An error has occured while processing TextBox 'salesOrPurchaseDescDataTextBox':
The expression contains object 'SalesOrPurchaseDesc' that is not defined in the current context.

I have get data from xml......

that xml file is

<?

xml version="1.0" encoding="utf-8" ?>

 

 

<

NewDataSet>

 

<

BillItemLine>

 

<

ItemLineAmount>844.35</ItemLineAmount>

 

<

ItemLineItemRefListID>350000-1247582799</ItemLineItemRefListID>

 

<

EstimateKey>Plan 804-1:804-1-502</EstimateKey>

 

<

Plan>804-1</Plan>

 

<

HouseAddress>3341 West Avenue, Beaumont</HouseAddress>

 

<

EstimateLineAmount>6000</EstimateLineAmount>

 

<

Name>804-1-502</Name>

 

<

SalesOrPurchaseDesc>Foundation Labor</SalesOrPurchaseDesc>

 

</

BillItemLine>

 

<

BillItemLine>

 

<

ItemLineAmount>84.87</ItemLineAmount>

 

<

ItemLineItemRefListID>370000-1247585073</ItemLineItemRefListID>

 

<

EstimateKey>Plan 804-1:804-1-633</EstimateKey>

 

<

Plan>804-1</Plan>

 

<

HouseAddress>3341 West Avenue, Beaumont</HouseAddress>

 

<

EstimateLineAmount>300</EstimateLineAmount>

 

<

Name>804-1-633</Name>

 

<

SalesOrPurchaseDesc>Portalet</SalesOrPurchaseDesc>

 

</

BillItemLine>

 

</

NewDataSet>


can anyone please me?  thx....

 

Priya Priya
Top achievements
Rank 1
 answered on 10 Sep 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?