Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
143 views
Hello,

I have a problem when closing a rad window. It takes around 1-2s for the close button to get focus when i hover it, and another 1-2s to close the window. So if i click on th e close button, it takes almost 4s for the window to dissapear.

This is the code calling the window :
 <telerik:RadWindowManager ID="RadWindowManager1" runat="server"
            <Windows> 
                <telerik:RadWindow  
                    id="RadWndOH"  
                    runat="server" 
                    showcontentduringload="false" 
                    width="100%" 
                    height="100%" 
                    title="Order History" 
                    behaviors="Close" Modal="true"
                </telerik:RadWindow> 
            </Windows> 
            </telerik:RadWindowManager> 
     
 
        <script type="text/javascript"
            //<![CDATA[
            function ShowOhWindow(navigateUrl) {
                var radWnd = radopen(navigateUrl, "RadWndOH");
                radWnd.maximize();
               }
            //]]> 
        </script> 

In the page that i'm loading inside the radwindow i have a telerik splitter with 2 panes. In the left pane i have a telerik panel menu and in the right one 2 grids.
And also, when the close button finally gets focus, the grid headers width are being modified for a split second, all except the first row. They shift 5-10px to the left, and then they go back to their initial position. Every time i move the mouse over the close button. Or maybe this is an issue for the grid forum? But it only happens within a rad window.

This is the code for the grid (the grid is placed inside a rad panel):

<telerik:RadGrid ID="gridSearchResOrders" runat="server" AutoGenerateColumns="False" BorderStyle="None" 
                                                        BorderWidth="0px" EnableAJAX="true" GridLines="None" AllowSorting="true" Height="100%" 
                                                        HorizontalAlign="Center" OnNeedDataSource="gridSearchResOrders_NeedDataSource" OnItemCreated="gridSearchResOrders_ItemCreated" 
                                                        AllowPaging="True"
                                                        <PagerStyle AlwaysVisible="True" Mode="NextPrevAndNumeric" /> 
                                                        <MasterTableView DataKeyNames="D_Order_ID" HeaderStyle-Wrap="false" ItemStyle-Wrap="false" 
                                                           NoMasterRecordsText="No orders to display." 
                                                            ShowFooter="True" TableLayout="Fixed"
                                                            <DetailTables> 
                                                                <telerik:GridTableView runat="server" DataKeyNames="D_Order_Line_ID" NoDetailRecordsText="No order lines to display." 
                                                                    PagerStyle-AlwaysVisible="false" ShowFooter="True" Width="100%"
                                                                    <ParentTableRelation> 
                                                                        <telerik:GridRelationFields DetailKeyField="Order_Link" MasterKeyField="D_Order_ID" /> 
                                                                    </ParentTableRelation> 
                                                                    <Columns> 
                                                                        <telerik:GridBoundColumn DataField="D_Order_Line_ID" HeaderText="orderLineId" SortExpression="D_Order_Line_ID" 
                                                                            UniqueName="D_Order_Line_ID" Visible="False" /> 
                                                                        <telerik:GridBoundColumn Aggregate="Count" DataField="Name_On_Card" FooterText="Total no of order lines : " 
                                                                            HeaderStyle-Width="40%" HeaderStyle-Wrap="false" HeaderText="Name" SortExpression="First_Name" 
                                                                            UniqueName="First_Name"
                                                                        </telerik:GridBoundColumn> 
                                                                        <telerik:GridBoundColumn DataField="Printer_Name" HeaderStyle-Width="20%" HeaderStyle-Wrap="false" 
                                                                            HeaderText="Printer name" SortExpression="Printer_Name" UniqueName="Printer_Name"
                                                                        </telerik:GridBoundColumn> 
                                                                        <telerik:GridBoundColumn DataField="StatusName" HeaderStyle-Width="20%" HeaderStyle-Wrap="false" 
                                                                            HeaderText="Status" SortExpression="StatusName" UniqueName="StatusName"
                                                                        </telerik:GridBoundColumn> 
                                                                        <telerik:GridBoundColumn DataField="StatusChangeDate" HeaderStyle-Width="20%" HeaderStyle-Wrap="false" 
                                                                            HeaderText="Status changed date" SortExpression="StatusChangeDate" UniqueName="StatusChangeDate"
                                                                        </telerik:GridBoundColumn> 
                                                                    </Columns> 
                                                                    <NestedViewTemplate> 
                .....                                                                                                        </NestedViewTemplate> 
                                                                </telerik:GridTableView> 
                                                            </DetailTables> 
                                                            <ExpandCollapseColumn Visible="True"
                                                                <HeaderStyle Width="30px" Wrap="True" BorderStyle="None"/> 
                                                            </ExpandCollapseColumn> 
                                                            <Columns> 
                                                                <telerik:GridBoundColumn DataField="D_Order_ID" Display="False" HeaderText="D_Order_ID" 
                                                                    UniqueName="D_Order_ID"
                                                                </telerik:GridBoundColumn> 
                                                                <telerik:GridBoundColumn DataField="Purchase_Nr" HeaderText="Purchase Nr" SortExpression="Purchase_Nr" 
                                                                    HeaderStyle-Wrap="false" HeaderStyle-Font-Bold="true" UniqueName="cPurchase_Nr"
                                                                </telerik:GridBoundColumn> 
                                                                <telerik:GridBoundColumn DataField="syscreatedate" HeaderText="Created date" SortExpression="syscreatedate" 
                                                                    HeaderStyle-Wrap="false" HeaderStyle-Font-Bold="true" UniqueName="cSyscreatedate"
                                                                </telerik:GridBoundColumn> 
                                                                <telerik:GridBoundColumn DataField="YourOrderReference" HeaderText="Your Order Reference" 
                                                                    HeaderStyle-Wrap="false" HeaderStyle-Font-Bold="true" SortExpression="YourOrderReference" 
                                                                    UniqueName="cYourOrderReference"
                                                                </telerik:GridBoundColumn> 
                                                            </Columns> 
                                                            <ItemStyle Wrap="False" /> 
                                                            <AlternatingItemStyle Wrap="false" /> 
                                                            <HeaderStyle Wrap="False" /> 
                                                        </MasterTableView> 
                                                        <ClientSettings> 
                                                            <Scrolling AllowScroll="True" UseStaticHeaders="True" /> 
                                                        </ClientSettings> 
                                                        <FilterMenu EnableTheming="True"
                                                            <CollapseAnimation Duration="200" Type="OutQuint" /> 
                                                        </FilterMenu> 
                                                    </telerik:RadGrid> 


