Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
31 views
Hi
 im having filtering for my date column but its filter textbox width is very long. Any one have any idea on this?
Shinu
Top achievements
Rank 2
 answered on 26 Feb 2014
1 answer
113 views
Hi,
How to change the tooltip text "click here to sort" on header columns?
Princy
Top achievements
Rank 2
 answered on 26 Feb 2014
1 answer
50 views
Hi
how to set the color of the selected row. Which is the easiest way?
Princy
Top achievements
Rank 2
 answered on 26 Feb 2014
3 answers
100 views
Hi,

I am using version 2013.3.1114.35 of your ASP.NET for AJAX controls.

I have an aspx page with many RadWindows defined on an aspx page.  There are also many ascx controls on that page, each that contain a lot of Rad Controls.. 

PROBLEM:
In IE 8 and 9, the width on ALL of my RadWindows on this page is being auto-calculated incorrectly.  They now open up much more narrow than they used to.
Also, if I close and reopen the window, the next time they are 10 times wider than they need to be.

MORE INFORMATION
- The windows are sized correctly in FFox and Chrome.

- Turning IE Compatibility View ON seems to help a little, but it doesn't solve the problem and I can't use that as a solution anyway.

- Using the IE dev tools I can see that the RadWindow frame is the correct width.

- However, the table (class="rwTable") within the frame, is the wrong width (looks like it should be width="100%" but there is no width attribute at all).

- These windows have all worked fine for 2 years, until today, when I added a RadTabStrip and a RadMultiPage to one of the ascx files on this page.

- The odd thing though is that the problem is related to specific properties of a RadGrid that is in the RadMultiPage.  This grid, by the way, has always been on this user control and I didn't change it, and the windows have been working fine with it.

- I can make the problem STOP HAPPENING, if I change the following two properties on the grid.
1.  Remove the Skin="Office2007" property.
and
2.  Set AllowPaging="false"

If I either set AllowPaging="true" or set the Skin="Office2007" (but any skin causes it), the window sizing problem occurs again.

To repeat, this grid has been on this control forever, as have the RadWindows, and they've worked fine together and I haven't changed them.  I only added a Tabstrip and MultiPage and put the grid in the multipage...

QUESTION:
I don't expect that you'll be able to solve this right away, but can you please tell me some things to try to help me troubleshoot this or make progress in resolving it?

My RadWindows are simply defined (in the main aspx page) as follows (I show you only two here, but there are actually 7 in my page) :

    <telerik:RadWindowManager ID="radEventModal" runat="server" EnableViewState="false" Modal="true">
        <Windows>
            <telerik:RadWindow EnableViewState="false" runat="server" ID="sustainmentSettings"
                ReloadOnShow="true"
                NavigateUrl="~/default.aspx"
                Behaviors="Close,Move,Reload"
                VisibleStatusbar="false"
                OnClientClose="RefreshGrid"
                Width="965px" Height="430px">
            </telerik:RadWindow>
           <telerik:RadWindow EnableViewState="false" runat="server" ID="homeworkSettings"
                ReloadOnShow="true"
                ShowContentDuringLoad="false" 
                NavigateUrl="~/default.aspx"
                Behaviors="Move,Resize,Reload"
                VisibleStatusbar="false"
                Width="945px" Height="550px"
                OnClientClose="RefreshHomeworkGrid">
            </telerik:RadWindow>
 </Windows>
    </telerik:RadWindowManager>


Thanks,
Brent

Brent Hetland
Top achievements
Rank 1
 answered on 26 Feb 2014
1 answer
48 views
Hi.
I want to hide a column in my detail table based on a condition in master table view. How to achieve this?
Shinu
Top achievements
Rank 2
 answered on 26 Feb 2014
0 answers
244 views

The RadImageEditor control allowed saving image files (.png/.jpg/.gif) to an up-level folder on the server when the built-in storing of files is used. This issue did not affect implementations based on the content provider paragidm. It has been fixed since the Q1 2014 release of Telerik UI for ASP.NET AJAX (version 2014.1.225).

If you are using an older version of the controls and you do not wish to upgrade, there are two approaches that you can take in order to resolve the security issue:

Telerik Admin
Top achievements
Rank 1
Iron
 asked on 26 Feb 2014
