Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
176 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
69 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
471 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
144 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
114 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
3 answers
90 views
Hi

I have a problem when exporting the content in the radgrid to PDF using 'Save as PDF' option ( IE6 only ).

It showing the following error 'There was an error opening the documnet. The File Cannot be Found'.

Please give any suggestions.

Thanks in advance.

Regards
Rags

Daniel
Telerik team
 answered on 08 Oct 2009
4 answers
179 views
To simplify for you, here is (most of) the markup. As you can see it is pretty straight forward and simple, but it doesn't work:

<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <telerik:RadSkinManager ID="RadSkinManager1" Runat="server" Skin="WebBlue">
    </telerik:RadSkinManager>
    <telerik:RadFormDecorator ID="RadFormDecorator" runat="server" DecoratedControls="All">
    </telerik:RadFormDecorator>
    <div>
        <telerik:RadGrid ID="DocumentGrid" runat="server" Width="100%" OnNeedDataSource="DocumentGrid_NeedDataSource" AllowPaging="true" AllowSorting="true" OnSortCommand="DocumentGrid_SortCommand">
        </telerik:RadGrid>
    </div>
    </form>
</body>
</html>


And the code behind:

namespace WebApplication1
{
    [Serializable]
    public class Document
    {
        public int Id { get; set; }
        public string ObjectId { get; set; }
        public string ArchiveCode { get; set; }
        public DateTime CreateTime { get; set; }
    }

    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                List<Document> documents = new List<Document>();
                DateTime theTime = DateTime.Now;
                documents.Add(new Document() { Id = 1, ObjectId = "12345", ArchiveCode = "X", CreateTime = theTime });
                documents.Add(new Document() { Id = 2, ObjectId = "12345", ArchiveCode = "Y", CreateTime = theTime.AddDays(1) });
                documents.Add(new Document() { Id = 3, ObjectId = "12346", ArchiveCode = "Y", CreateTime = theTime });

                ViewState["Documents"] = documents;

                DocumentGrid.PageSize = 3;
                DocumentGrid.AutoGenerateColumns = false;
                DocumentGrid.MasterTableView.RetrieveAllDataFields = false;
                DocumentGrid.MasterTableView.AllowMultiColumnSorting = true;

                GridSortExpression sortExpression = new GridSortExpression() { FieldName = "Id", SortOrder = GridSortOrder.Descending };
                DocumentGrid.MasterTableView.SortExpressions.AddSortExpression(sortExpression);
            }
        }

        protected void DocumentGrid_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
        {
            DocumentGrid.Columns.Clear();
            DocumentGrid.Columns.Add(new GridBoundColumn() { DataField = "Id", HeaderText = "Id", UniqueName = "DocumentIdColumn", SortExpression = "Id" });
            DocumentGrid.Columns.Add(new GridBoundColumn() { DataField = "ObjectId", HeaderText = "ObjectId", UniqueName = "DocumentObjectIdColumn", SortExpression = "ObjectId" });
            DocumentGrid.Columns.Add(new GridBoundColumn() { DataField = "CreateTime", HeaderText = "CreateTime", UniqueName = "DocumentCreateTimeColumn", SortExpression = "CreateTime" });
            DocumentGrid.Columns.Add(new GridBoundColumn() { DataField = "ArchiveCode", HeaderText = "ArchiveCode", UniqueName = "DocumentArchiveCodeColumn", SortExpression = "ArchiveCode" });

            DocumentGrid.DataSource = (List<Document>)ViewState["Documents"];
        }

        protected void DocumentGrid_SortCommand(object source, GridSortCommandEventArgs e)
        {
            GridSortExpression sortExpr = new GridSortExpression();
            switch (e.OldSortOrder)
            {
                case GridSortOrder.None:
                    sortExpr.FieldName = e.SortExpression;
                    sortExpr.SortOrder = GridSortOrder.Descending;

                    e.Item.OwnerTableView.SortExpressions.AddSortExpression(sortExpr);
                    break;
                case GridSortOrder.Ascending:
                    sortExpr.FieldName = e.SortExpression;
                    sortExpr.SortOrder = DocumentGrid.MasterTableView.AllowNaturalSort ? GridSortOrder.None : GridSortOrder.Descending;
                    e.Item.OwnerTableView.SortExpressions.AddSortExpression(sortExpr);
                    break;
                case GridSortOrder.Descending:
                    sortExpr.FieldName = e.SortExpression;
                    sortExpr.SortOrder = GridSortOrder.Ascending;

                    e.Item.OwnerTableView.SortExpressions.AddSortExpression(sortExpr);
                    break;
            }

            e.Canceled = true;
            DocumentGrid.Rebind();
        }
    }
}