What could be the cause for this? 
I'm using the Q1 2009 version of telerik components.

Thanks.
Georgi Tunev
Telerik team
 answered on 08 Oct 2009
1 answer
129 views
Guys,
I want to be able to add and display a detail table based on the griditem in the master table. I have an image button column upon clicking which, in the onItemCommand event handler I check the griditem and am trying to add a detail table to the grid if necessary and assign a datasource but it is not working. Anyone have any ideas on how to make this work. Please note that on the page init I have no way knowing about the detail table view. Below is the code.

Thanks,
Pavan.

 public partial class _Default : System.Web.UI.Page
    {

        IList<DataItem> DataSource;

        private void BuildSource()
        {
            List<DataItem> DataItemList = new List<DataItem>();
            for (int i = 0; i < 5; i++)
            {
                DataItem di = new DataItem();
                di.CustomerID = i.ToString();
                di.ContactName = "Customer_" + i;
                DataItemList.Add(di);
            }
            DataSource = DataItemList;
        }


        private void DefineGridStructure()
        {
            RadGrid RadGrid1 = new RadGrid();

            RadGrid1.ID = "RadGrid1";
            RadGrid1.DataSource = DataSource;

            RadGrid1.MasterTableView.DataKeyNames = new string[] { "CustomerID" };

            RadGrid1.Width = Unit.Percentage(98);
            RadGrid1.PageSize = 3;
            RadGrid1.AllowPaging = true;
            RadGrid1.AllowSorting = true;
            RadGrid1.PagerStyle.Mode = GridPagerMode.NextPrevAndNumeric;
            RadGrid1.AutoGenerateColumns = false;
            RadGrid1.ShowStatusBar = true;
            RadGrid1.ItemCommand += new GridCommandEventHandler(RadGrid1_ItemCommand);

            RadGrid1.MasterTableView.PageSize = 20;


            //Add columns

            GridButtonColumn buttonColumn;
            buttonColumn = new GridButtonColumn();
            buttonColumn.ButtonType = GridButtonColumnType.ImageButton;
            buttonColumn.CommandName = "expand";
            buttonColumn.HeaderText = "";
            buttonColumn.ImageUrl = "expand.gif";
            buttonColumn.UniqueName = "expand";
            buttonColumn.Text = "expand";
            RadGrid1.MasterTableView.Columns.Add(buttonColumn);
          
            GridBoundColumn boundColumn;
            boundColumn = new GridBoundColumn();
            boundColumn.DataField = "CustomerID";
            boundColumn.HeaderText = "CustomerID";
            RadGrid1.MasterTableView.Columns.Add(boundColumn);

            boundColumn = new GridBoundColumn();
            boundColumn.DataField = "ContactName";
            boundColumn.HeaderText = "Contact Name";
            RadGrid1.MasterTableView.Columns.Add(boundColumn);
            form1.Controls.Add(RadGrid1);

            
        }

        protected void Page_Init(object source, System.EventArgs e)
        {
            BuildSource();
            DefineGridStructure();
        }


        protected void Page_Load(object sender, EventArgs e)
        {

        }

       private void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
       {

           if (e.CommandName == "expand")
           {
               RadGrid grid = (RadGrid)form1.FindControl("RadGrid1");

               GridTableView tableview1 = new GridTableView(grid);
               tableview1.DataSource = DataSource;

               GridBoundColumn boundColumn;
               boundColumn = new GridBoundColumn();
               boundColumn.DataField = "CustomerID";
               boundColumn.HeaderText = "CustomerID";
               tableview1.Columns.Add(boundColumn);

               boundColumn = new GridBoundColumn();
               boundColumn.DataField = "ContactName";
               boundColumn.HeaderText = "Contact Name";
               tableview1.Columns.Add(boundColumn);

               grid.MasterTableView.DetailTables.Add(tableview1);
           }
            
        }
    }
