Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
380 views
Hi My RadGrids column width's are not being constrained.
It doesn't matter if i set the header-item-width or the whole radgrid's with or item-width or put div tags around it and constrain the size of the div, - the RadGrid will grow as much as needed to fit all of it's data it will grow to way off the screen, it will not wrap the column's data either.

I've attached a screenshot to illustrate the issue.

And here is the aspx code--- do you see any reason why the column is going off the page like crazy?

    <div style="width:1000px">
    <telerik:RadGrid ID="rgLCSLog" runat="server" AutoGenerateColumns="False" 
        CellSpacing="0" GridLines="None" AutoGenerateDeleteColumn="True" 
        onneeddatasource="rgLCSLog_NeedDataSource" AutoGenerateEditColumn="True" 
        oninsertcommand="rgLCSLog_InsertCommand" 
        ondeletecommand="rgLCSLog_DeleteCommand" 
        onupdatecommand="rgLCSLog_UpdateCommand" Width="1000px">
             
            <MasterTableView CommandItemDisplay="Top" EditMode="EditForms" DataKeyNames="id" >
                <CommandItemSettings AddNewRecordText="Add LCS Log" 
                    />
                
                <Columns>
                    <telerik:GridBoundColumn DataField="time_off" 
                        FilterControlAltText="Filter column column" HeaderText="Time Off" 
                        UniqueName="column">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="time_on" 
                        FilterControlAltText="Filter column1 column" HeaderText="Time On" 
                        UniqueName="column1" DataType="System.DateTime">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="equipment_area" 
                        FilterControlAltText="Filter column2 column" HeaderText="Equip/Area" 
                        UniqueName="column2">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="affected_customers" 
                        FilterControlAltText="Filter column3 column" HeaderText="Affected Customers" 
                        UniqueName="column3" HeaderStyle-Width="100px">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Account_Representative" 
                        FilterControlAltText="Filter column4 column" HeaderText="Acct Rep" 
                        UniqueName="column4">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="last_updated" 
                        FilterControlAltText="Filter column5 column" HeaderText="Last Updated" 
                        UniqueName="column5">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="last_updated_by" 
                        FilterControlAltText="Filter column6 column" HeaderText="Last Updated By" 
                        UniqueName="column6">
                    </telerik:GridBoundColumn>
                </Columns>
                <EditFormSettings UserControlName="~/ReportControls/AddEditGridControls/AddEditLCSLog.ascx" EditFormType="WebUserControl">
                    <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                    </EditColumn>
                </EditFormSettings>
            </MasterTableView>                
    </telerik:RadGrid>
  
</div>
Shinu
Top achievements
Rank 2
 answered on 30 Mar 2012
1 answer
101 views
Greetings,

I have an issue with the RadToolTip in Google Chrome 17.0.963.83 m (it works fine in IE and Firefox), it's displaying far from the target control. Check attached image.

I'm using Rad Controls for ASP.NET 2011.1.315.35

Here is the declaration of the ToolTip:
<div id="P2apptext1" class="apptext" >               
                    <p>Para ser usuario del servicio Enfirme se deben cumplir las siguientes condiciones:</p>
                    <ol>
                        <li>Tener cuenta bancaria</li>
                        <li>Ser una persona mayor de edad y plenamente capaz <a id="RadToolTipP21" href="#"><img src="/Formulario/icons/help.png" width="20" height="20" alt="Ayuda" border="0" style="vertical-align: middle;"/></a> </li>
                        <li>Residir en Colombia</li>
                        <li>Si es empleado público, no debe administrar recursos públicos</li>
                        <li>Disponer de una cuenta de correo, donde recibirá toda la información asociada al servicio</li>
                        <li>El propósito de la relación comercial será para la compra y venta de acciones, y la posibilidad de invertir en el Fondo Acciones BYR y Fondo Liquidez BYR</li>
                        <telerik:RadToolTip
                            ID="RadToolTipP21a"
                            runat="server"
                            Height="100px"
                            Width="250px"
                            AutoCloseDelay="30000"
                            IsClientID="true"
                            TargetControlID="RadToolTipP21"
                            Position="TopCenter"
                            RelativeTo="Element"
                            EnableShadow="true"
                            Text="La Capacidad jurídica es la aptitud para ser titular de derechos y obligaciones; de reclamar los primeros y contraer los segundos en forma personal y comparecer a juicio por propio derecho." />
                    </ol>
                    <p>En caso de requerir otros productos como Renta Fija, Derivados, Divisas, Simultáneas, etc. por favor <a id="linkP2" href="../utilidades/contactenos.aspx" >contáctenos</a>.</p>
                </div>