8 answers
204 views
Hi,

I'm getting the data from the database. When I hover over each image, it has a tooltip of 'LightBox Active Image'
How can I remove that or at least change it please?

Cheers,
Jack
Viktor Tachev
Telerik team
 answered on 26 Feb 2014
4 answers
121 views
This issue has me totally lost.

I have a formview with several radcontrols and a UserControl.

The user control has a RadGrid and an ObjectDataSource.

When I call the UpdateItem method on the formview with the following code:

protected void BtnSave_Click(object sender, EventArgs e)
{
if (Page.IsValid)
{
 this.MyFormView.UpdateItem(true);
}
}

I get the following exception:

InvalidOperationException: Collection was modified; enumeration operation may not execute

Here's the stack trace:

   
at System.Web.UI.ControlCollection.ControlCollectionEnumerator.MoveNext()
  at System.Web.UI.WebControls.DataBoundControlHelper.ExtractValuesFromBindableControls(IOrderedDictionary dictionary, Control container)
  at System.Web.UI.WebControls.DataBoundControlHelper.ExtractValuesFromBindableControls(IOrderedDictionary dictionary, Control container)
  at System.Web.UI.WebControls.DataBoundControlHelper.ExtractValuesFromBindableControls(IOrderedDictionary dictionary, Control container)
  at System.Web.UI.WebControls.DataBoundControlHelper.ExtractValuesFromBindableControls(IOrderedDictionary dictionary, Control container)
  at System.Web.UI.WebControls.DataBoundControlHelper.ExtractValuesFromBindableControls(IOrderedDictionary dictionary, Control container)
  at System.Web.UI.WebControls.DataBoundControlHelper.ExtractValuesFromBindableControls(IOrderedDictionary dictionary, Control container)
  at System.Web.UI.WebControls.DataBoundControlHelper.ExtractValuesFromBindableControls(IOrderedDictionary dictionary, Control container)
  at System.Web.UI.WebControls.DataBoundControlHelper.ExtractValuesFromBindableControls(IOrderedDictionary dictionary, Control container)
  at System.Web.UI.WebControls.DataBoundControlHelper.ExtractValuesFromBindableControls(IOrderedDictionary dictionary, Control container)
  at System.Web.UI.WebControls.DataBoundControlHelper.ExtractValuesFromBindableControls(IOrderedDictionary dictionary, Control container)
  at System.Web.UI.WebControls.DataBoundControlHelper.ExtractValuesFromBindableControls(IOrderedDictionary dictionary, Control container)
  at System.Web.UI.WebControls.DataBoundControlHelper.ExtractValuesFromBindableControls(IOrderedDictionary dictionary, Control container)
  at System.Web.UI.WebControls.DataBoundControlHelper.ExtractValuesFromBindableControls(IOrderedDictionary dictionary, Control container)
  at System.Web.UI.WebControls.DataBoundControlHelper.ExtractValuesFromBindableControls(IOrderedDictionary dictionary, Control container)

-------------