Sebastian
Telerik team
 answered on 08 Oct 2009
1 answer
94 views
Hello, there is an example of input text boxes that can format numerics  to fixed decimals or currency etc...however I notice on the demo site that the formatting is not correct, when I enter 1.89 the value is reformatted to 1.890000000001.  THis does not seem right

http://demos.telerik.com/aspnet-ajax/input/examples/radinputmanager/firstlook/defaultcs.aspx


It does the same thing here even when I set the 'general setting' to 2 decimal places.

http://demos.telerik.com/aspnet-ajax/input/examples/radnumerictextbox/firstlook/defaultcs.aspx

Thanks
Princy
Top achievements
Rank 2
 answered on 08 Oct 2009
1 answer
87 views
Hi,

I've got a problem with the transfer betwenn two listboxes.
There are 3 Listboxes on my Form. Box1 is used to preselect the Items appearing in Box2.
Then i want to to transfer some of the items from box2 into box3.

I use the RadajaxManger and register Box2 as AjaxUpdatedControl to preselect the items in box2. But when i register Box2 as AjaxUpdatedControl the transfer to box3 fails. When i transfer an item, the item is deleted in the sourcelistbox but it is not listed in the destinationbox.

what can i do to make it work without using postbacks for preseletion ?

best regards
Dominik
Veselin Vasilev
Telerik team
 answered on 08 Oct 2009
11 answers
879 views
I'm trying to follow the example at RadFileExplorer Demo.  When the page loads, I'm not getting any files listed in the control.  The drive I need to get to is not on the web server.

I've tried the following in the code behind:

using System; 
using System.Data; 
using System.Configuration; 
using System.Collections; 
using System.Web; 
using System.Web.Security; 
using System.Web.UI; 
using System.Web.UI.WebControls; 
using System.Web.UI.WebControls.WebParts; 
using System.Web.UI.HtmlControls; 
 
