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

I have question here related to Rad Grid PDF Export.

Is there any way to avoid hard coding width inside the table (<table width="70px">), In our scenario, we are getting the width from CSS file but it fails while we do export data to Pdf file, we get very weird server error, pasted below-

We don't want to hard code this width inside the table, please suggest some alternative way of doing it.

<telerik:GridTemplateColumn UniqueName="Symbol">
                    <HeaderTemplate>
                        <asp:Label ID="labelHSymbol" runat="server" Text="Symbol"></asp:Label>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <table width="70px">
                            <colgroup>
                                <col />
                            </colgroup>
                            <tr>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="labelSymbol" runat="server" Text='<%# Bind("Symbol") %>'></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>

Server Error in '/' Application.
System.SystemException: At least one of minimum, optimum, or maximum IPD must be specified on table.
  at Telerik.Web.Apoc.ApocDriver.FireApocError(String message)
  at Telerik.Web.Apoc.Fo.Flow.Table.SetIPD(Boolean bHasProportionalUnits, Int32 maxAllocIPD)
  at Telerik.Web.Apoc.Fo.Flow.Table.CalcFixedColumnWidths(Int32 maxAllocationWidth)
  at Telerik.Web.Apoc.Fo.Flow.Table.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.TableCell.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.TableRow.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.AbstractTableBody.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Table.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area, Region region)
  at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Pagination.PageSequence.Format(AreaTree areaTree)
  at Telerik.Web.Apoc.StreamRenderer.Render(PageSequence pageSequence)
  at Telerik.Web.Apoc.Fo.FOTreeBuilder.EndElement()
  at Telerik.Web.Apoc.Fo.FOTreeBuilder.Parse(XmlReader reader)
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.SystemException: System.SystemException: At least one of minimum, optimum, or maximum IPD must be specified on table.
  at Telerik.Web.Apoc.ApocDriver.FireApocError(String message)
  at Telerik.Web.Apoc.Fo.Flow.Table.SetIPD(Boolean bHasProportionalUnits, Int32 maxAllocIPD)
  at Telerik.Web.Apoc.Fo.Flow.Table.CalcFixedColumnWidths(Int32 maxAllocationWidth)
  at Telerik.Web.Apoc.Fo.Flow.Table.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.TableCell.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.TableRow.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.AbstractTableBody.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Table.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area, Region region)
  at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Pagination.PageSequence.Format(AreaTree areaTree)
  at Telerik.Web.Apoc.StreamRenderer.Render(PageSequence pageSequence)
  at Telerik.Web.Apoc.Fo.FOTreeBuilder.EndElement()
  at Telerik.Web.Apoc.Fo.FOTreeBuilder.Parse(XmlReader reader)
 
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:
 
 
[SystemException: System.SystemException: At least one of minimum, optimum, or maximum IPD must be specified on table.
   at Telerik.Web.Apoc.ApocDriver.FireApocError(String message)
   at Telerik.Web.Apoc.Fo.Flow.Table.SetIPD(Boolean bHasProportionalUnits, Int32 maxAllocIPD)
   at Telerik.Web.Apoc.Fo.Flow.Table.CalcFixedColumnWidths(Int32 maxAllocationWidth)
   at Telerik.Web.Apoc.Fo.Flow.Table.Layout(Area area)
   at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
   at Telerik.Web.Apoc.Fo.Flow.TableCell.Layout(Area area)
   at Telerik.Web.Apoc.Fo.Flow.TableRow.Layout(Area area)
   at Telerik.Web.Apoc.Fo.Flow.AbstractTableBody.Layout(Area area)
   at Telerik.Web.Apoc.Fo.Flow.Table.Layout(Area area)
   at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
   at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area, Region region)
   at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area)
   at Telerik.Web.Apoc.Fo.Pagination.PageSequence.Format(AreaTree areaTree)
   at Telerik.Web.Apoc.StreamRenderer.Render(PageSequence pageSequence)
   at Telerik.Web.Apoc.Fo.FOTreeBuilder.EndElement()
   at Telerik.Web.Apoc.Fo.FOTreeBuilder.Parse(XmlReader reader)]
   Telerik.Web.Apoc.ApocDriver.FireApocError(String message) +82
   Telerik.Web.Apoc.Fo.FOTreeBuilder.Parse(XmlReader reader) +701
   Telerik.Web.Apoc.ApocDriver.Render(XmlReader inputReader, Stream outputStream) +192
   Telerik.Web.Apoc.ApocDriver.Render(TextReader inputReader, Stream outputStream) +43
   Telerik.Web.UI.Grid.Export.TableViewExporter.PdfExportRenderForm(HtmlTextWriter nullWriter, Control form) +1120
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +109
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +8827569
   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +31
   System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +53
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +40
   Telerik.Web.UI.Grid.Export.TableViewExporter.PdfExportRenderPage(HtmlTextWriter nullWriter, Control page) +92
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +109
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
   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) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3060
 
 
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
Princy
Top achievements
Rank 2
 answered on 10 Mar 2014
1 answer
62 views
Hi,
I've a RadGrid and I used EditFormSettings with an external WebUserControl for Insert and Delete record.

<EditFormSettings EditFormType="WebUserControl" UserControlName="~/Desktop/Function/Content/Grid/ucGridManageEvent.ascx">
                    <EditColumn UniqueName="EditCommandColumn1">
                    </EditColumn>