The stack trace doesn't say much and didn't help me track the problem, but I ended up figuring out that what was causing the problem is a GridDateTimeColumn defined inside the radgrid (there's only one datetime column) that's inside my user control as such:

<telerik:GridDateTimeColumn DataField="DeadlineDate" UniqueName="DeadlineDate"
     DataFormatString="{0:dd MMM yyyy}" 
HeaderText="Deadline" />

When I remove this column, the call to the formview's UpdateItem method works well. When I put it back, I get the error again. I tried playing w/ the properties, binding to another datetime column, recreating the whole file from scratch, removing everything in the code behind file of the user control, and nothing works. The weird thing is, I have datetime columns in other usercontrols built the same way, and everything works fine there.

Here's the usercontrol definition:

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="GridViewTest.ascx.cs"
    Inherits="TestSolution.WebUI.UserControls.GridViewTest" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<telerik:RadGrid ID="TestRadGrid" runat="server" AllowFilteringByColumn="True" AutoGenerateColumns="false"
    AllowPaging="True" AllowSorting="True" CellSpacing="0" DataSourceID="TestDataSource"
    GridLines="None" Skin="Office2007">
    <MasterTableView EditMode="InPlace" DataKeyNames="PeriodID">
        <Columns>
            <telerik:GridBoundColumn DataField="PeriodID" UniqueName="PeriodID"
                Visible="false" />
            <telerik:GridBoundColumn DataField="SpecificityID" UniqueName="SpecificityID" />
            <telerik:GridDateTimeColumn DataField="DeadlineDate" UniqueName="DeadlineDate" DataFormatString="{0:dd MMM yyyy}"
                HeaderText="Deadline " />
            <telerik:GridBoundColumn DataField="DeadlineDate" UniqueName="DeadlineDate" HeaderText="Deadline" />
            <telerik:GridNumericColumn DataField="OutstandingAmountBeforeDeadline" UniqueName="OutstandingAmountBeforeDeadline"
                NumericType="Number" HeaderText="O/S Before Repayment" />
            <telerik:GridNumericColumn DataField="InterestAmount" UniqueName="InterestAmount"
                NumericType="Number" HeaderText="Interest" />
            <telerik:GridCheckBoxColumn DataField="ToDelete" UniqueName="ToDelete" HeaderText="Delete" />
            <telerik:GridEditCommandColumn ButtonType="PushButton" InsertText="Insert" EditText="Edit"
                CancelText="Cancel" UniqueName="EditCommandColumn" />
        </Columns>
    </MasterTableView>
</telerik:RadGrid>
<asp:ObjectDataSource ID="TestDataSource" runat="server" TypeName="TestSolution.WebUI.ObjectDataSource.TestDataSource"
    SelectMethod="GetTestTableByCriterias">
    <SelectParameters>
        <asp:Parameter Name="TestType" Type="Int32" />
        <asp:Parameter Name="SpecificityID" Type="Int32" />
    </SelectParameters>
</asp:ObjectDataSource>

Any ideas? :(
Shinu
Top achievements
Rank 2
 answered on 26 Feb 2014
3 answers
206 views
Looking for some positioning/z-index guidance on the RadWindow. I've played around for probably too much time and haven't budged a thing so I'm hoping an expert can speed me along.

We have a page with multiple user controls and a ton of Rad items (grids, comboboxes, windows, oh my!). In multiple places we are using RadWindows to pop up attachment selection, searches, etc. These RadWindows are not playing well with an Iframe that is a document preview. The RadWindow is appearing partially behind (or fully behind in some cases) an Iframe doc preview when the file type is unsupported (which is just a white box, since the file in question was opened/saved to the native desktop). This is only happening in IE.

The fact that it is only happening in IE and that IE handles z-indexes differently really leads me to believe I'm not handling the z-index correctly. I've attached two example images. Both of these have a large white box in the document preview area because I have chosen a file of type .docx. The first image shows a fully blocked RadWindow. The second a partially blocked RadWindow.

Z-index of fully blocked: 3001
Z-index of partially blocked: 3005

Any advice (even of a non z-index variety) would be greatly appreciated. Thanks!
Marin Bratanov
Telerik team
 answered on 26 Feb 2014
6 answers
220 views
Hii

i have added column reorder and export to excel and pdf.
when i dont reorder any columns , the export works fine
but when i re order the column and try to export its failing
anybody know why?

 <ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True" AllowColumnsReorder="True" >
                      
                            <Resizing AllowColumnResize="True" AllowRowResize="false" ResizeGridOnColumnResize="false"
                              EnableRealTimeResize="false" AllowResizeToFit="true" />
                  </ClientSettings>
<ExportSettings  FileName = "Scheduled Report Metrics" IgnorePaging="true" OpenInNewWindow="true" ExportOnlyData = "true">
                         <pdf PageWidth="297mm" PageHeight="210mm" PageTitle = "Scheduled Report Metrics " />
                 </ExportSettings>

Server Error in '/Web' Application.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   Telerik.Web.UI.Grid.Export.TableViewExporter.PdfExportRenderForm(HtmlTextWriter nullWriter, Control form) +347
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +8689033
   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32
   System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +51
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +40
   Telerik.Web.UI.Grid.Export.TableViewExporter.PdfExportRenderPage(HtmlTextWriter nullWriter, Control page) +145
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266
Kostadin
Telerik team
 answered on 26 Feb 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?