public partial class Price_Change_price_chg : System.Web.UI.Page 
    protected void Page_Load(object sender, EventArgs e) 
    { 
        //Set initial folder to open. Note that the path is case sensitive! 
        this.RadFileExplorer1.InitialPath = Page.ResolveUrl("~//MUSTANG/PVOL/common/download/UniSelectReports/Apr004/");         
 
    } 
 

I've also tried:

this.RadFileExplorer1.InitialPath = Page.ResolveUrl("P:/common/download/UniSelectReports/Apr004/");         

I know my capitalization is correct on the directory.  Any advice on what I'm doing wrong?

Thanks,
David

Lini
Telerik team
 answered on 08 Oct 2009
1 answer
161 views
I'm having a "spot of bother" with a radGrid, that I'm hoping someone can assist me with, where the content appears to be larger than the container, causing it to spill over the borders and extend beyond the defined page, as shown in the attached image.

In IE6 the grid is pushed to the bottom of the page, which makes it look even worse.

Any ideas how to fix this, suitable for IE6+ and Firefox?

I'm using v2.0.50727 of the Telerik controls.
Veli
Telerik team
 answered on 08 Oct 2009
1 answer
68 views
When tabbing into the editor, the focus is being set to the Font field in the toolbar instead of the body of the editor...
How can I fix this?
Rumen
Telerik team
 answered on 08 Oct 2009
1 answer
461 views
I have two related questions. The first is regarding datatable column extendedproperties. Is there a way to access these direction from the RadGrid object once the datasource bound, or do we have to iterate through both the datasource and the grid columns to do whatever we need to with the extended properties?

The second question is about the scenario related to the above question. I am looking for the most efficient approach. I want to create "column groups" so that I can set properties for groups of columns that are related based on business logic. Set visibility, item styles, etc. When I create the data source (data table) I am assigning extended properties using ExtendedProperties, i.e.,

column.ExtendedProperties.Add(

"ColumnGroup", "ImageTransform")
or

column.ExtendedProperties.Add(

"ColumnGroup", "Calcs")

I was thinking about getting the RadGrid object at Page.Prerender, then iterating through the data from the datasource, and then the columns collection to do whatever property assignments. But, I also figured that it might be more efficient to do if the ExtendedProperties were available directly.

 

Nikolay Rusev
Telerik team
 answered on 08 Oct 2009
1 answer
137 views
Admin,

i have two issues to be discussed in this post  , am using radfile selector as given in this link
http://demos.telerik.com/aspnet-ajax/fileexplorer/examples/fileselectordialog/defaultcs.aspx with upload ,add new folder , and delete functionality,  the issues are

1.how do i close the rad window when i upload a file , on that closing event i should know the file which was uploaded.

2.how do i give validation message when i click upload with out selecting any file

Thanks in Advance,

Regards,

Ashok.c
Lini
Telerik team
 answered on 08 Oct 2009
3 answers
111 views
Hey,

I have a radgrid on my site and I have a nested group inside of a main group.  I need to have the group footer on my grid but I do not want a footer to appear on my outer group.

<GroupByExpressions> 
                    <telerik:GridGroupByExpression> 
                        <GroupByFields> 
                            <telerik:GridGroupByField FieldName="CoverageType" /> 
                        </GroupByFields> 
                        <SelectFields> 
                            <telerik:GridGroupByField FieldName="CoverageType" HeaderText="Coverage" /> 
                        </SelectFields> 
                    </telerik:GridGroupByExpression> 
                    <telerik:GridGroupByExpression> 
                        <GroupByFields> 
                            <telerik:GridGroupByField FieldName="CoverageItem" /> 
                        </GroupByFields> 
                        <SelectFields> 
                            <telerik:GridGroupByField FieldName="CoverageItem" HeaderText="Coverage Item" /> 
                        </SelectFields> 
                    </telerik:GridGroupByExpression> 
                </GroupByExpressions> 

The top group is my outer group and I do not want that group to have a footer but I want the CoverageItem group to have a footer.  Is there a way that I can disable the outer footer so it does not have a double footer at the bottom of every group,

Thanks,

Kyle Jones
Yavor
Telerik team
 answered on 08 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?