Can someone please tell me what is wrong with this code?

Sebastian
Telerik team
 answered on 08 Oct 2009
1 answer
210 views

I am trying to have a RadMenu navigate to a specific page in a specific "frame". Now the frame can be an IFrame or a RadPane, I'm not picky, just needs to work. Is there something obvious here that's preventing it from working?

What's happening is the page is being loaded into a new window.

I am using version 2009.2.821.35


<table width="100%" cellpadding="0" cellspacing="0" border="0">
<

 

tr>

 

 

 

 

    <td></td>

 

 

 

 

    <td>

 

 

 

 

        <

 

telerik:RadMenu ID="RadMenu1" runat="server" Skin="Black" Width="1000px" OnItemClick="RadMenu1_ItemClick">

 

 

 

        <Items>

 

 

 

            <telerik:RadMenuItem runat="server" NavigateUrl="home.aspx" Text="Home" Target="Main">

 

 

 

            </telerik:RadMenuItem>

 

 

 

            <telerik:RadMenuItem runat="server" NavigateUrl="Portfolio.aspx" Text="Portfolio" Target="Main">

 

 

 

            </telerik:RadMenuItem>
        </Items>

 

 

         </

 

telerik:RadMenu>
    </td>
</tr>
 <tr>

 

 

 

 

 

    <td></td>

 

 

 

 

    <td>

 

 

    

 

<iframe id="Main" runat="server" src="Home.aspx" ></iframe>

 

 

 

 

    </td>

 

 

 

 

</tr>
</table>

Thanks,

 

 

 

 

Paul
Telerik team
 answered on 08 Oct 2009
1 answer
171 views
Hi,
I'm using the latest official version of ASP.NET Ajax  and I use IE8.0.
Please check the following demo :
http://demos.telerik.com/aspnet-ajax/toolbar/examples/functionality/righttoleft/defaultcs.aspx
as you see the controls (RadToolBarDropDown and RadToolBarSplitButton ) has been used to demonstrate the right to left functionality, but they don't render properly.
just change your demo and move the RadToolBarDropDown or RadToolBarSplitButton from the last to the beginning of toolbar and instead of short names like  Left,center,Right or Red Blue,Green use longer names.
the if you click on them, you will see that some portion of items the items truncated on the screen.

if you compare it with http://demos.telerik.com/aspnet-ajax/toolbar/examples/functionality/itemtypes/defaultcs.aspx you will find that the starting point of popup menu is wrong, means for this one when you click on RadToolBarDropDown or RadToolBarSplitButton the popup menu starts from left to right ( it aligned from the text portion toward down arrow image which is right) .
For http://demos.telerik.com/aspnet-ajax/toolbar/examples/functionality/righttoleft/defaultcs.aspx example we expect the right behavior ( It should be aligned from the text portion toward the down arrow image)  bu as you can see the popup menu always render from left to right ( from down arrow image toward text portion )

Thanks





Yana
Telerik team
 answered on 08 Oct 2009
3 answers
206 views
hi,

I have to reorder items in the radgrid by using drag and drop. A solution provided in exisiting forum thread was using data tables. I can reorder items but this is only temporarily. As all the processing is done in data table. What i want is when my data is updated in data table it should be updated in actual database from where i am getting the data (through sqldatasource). I am using a c# version. Please help in it. I will be very thankful.

Cheers, Ali
Sebastian
Telerik team
 answered on 08 Oct 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?