Thanks in advance.
Marin Bratanov
Telerik team
 answered on 30 Mar 2012
1 answer
95 views
GridFooterItem:

How can I change the culture and format of Grid footer item?
Iana Tsolova
Telerik team
 answered on 30 Mar 2012
1 answer
110 views
Hello,

We're developing web parts in SharePoint using RadControls.  We're allowing our customers to select which skin they'd like to apply from the list of available embedded skins, and just recently we encountered a problem with IE and it's 31-stylesheet limit.  If we have more than 2 or 3 components on the page, the styling is not properly applied.  So we're tyring to make use of the RadStyleSheetManager to combine the skin styles to reduce the number of files on the page.

This is what I have so far, in PageLoad, the following code is called:

CWGrid.Skin = skinName;
CWGrid.EnableEmbeddedBaseStylesheet = false;
CWGrid.EnableEmbeddedSkins = false;
RadAjaxLoadingPanel1.Skin = skinName;
RadAjaxLoadingPanel1.EnableEmbeddedBaseStylesheet = false;
RadAjaxLoadingPanel1.EnableEmbeddedSkins = false;
//context menu
cm.Skin = skinName;
cm.EnableEmbeddedBaseStylesheet = false;
cm.EnableEmbeddedSkins = false;
gcm.Skin = skinName;
gcm.EnableEmbeddedBaseStylesheet = false;
gcm.EnableEmbeddedSkins = false;
//radWindow
cwPrintWindow.Skin = skinName;
cwPrintWindow.EnableEmbeddedBaseStylesheet = false;
cwPrintWindow.EnableEmbeddedSkins = false;
 
string telerikAssembly = typeof(RadGrid).Assembly.FullName;
//string telerikAssembly = "";
string telerikSkinsAssembly = typeof(Telerik.Web.UI.Skins.RadGrid).Assembly.FullName;
//string telerikSkinsAssembly = "";
string[] components = { "ToolBar", "Input", "Grid", "Menu", "ComboBox", "Calendar", "Menu", "Window" };
if (RadStyleSheetManager.GetCurrent(wp.Page) != null) cssManager = RadStyleSheetManager.GetCurrent(wp.Page);
 
for (int i = 0; i < components.Length; i++)
{
    cssManager.StyleSheets.Add(new StyleSheetReference("Telerik.Web.UI.Skins." + skinName + "." + components[i] + "." + skinName + ".css", telerikSkinsAssembly));
    cssManager.StyleSheets.Add(new StyleSheetReference("Telerik.Web.UI.Skins.Default." + components[i] + ".Default.css", telerikAssembly));
    cssManager.StyleSheets.Add(new StyleSheetReference("Telerik.Web.UI.Skins." + components[i] + ".css", telerikAssembly));
}


But for some reason the combined css file is rendered empty, and nothing is styled.  What am I missing?
Tsvetina
Telerik team
 answered on 30 Mar 2012
2 answers
107 views
when using open access entities with wcf endpoints service how do I pass the value from the selected row to the object datasource for load on demand of the detail table, it is not the entityid it is a secondary id I am trying to pass, the one supporting the parent/child relationship of the master/detail tables.  I think I have to use the search with searchparameters but I do not know the syntax to pass in the search parameters.  Acutal Code snips are appreciated.  
Iana Tsolova
Telerik team
 answered on 30 Mar 2012
2 answers
96 views
Hello,
In telerik calendar control it only showing 30 days in December 2099. Is there is any reason for this? :)
Milena
Telerik team
 answered on 30 Mar 2012
2 answers
59 views
Hello,

I'm fighting an extremely frustrating error, and I'm probably just missing something that's very simple.  All of my x axis labels are running into the plot area.  What property can I manipulate to make this not happen?  I attached a screenshot of the issue that I'm having.

Thanks,
Aaron
Evgenia
Telerik team
 answered on 30 Mar 2012
1 answer
75 views
Hi everybody,

there is still an annoying issue with the SAK CTP from February which I hoped that it's fixed in this version.

For testing purposes I created a new sitecollection of type publishing portal in english language. There I activated the web-scoped feature "RadEditor to edit HTML fields" to use the RadEditor instead of the standard editor. Everything working fine excepting the "Insert Web Part"-Function.

If for e.g. a MediaWebPart is added and the page is saved, the WebPart appears twice, one above and the other below but only its border. I'll attach a screenshot for more clearness.

