Telerik Forums
UI for ASP.NET AJAX Forum
68 answers
650 views
Hi, I use client-side binding and export to PDF works strange:

below normal data-filled rows it shows a row with "No data" text.

Where is that from? Could it have something to do with custom paging?

Also, on page load, before the data is received from webservice, the grid shows tons of empty rows.
I've seen somewhere on forum I should put [e.Item.Display = 'none'] to fix this. Is there a better approach? As i understand, this just hides these rows vis display: none, but markup anyway is huge!

And more questions about PDF customization: why
this.MasterTableView.ItemStyle.BorderStyle
assigning in PDF export event does not work? I want to remove this ugly double border around some cells in PDF and remain single border only around data cells.
Is there a way to acquire somehow CSS class data in ItemCreated event and 'transform' them into inline style to preserve grid outlook?
Kostadin
Telerik team
 answered on 27 Nov 2012
1 answer
62 views
Hi,
You can change the color of the skin of radwindow maintaining the style?
example, the style meter has the blue menu bar, you can change the color, as well as for other objects telerik such as the loading panel?
Danail Vasilev
Telerik team
 answered on 27 Nov 2012
6 answers
202 views
Hi Guys

I saw the below link

http://demos.telerik.com/aspnet-ajax/treelist/examples/selecting/serversideselection/defaultcs.aspx

I did the same
My question?
When i select in checkbox it is reloading (I did not use ajax ) but even in the above link they used Ajaxmanager still loading image comes

Can we make not loadable when we choose check box?
Because client gets annoyed ......


Karthik.K
Daniel
Telerik team
 answered on 27 Nov 2012
1 answer
306 views
Hello
     I have to put the radgrid in insert mode on external button click. How can I accomplish this. Can anybody help.

thanks n regards
Savyo
Princy
Top achievements
Rank 2
 answered on 27 Nov 2012
1 answer
87 views
Hai
 Can somebody help me hide the pager combobox and pager size text? thanks in advance..
Allen
Shinu
Top achievements
Rank 2
 answered on 27 Nov 2012
2 answers
122 views
By expanding one by one of my main grid subgrillas I have no problems, but when I open and close and all I have left some of the grid lines that are not well, stay on top of the data

Expand all
Expand and Collapse
Expand and Collapse 2

<asp:Panel id="pnlVoyage" runat="server" width="1400">
<radG:RadGrid ID="RadGrid1" runat="server" PageSize="6"  Width="1400px" AllowMultiRowSelection="True" 
AllowPaging="True" AllowSorting="False"  AutoGenerateColumns="False" Skin="BDS" Visible="false">
 
<ClientSettings AllowDragToGroup="false" AllowGroupExpandCollapse="true"  AllowExpandCollapse = "true">
<Selecting AllowRowSelect="false" ></Selecting>
</ClientSettings>
<MasterTableView Width="100%" runat="server" AllowPaging="false" DataKeyNames="call_id" HierarchyLoadMode="Client">
<DetailTables>
<radG:GridTableView runat="server" DataKeyNames="call_id" Name="Table" Width="100%" HierarchyLoadMode="Client"
AllowAutomaticUpdates="true" AllowPaging="false" Font-Size="11px">
<Columns>
    <radG:GridBoundColumn ItemStyle-Width="123" HeaderStyle-Width="123" HeaderStyle-Height="21" ReadOnly="true"  HeaderText="" HeaderButtonType="TextButton" DataField="tipo"></radG:GridBoundColumn>
    <radG:GridBoundColumn ItemStyle-Width="190" HeaderStyle-Width="190"  ReadOnly="true"  HeaderText="Date" HeaderButtonType="TextButton" DataField="date"></radG:GridBoundColumn>
    <radG:GridBoundColumn ItemStyle-Width="100" HeaderStyle-Width="100" ReadOnly="true"  HeaderText="TEU Avail" HeaderButtonType="TextButton" DataField="TEUSTOTAL"></radG:GridBoundColumn>
    <radG:GridBoundColumn ItemStyle-Width="100" HeaderStyle-Width="100"  ReadOnly="true"  HeaderText="Weight Avail" HeaderButtonType="TextButton" DataField="WEIGHTTOTAL"></radG:GridBoundColumn>
    <radG:GridBoundColumn ItemStyle-Width="100" HeaderStyle-Width="100"  ReadOnly="true"  HeaderText="Plugs Avail" HeaderButtonType="TextButton" DataField="PLUGSTOTAL"></radG:GridBoundColumn>