</EditFormSettings>

I want use in this WebUserControl (ucGridManageEvent.ascx) an ImageEditor but the control don't work; load the image but all the feature don't work and the element in combobox are unreadable ( see picture)


Vessy
Telerik team
 answered on 10 Mar 2014
1 answer
531 views
Hi I set a link in my RadGrid to another page in the solution. When this link is clicked the load event happens on the other page, but I found out that it runs TWICE. I am trying to figure out why the page is loaded twice and i looked at the query string in both calls and it was like this:

{Tag_ID=20&JobID=58&rwndrnd=0.9606249039261587}
{Tag_ID=20&JobID=58&rwndrnd=0.37347160870580026}

So my question is what is rwndrnd? and can the values of it in the two requests help me figure out why the page is being loaded twice?


Thanks
Sam
Ianko
Telerik team
 answered on 10 Mar 2014
5 answers
227 views

Hi, I've a small problem with RadGrid.
I must transform old code with ASP.NET GridView in a new code with Telerik RadGrid.

In old version I've two TemplateField in my GridView : in first column  there is a label with the code of row (hide) and in the second column there is an ImageButton with an Handler with the function btnUpdate_Click.

....

<asp:TemplateField Visible="false">  
 <ItemTemplate> 
         <asp:Label ID="lblCode" runat="server" Text='<%# Bind("Code") %>' /> 
        </ItemTemplate> 
</asp:TemplateField> 
<asp:TemplateField> 
 <ItemTemplate> 
         <asp:ImageButton ID="btnEdit" runat="server"  ImageUrl="~/edit.png" OnClick="btnEdit_Click" CausesValidation="false" /> 
 </ItemTemplate> 
</asp:TemplateField> 

......

In function btnEdit_Click I cast the row and the Label control in the row and with the code I transfer the page.

protected void btnEdit_Click(object sender, EventArgs e)  
{  
 GridViewRow row = ((GridViewRow)((ImageButton)sender).NamingContainer);  
 Label lblCode = (Label)row.Cells[0].Controls[1];  
 Server.Transfer("~/Detail.aspx?Code="+lblCode.Text);  

How do I do this operation with RadGrid?
I don't want use the the Inline solution or client scripts.
I need that when the user click on an imageButton or button in a row I enter in a server side code.

Thanks,
Marco

Maria Ilieva
Telerik team
 answered on 10 Mar 2014
1 answer
55 views
Como hago para cambiar el idioma del panel de un radpivotgrid
Kostadin
Telerik team
 answered on 10 Mar 2014
1 answer
53 views
Hi,

My requirement is like this.

I have a page on which I have a RadDockLayout.

I have placed a user control on this page which contains a datalist.

Datalist dynamically generates Raddockzones.

I need to provide the user with an option to save positions of Raddockzones as well as the states of the Raddocks they contain in a cookie.

Is there a way to accomplish this?

Any help would be appreciated.

Thanks,
Priyank
Slav
Telerik team
 answered on 10 Mar 2014
3 answers
178 views
Hi Everyone 

I have this datatable
ID     Amount   Date
1       500         Feb 18
2       200         Feb 15 
3       400         Feb 18
4       800         Mar 18
5       300         Mar 19

i am making bar chart. In my chart months show in X-axis. I just to know how to represent this datatable to my chart.
And problem is that i have multiple amounts in same month i dont know how to show different amount bars in same month.
And Every bar on mouse hover  show amount. i dont want to show amount. i want to show Date on mouse hover in bar..

Please Help me how to do this

Thanks in Advance




Danail Vasilev
Telerik team
 answered on 10 Mar 2014
1 answer
132 views
Hi,
 
My grid has EditMode="Batch"
 <BatchEditingSettings EditType="Row" />

And AllowKeyboardNavigation="true"

Pressing Delete key causes JavaScript errors when no rows are selected.  This happens right after a row was deleted.

I was trying to disable this key through,
       
$(document).keydown(function (e) {
   if (e.which == 46) {
      e.preventDefault();
      return false;
   }
});



This prevents  Delete key from functioning, but only when focus is inside edited textbox. 

When a row is highlighted, the code executes, but a row is deleted anyway.  Setting AllowKeyboardNavigation to false resolves this issue at a loss of other functionality.

Is there a way to disable just the Del key?
Konstantin Dikov
Telerik team
 answered on 10 Mar 2014
3 answers
2.2K+ views
Hi,
   I have a requirement to show/hide a button. But when I tried to hide the button from C# code behind page. Still a small rectangle is displayed on the screen. below is the code for that.

 btn_Cancel.Attributes["style"]="visibility:hidden;display:none";

But it still displays small rectangular box. This is happening when I include FormDecorator in my page. When I looked at the style of that rectangular box using ie developer tool I see a style rfdSkinnedButton. how can I achieve this. I have to use Form decorator in my master page.
Please help me on this ASAP.

Thanks in advance.



Danail Vasilev
Telerik team
 answered on 10 Mar 2014
7 answers
93 views
Hello i am using radsitemap in right to left forms ,i want to set set it righ to left when i set direction to rtl it does not work.

please view the attached image.

and also how can i set the indention for child item in site map to show the depth.

Best regards
Kate
Telerik team
 answered on 10 Mar 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?