Also I can't do any settings for the media webpart like setting the media-file to play.

Do you have any information about how to quickfix this or an information, when a working version of this feature will be released?

Thank you very much and greetings from Nuremberg
Ricky
Rumen
Telerik team
 answered on 30 Mar 2012
1 answer
74 views

Hi

We're trying to implement a 3 level hierarchy with RadGrid, preferably client-side data bound. We've had a couple of questions on this already (http://www.telerik.com/community/forums/aspnet-ajax/grid/hierarchial-view-and-client-side-binding.aspx

http://www.telerik.com/community/forums/aspnet-ajax/grid/3-nested-radgrids---performance-issue.aspx )

and currently have an understanding on how it works in Telerik but not quite sure how we can handle this.

In case we create 3 hierarchy levels (say A, B, C) intended to be databound on client side so that they have HiearachyMode="Client" we face performance issue because as far as we understand all RadGrid objects are created initially on all levels. And number of objects on each level depends on the PageSize parameter on the upper level (so that for each row in the page a nested Grid object is created). So that if we have

PageSize = 10 for level A
PageSize=100 for level B

this leads to:

1 level A grid (with maximum 10 expandable rows)

10 level B grids (one for each row in level A grid. Each of these grids can have maximum of 100 expandable rows).

1000 level C grids (100 grids - one for each row of 10 level B grids)


So the performance degrades exponentially (as mentioned in answer to my question here: http://www.telerik.com/community/forums/aspnet-ajax/grid/3-nested-radgrids---performance-issue.aspx ), which is a major problem, since we would actually like up to 1000 records to be present on level B, not 100. The problem is, that in case grid objects aren't created - we can apply more records on level B, but they won't get expandable.

The question is - what can we do in order to avoid this problem? Is this somehow possible to create client-side nested grid objects not initially, but only in the moment of row expansion (but keeping the ability to bind data to this grid on client-side)? We're trying to mix level A HierarchyMode="Client" with Grid put in NestedView (as described here: http://blogs.telerik.com/vladimirenchev/posts/08-09-09/how-to-telerik-radgrid-master-detail-client-side-data-binding-using-linq-to-sql-and-webservice.aspx) and use a DetailTable grid with HierarchyMode="ServerOnDemand" for B and C grids, but meet troubles implementing this yet. Maybe better approach is possible?

Tsvetoslav
Telerik team
 answered on 30 Mar 2012
2 answers
946 views
Hi Team,
I want to add rows dynamically in radgrid.
The number and types of columns in my grid are fixed.
All columns are template columns.

This is what I have :
<asp:TextBox ID="txtNoOfAssets" runat="server" />
<asp:Button ID="btnAddAssets" runat="server" Text="Add Assets" OnClick="btnAddAssets_Click" />
 
<telerik:RadGrid ID="rgAUC" runat="server">
                        <MasterTableView CommandItemDisplay="None">
                            <Columns>
                                <telerik:GridTemplateColumn HeaderText="Asset Name" UniqueName="AssetName">
                                    <ItemTemplate>
                                        <asp:TextBox ID="txtAssetName" runat="server" />
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridTemplateColumn HeaderText="Asset No" UniqueName="AssetNo">
                                    <ItemTemplate>
                                        <asp:TextBox ID="txtAssetNo" runat="server" />
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridTemplateColumn HeaderText="Description" UniqueName="AssetDescription">
                                    <ItemTemplate>
                                        <asp:TextBox ID="txtAssetDescription" runat="server" />
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridTemplateColumn HeaderText="Class" UniqueName="AssetClass">
                                    <ItemTemplate>
                                        <telerik:RadComboBox ID="rcbAssetClass" runat="server"></telerik:RadComboBox>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridTemplateColumn HeaderText="Useful Life" UniqueName="AssetUsefulLife">
                                    <ItemTemplate>
                                        <asp:TextBox ID="txtAssetUsefulLife" runat="server" />
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridTemplateColumn HeaderText="Original Value" UniqueName="AssetOriginalValue">
                                    <ItemTemplate>
                                        <asp:TextBox ID="txtAssetOriginalValue" runat="server" />
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                            </Columns>
                        </MasterTableView>
                    </telerik:RadGrid>


Now, on click of a button ' btnAddAssets  ', i want to add those many rows which user has put in txtNoOfAsset.
Number and types of my columns are fixed.

Any help appreciated,
Thanks,
Lok..
Lokesh
Top achievements
Rank 1
 answered on 30 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?