</Columns>
</radG:GridTableView>
</DetailTables>
 
<Columns>
<radG:GridBoundColumn ItemStyle-Width="123" HeaderStyle-Width="123" ReadOnly="true"  HeaderText="Port" HeaderButtonType="TextButton" DataField="port_id"></radG:GridBoundColumn>
<radG:GridBoundColumn ItemStyle-Width="190" HeaderStyle-Width="190" ReadOnly="true"  HeaderText="Date" HeaderButtonType="TextButton" DataField="etd"></radG:GridBoundColumn>
 
<radG:GridTemplateColumn ItemStyle-Width="100" HeaderStyle-Width="100" HeaderText="TEU Avail" HeaderButtonType="TextButton" DataField="TEUSTOTAL">
<ItemTemplate>
    <%# IIf(DataBinder.Eval(Container.DataItem, "TEUSTOTAL") < 0, "<font color='red'>", "") %>
    <%# IIf(DataBinder.Eval(Container.DataItem, "TEUSTOTAL") = 0, "-", DataBinder.Eval(Container.DataItem, "TEUSTOTAL")) %>
    <%# IIf(DataBinder.Eval(Container.DataItem, "TEUSTOTAL") < 0, "</font>", "") %>
</ItemTemplate>
</radG:GridTemplateColumn>
<radG:GridTemplateColumn ItemStyle-Width="100" HeaderStyle-Width="100" HeaderText="Weight Avail" HeaderButtonType="TextButton" DataField="WEIGHTTOTAL">
<ItemTemplate>
    <%# IIf(DataBinder.Eval(Container.DataItem, "WEIGHTTOTAL") < 0, "<font color='red'>", "") %>
    <%# IIf(DataBinder.Eval(Container.DataItem, "WEIGHTTOTAL") = 0, "-", DataBinder.Eval(Container.DataItem, "WEIGHTTOTAL")) %>
    <%# IIf(DataBinder.Eval(Container.DataItem, "WEIGHTTOTAL") < 0, "</font>", "") %>
</ItemTemplate>
</radG:GridTemplateColumn>
<radG:GridTemplateColumn ItemStyle-Width="100" HeaderStyle-Width="100" HeaderText="Plugs Avail" HeaderButtonType="TextButton" DataField="PLUGSTOTAL">
<ItemTemplate>
    <%# IIf(DataBinder.Eval(Container.DataItem, "PLUGSTOTAL") < 0, "<font color='red'>", "") %>
    <%# IIf(DataBinder.Eval(Container.DataItem, "PLUGSTOTAL") = 0, "-", DataBinder.Eval(Container.DataItem, "PLUGSTOTAL")) %>
    <%# IIf(DataBinder.Eval(Container.DataItem, "PLUGSTOTAL") < 0, "</font>", "") %>
</ItemTemplate>
</radG:GridTemplateColumn>
</Columns>                   
</MasterTableView>
</radG:RadGrid>
</asp:Panel>
Eyup
Telerik team
 answered on 27 Nov 2012
7 answers
105 views
I wanted to implement a third option for when you open want to open a recurring appointment in a series.

Normally the options you get is

Edit the whole series
or
Edit just this one appointment.

What i'm looking for is a third option that goes something like

Edit the series starting from here

Which would bascially split the series up into two, leaving everything behind the selected appointment unchanged, but changes ever appointment thereafter. So that if your standing weekly wednsday appointment suddenly gets moved to a thursday after a few months, u can simply just edit the series u already have by this option, instead of cutting one out to start a new equal.



Thanks
Plamen
Telerik team
 answered on 27 Nov 2012
1 answer
63 views
Hi Guys,
I am using Telrik ASP.NET AJAX controls. I am facing some problem while using RadGrid and RadCombo control. My scenario is given below:


I am using RadGrid on my page and using .ascx user control in RadGrid "EditFormSettings" property to edit my record. In this user control I've a RadCombo and also some textboxes. When i try to add new line in grid a new row with editable form is open. In RadCombo i type something to select, if it doesn't exist in our radcombo i open a RadWindow in which i add new value after adding this new item then i close my RadWindow and in close event radwindow i rebind my grid of page, the newly added item shows in the dropdown, but it is not marked a selected in RadCombo. Can anybody help me that how i can mark it selected. Its very urgent. Waiting for quick reply. Thanks in advance.

