Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
691 views
Hello,

I have an ItemTemplate in my RadListBox with a Label and an anchor tag. I am not binding the a datasource to this RadListBox, rather adding RadListBoxItem one by one. I want the Text property of RadListBoxItem to be mapped to the asp:Label in the template and when I click on the delete anchor tag, the item should be deleted. Can someone help me on this?

<ItemTemplate>
     <span>
           <asp:Label Text="how to bind" runat="server"></asp:Label>
     </span>
     <span>
           <
a href="#" onclick="how to delete">Delete</a></span>
</ItemTemplate>

Thanks,
Saquib
Nencho
Telerik team
 answered on 17 May 2013
12 answers
650 views
I need a little bit of insight on an "Unknown Server Tag" issue coming from the Filtering with MS DropDownList tutorial located at (http://www.telerik.com/help/aspnet-ajax/grdfilteringwithdropdownlist.html). 

I've copied the Source provided there letter-for-letter to "Show Off" the RADGrid's capabilities compared to others.  However, there are a few warnings and parser errors that are halting the development:

In designer, the gridview renders fine and the custom columns are editable.  However at runtime the ASPX page displays a parser error for an unknown server tag custom:MyCustomFilteringColumn.

The two warnings in question are:

Element 'MyCustomFilteringColumn' is not a known element. This can occur if there is a compilation error in the Web site, or the web.config file is missing.

and

Generation of designer file failed: Unknown server tag 'custom:MyCustomFilteringColumn'

The one time it did not give these errors, it complained that columns about the column type. 

Any insight on this?  I'm using the Trial version at the moment, and the code is a carbon copy from the URL provided above.  Development environment is Visual Studio 2008 with Service Pack 1.

Thanks for the support.
Felix
Top achievements
Rank 1
 answered on 17 May 2013
6 answers
365 views
Dear Telerik Support,

how can i write the text in two lines?

Example (not working):
Text= "First Line <br /> Second Line"

First Line
Second Line

And how do i change the text align with image or not?
If you have image and the align is Left, the text is behind the image.

Thank you in advance

Best Regargs,
Navarino Technology Department.
Bozhidar
Telerik team
 answered on 17 May 2013
1 answer
108 views
Hi,

I have a radgrid and on clicking a cell, i want to copy the cell text to a radtextbox on clicking the cell. Is it possible in JS?

Thanks,
Anly.
Princy
Top achievements
Rank 2
 answered on 17 May 2013
12 answers
236 views
Hi all,
We have a strange problem with the Telerik Scheduler. The drag and drop event is working fine in FF and IE, but in Chrome it freezes after the first successful D&D. This is not the case in other browsers. 
It is more strange that it doesn't throw any JS nor code behind exception. It looks like it doesn't invoke the event the second time the user tries to D&D any appointment on the scheduler. Reloading the page (f5, Ctrl +f5) seems to make the D&D available but once the user D&D something again, it freezes and he/she needs to reload the page again. This is causing a big problem knowing that our production release is coming soon. 
I tried uprgrading to the latest 2011.2.915.40 version but that didn't solved the problem.
This issue has been awhile and maybe some of our team has already reported something similar but I wasn't able to find it.  
I would really appreciate if someone can share a solution or experience how to solve this problem. 

Thanks in advance

Best Regards
Plamen
Telerik team
 answered on 17 May 2013
1 answer
271 views
Hi,

I'm trying to export the rad grid information in pdf file but while exporting to pdf, my header data is not getting exported, not sure why it's happening or missing some settings, please let me know how can i export rad grid data to pdf file with headers.
Princy
Top achievements
Rank 2
 answered on 17 May 2013
7 answers
337 views
Hi All,
I am trying to use the GridAttachmentColumn in the Grid, but don't want to have to use an SQLDataSource control.
I have objects and data-layers for the retrieving and control of my file objects, so I was wondering how I fill out this column with the bound information from my datalayer (it is a DataSet)?
At this point, it seems I need to abandon this new column type and use ItemTemplates instead with a nested RadUpload control.
Anyone had any experience with binding this column programmatically?
Thanks,
Steele.
SKande
Top achievements
Rank 2
 answered on 16 May 2013
4 answers
764 views
I have a RadGrid on an aspx page that does not seem to page properly.  Any attempt at pressing any of the paging buttons (Next page, Last Page, 2nd page, 3rd page, etc) causes a small dark flash on the screen but does nothing otherwise.  A second attempt at pressing a button will cause the page to refresh without the grid even being rendered.

Really appreciate the help on this.

<telerik:RadAjaxManager ID="RadAjaxMgr" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="rGrid_Employee_Roster">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="rGrid_Employee_Roster" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>

<telerik:RadGrid ID="rGrid_Employee_Roster" runat="server" CellSpacing="0"
GridLines="None" AllowPaging="true"
ShowGroupPanel="True" EnableLinqExpressions="False"
OnNeedDataSource="rGrid_Employee_Roster_NeedDataSource">
<GroupingSettings CaseSensitive="False" ShowUnGroupButton="True" />
<ClientSettings AllowDragToGroup="True"></ClientSettings>
<MasterTableView AutoGenerateColumns="False"
AllowFilteringByColumn="True" AllowSorting="True" AllowPaging="true" PageSize="18"
ShowGroupFooter="True"
NoMasterRecordsText="No employees for this Cost Center"
CommandItemDisplay="Top" EnableLinqGrouping="False">
<CommandItemSettings ExportToPdfText="Export to PDF" ShowAddNewRecordButton="False" ShowExportToExcelButton="True" ShowExportToPdfButton="True"></CommandItemSettings>
<RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn>
<ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn>
<Columns>
<telerik:GridBoundColumn DataField="EmployeeName"
FilterControlAltText="Filter EmployeeName column" HeaderText="Name"
ReadOnly="True" SortExpression="EmployeeName" UniqueName="EmployeeName">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Lmp_Num"
FilterControlAltText="Filter Lmp_Num column" HeaderText="Lmp Num"
SortExpression="Lmp_Num" UniqueName="Lmp_Num" AllowFiltering="False">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Position"
FilterControlAltText="Filter Position column" HeaderText="Position"
SortExpression="Position" UniqueName="Position">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Company"
FilterControlAltText="Filter Company column" HeaderText="Company"
SortExpression="Company" UniqueName="Company">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Work_Shift_Num" DataType="System.Int32"
FilterControlAltText="Filter Work_Shift_Num column" HeaderText="Shift Num"
SortExpression="Work_Shift_Num" UniqueName="Work_Shift_Num">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Type"
FilterControlAltText="Filter Type column" HeaderText="Type" ReadOnly="True"
SortExpression="Type" UniqueName="Type">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Cost_Ctr"
FilterControlAltText="Filter Cost_Ctr column" HeaderText="Cost Ctr"
UniqueName="Cost_Ctr">
</telerik:GridBoundColumn>
<telerik:GridCheckBoxColumn DataField="Full_Time" DataType="System.Boolean"
FilterControlAltText="Filter Full_Time column" HeaderText="Ful Time"
SortExpression="Full_Time" UniqueName="Full_Time" AllowFiltering="False">
</telerik:GridCheckBoxColumn>
<telerik:GridCheckBoxColumn DataField="Tdy_Volunteer" DataType="System.Boolean"
FilterControlAltText="Filter Tdy_Volunteer column" HeaderText="Tdy Vol"
SortExpression="Tdy_Volunteer" UniqueName="Tdy_Volunteer"
AllowFiltering="False">
</telerik:GridCheckBoxColumn>
</Columns>
<EditFormSettings><EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
</MasterTableView>
<FilterMenu EnableImageSprites="False"></FilterMenu>
</telerik:RadGrid>

Here is the code behind:

protected void rGrid_Employee_Roster_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{
    this.rGrid_Employee_Roster.DataSource = EmployeeRoster.GetDataByCostCtr(Convert.ToInt32(lbl_Cost_Center_Num.Text));
}

Tim
Top achievements
Rank 1
 answered on 16 May 2013
4 answers
120 views
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
Vivek
Top achievements
Rank 2
 answered on 16 May 2013
3 answers
180 views
I have had multiple complaints from clients about this.  The problem is that when you use mainly IE9 junk code will be added to the radeditor just by typing.  I have even reproduced this in the RadEditor Demo just click into the ul (which by the way takes multiple clicks) and then press the backspace key.  As soon as you do that you should see that the editor adds &nbsp;&nbsp; (viewed by switching to source) for apparently no reason it didn't exist before pressing the backspace key and only exits after pressing the backspace key.  In my editor I sometimes get 8 or 9 &nbsp; when pressing the backspace key.  Also I have seen (usually when there is an unclosed tag) it adding between 3-8 </div> or closing tags when only one is necessary. However that is on save and then looking at the code in the editor again.  I am also doing a Server.HtmlEncode(RadEditor1.Content) and storing that in the database.  Let me know if there is a fix for this other than forcing IE8 compatibility mode.
Misho
Telerik team
 answered on 16 May 2013
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?