Regards,
Zeeshan
Andrey
Telerik team
 answered on 27 Nov 2012
3 answers
197 views
Hi,

I have downloaded the "RadControls for ASP.NET AJAX Q3 2012" Trail version for evaluating the component. While installing I choose to install for Visual Studio 2010 and Live Demos.

I observed the following points, while trying to evaluate the component 

1. When I created a web site in .net framework 4.0 and all telerik controls were available in the toolbox and a grid control is added in my page.

2. When I created a web site in .net framework 2.0 then there was no telerik control in the toolbox pane. So I manually added a reference of Telerik.web.ul.dll (from ..\Live Demos\Bin) in my website in .net framework 2.0, and paste the component generated html (as available in the web site in .net framework 4.0), and in design view of Visual Studio it showed "Error creating control - RadGrid1", though I can build the web site without any build error.

So from the above observations, is it so that the above control is not meant to support .Net Framework 2.0 at all, please confirm.
Please note in both the cases I am using Visual Studio 2000 premium running under Windows7 64bit Enterprise edition.

Actually I am looking for a grid component like RadGrid for ASP.NET AJAX, which supports .Net Framework 2.0 and works in multiple browsers such as IE9, FF15+. Could you help me evaluate any version of your control which fits my requirement. 

Thanks in advance.

Regards
Sanjib
Andrey
Telerik team
 answered on 27 Nov 2012
5 answers
446 views
Hello,

I have a grid with columns grouping, being created dynamically:

public static GridColumn AddColumn(this RadGrid grid, string column, int width, string headerText = null, string sortExpr = null, string colGroupName = null)
{
if (string.IsNullOrEmpty(headerText))
headerText = column;


var boundColumn = new GridBoundColumn();
grid.MasterTableView.Columns.Add(boundColumn);
boundColumn.DataField = column;
boundColumn.HeaderText = headerText;
boundColumn.UniqueName = column;
if (colGroupName != null)
{
boundColumn.ColumnGroupName = colGroupName;
boundColumn.AllowSorting = false;
}
else
{
if (string.IsNullOrEmpty(sortExpr))
sortExpr = column;
boundColumn.AllowSorting = false;
boundColumn.SortExpression = sortExpr;
}


return boundColumn;
}


public static GridColumnGroup AddColumnGroup(this RadGrid grid, string name, int width, string headerText, string parent = null)
{
var colGroup = new GridColumnGroup();
grid.MasterTableView.ColumnGroups.Add(colGroup);
colGroup.Name = name;
colGroup.HeaderText = headerText;
if (parent != null)
colGroup.ParentGroupName = parent;
return colGroup;
}
and in ascx.cs:
foreach (var indicator in ListIndicatori)
{
if (....)
{
List.AddColumn("Field_" + indicator.Id, 100, indicator.Denumire + "(" + indicator.UnitateMasura + ")");
DataTableSource.Columns.Add("Field_" + indicator.Id);
}
else
{
var groupName = "Group" + indicator.Id;
List.AddColumnGroup(groupName, 120, indicator.Denumire + "(" + indicator.UnitateMasura + ")");
List.AddColumn("Field_" + indicator.Id + "_LD", 40, "LD", colGroupName: groupName);
List.AddColumn("Field_" + indicator.Id + "_LQ", 40, "LQ", colGroupName: groupName);
List.AddColumn("Field_" + indicator.Id + "_VF", 40, "VF", colGroupName: groupName);


DataTableSource.Columns.Add("Field_" + indicator.Id + "_LD");
DataTableSource.Columns.Add("Field_" + indicator.Id + "_LQ");
DataTableSource.Columns.Add("Field_" + indicator.Id + "_VF");
}
}

where List is RadGrid declared in ascx file
I receive the error:
Invalid column group configuration! Column "Field_10_LQ" cannot be after column "Field_5"
The columns are not always the same (i.e Column "Field_53_LQ" cannot be after column "Field_7") and does not appears all the time, but I was not able to discover why and when (in which cases) it appears.
Any help will be appreciated!

Thanks,
Antonio
Marin
Telerik team
 answered on 27 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?