Telerik Forums
UI for ASP.NET AJAX Forum
11 answers
370 views
Hello Telerik Team.

I need to define a way to force columns width.
I i'm trying to force force the width this way

  Unit maxWidth = new Unit(100 / RadGrid1.Columns.Count, UnitType.Percentage);
                        foreach (GridBoundColumn var in RadGrid1.Columns)
                            var.ItemStyle.Width = maxWidth;

This way columns should never be larger than grid but this is not Happening?

i first create and add columns to grid... in debug it seams to be just fine...
But when RadGrid is rendered columns are larger than RadGrid...

When should i change columns width? in Item_Created?
Jeganath
Top achievements
Rank 1
 answered on 29 Dec 2013
2 answers
54 views

I have a client who asked a question about how many lines of code in several controls that are used in their application.


Knowing full well that LOC (lines of code) can be completely misleading, is there any kind of quotable metric for RadGrid and RadPanelBer?



I have suggested that the answer is "oodles of code" but they think I'm making that up <g>

Tomica
Top achievements
Rank 2
 answered on 28 Dec 2013
11 answers
142 views
When I drag-drop the columns of a grid in one of the live demos, an "animation" is shown indicating the drop-target as well as the header in a semi transparent mode (circled red in the attached screendump).

My problem is that when I implement a RadGrid under a DNN 6.1.3 module (running on the same IIS and client as the live demos), the animation doesn't show. Everything else works like a charm - including the actual re-ordering of columns as well as the grouping. Just no animation.

Please help. This is driving me nuts.

Below is the ascx-code:
<%@ Control Language="C#" AutoEventWireup="false" CodeFile="MyDataGrid.ascx.cs" Inherits="My.DNN.DesktopModules.DataGrid.DataGrid" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>

<div class="dnnForm MyDataGridModule dnnClear" id="MyDataGridModule">

    <telerik:RadAjaxManager ID="RadAjaxManager" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid" LoadingPanelID="RadAjaxLoadingPanel" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>


    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel" runat="server" Skin="Office2010Silver">
    </telerik:RadAjaxLoadingPanel>
    
    <telerik:RadGrid ID="RadGrid" runat="server" 
        AutoGenerateColumns="true"
        OnNeedDataSource="RadGrid_NeedDataSource"
        
        AllowSorting="true"
        AllowMultiRowSelection="true"
        AllowFilteringByColumn="true"


        ShowGroupPanel="true"
        
        Skin="Office2010Silver"
        EnableEmbeddedSkins="true"
        >


        <ClientSettings AllowDragToGroup="true" 
                        AllowColumnsReorder="true" 
                        ReorderColumnsOnClient="true"
                        ColumnsReorderMethod="Reorder"
                        EnableRowHoverStyle="true"
                        Selecting-AllowRowSelect="true"
                        Resizing-AllowColumnResize="true">                     
            <Selecting  AllowRowSelect="true"
                        UseClientSelectColumnOnly="true" />
            <Animation  AllowColumnReorderAnimation="true" 
                        AllowColumnRevertAnimation="true"/>
            
            <Scrolling  AllowScroll="True"
                        UseStaticHeaders="True"
                        SaveScrollPosition="True"/>
        </ClientSettings>


        <GroupingSettings ShowUnGroupButton="true" />
    </telerik:RadGrid>
</div>
Ben
Top achievements
Rank 1
 answered on 27 Dec 2013
2 answers
104 views
I have the following problem:
I am developing in Visual Studio 2010 (ASP.Net and Visual Basic) and I use Firebird 2.5, the Firebird Client 3.1 dll. Using RadGrid and SQLDataSource controls, I have no trouble using Firebird, I can do inserts, updates and deletes, but I need to refer to the Firebird library, and when running the application generates RadScripManager error. The error is as follows:
Could not load type 'System.Runtime.CompilerServices.ExtensionAttribute' from assembly 'mscorlib, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089'.
But remove the reference and project works again
Oscar
Top achievements
Rank 1
 answered on 27 Dec 2013
4 answers
78 views
Hi!

I am trying to reload a radcombobox after a radwindow has closed using the onclientclose event.

I have pieced together this code from google searches. It seems to want to work but doesn't quite hit the mark.

My javascript:

           <script type="text/javascript">
 function UseRadWindow() {
                var oWnd = $find("<%= RadWindow1.ClientID %>");
                oWnd.show();
                oWnd.minimize();
                oWnd.maximize();
                oWnd.restore();
                oWnd.OnclientClose = "OCC";
                 
            }
            function OCC() {
                $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest();
}

My relevant aspx:

            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" onajaxrequest="RadAjaxManager1_AjaxRequest">
      <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
            <UpdatedControls>
                   <telerik:AjaxUpdatedControl ControlID="rcbCustomer" />
            </UpdatedControls>
            </telerik:AjaxSetting>
      </AjaxSettings>
</telerik:RadAjaxManager>
  
 
         <telerik:RadWindowManager ID="RadWindowManager1" runat="server" style="z-index: 7001">
                <Windows>
                    <telerik:RadWindow ID="RadWindow1" runat="server" NavigateUrl="addcust.aspx" Height="600px" Width="800px" Animation="Slide" OnClientClose="OCC">
                    </telerik:RadWindow>
                </Windows>
            </telerik:RadWindowManager>
 
 
 <telerik:RadComboBox ID="rcbCustomer" Runat="server" DataSourceID="SqlDataSource1" DataTextField="Name" DataValueField="ID" Skin="Default" EmptyMessage="Select Customer..." Filter="Contains" BorderColor="LightSteelBlue" BorderStyle="Dashed" BorderWidth="2px" Width="150px">
        <FooterTemplate>
           <telerik:RadButton ID="RadButton3" runat="server" OnClientClicked="UseRadWindow" Text="Add New..." AutoPostBack="False">
               </telerik:RadButton>
        </FooterTemplate>
 </telerik:RadComboBox>


And finally my only bit of cs:

protected void RadAjaxManager1_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e)
{
    //Bind the RadComboBod
    rcbCustomer.DataBind();
}

EDIT: I just enabled ENABLE LOADONDEMAND for the combobox but it did nothing.

When I put a breakpoint on my ajaxrequest in the code behind, it DOES fire and does the DataBind() without issue, so I know that all the javascript is working. However the control does not rebind unless I refresh the page, which I do not want to do.
Garrett
Top achievements
Rank 1
 answered on 27 Dec 2013
5 answers
119 views
Hi,

The code on that address

http://www.telerik.com/support/kb/aspnet-ajax/editor/different-set-of-tools-when-switching-to-full-screen-mode.aspx

doesn't work for ie11 anymore. I used that code almost in every page on my project and when we test it on ie11 we cannot use neither any functionality of editor, also we cannot type anything on design mode when we open the page. Evetything works well with chrome and firefox but not with ie anymore :(

what should we change in that code, in order to make it work in ie also?

Thanks...

EDIT: I just tried changing user agent string in ie11's emulation settings to chrome and firefox. All the errors are gone. When I close developer tools (f12) or change user agent string to ie11 again, editor is no longer accepting scripts, buttons not working and can't type anything in design mode.

The problem is urgent! I hope someone can take a look at that one and provide a solution...
İlter
Top achievements
Rank 1
 answered on 27 Dec 2013
2 answers
78 views
Hi,

I am using the client side approach for load on demand. When my page first loads its shows the Root node A and when i click on node A it displays all the child nodes b,c,d and E which in turn have child nodes.

What i want to do is when the page is loaded for the first time, the parent node A should be displayed in expanded mode., basically i want to the achieve the Client click event  programatically. How can i achieve this.


Thank you
-Sekhar
Sekhar
Top achievements
Rank 1
 answered on 27 Dec 2013
1 answer
162 views
I'm using Telerik ASP.NET OrgChart to display a simple chart organization, I've a rather small problem: my chart doesn't show any thing for expanding/collapsing the chart, so my chart (which can be large) is displayed with all nodes and it is not I want, I want to be able to hide/show my nodes so that user can navigate chart easily, I've exactly used the code in this sample:
http://www.telerik.com/help/aspnet-ajax/orgchart-expand-collapse.html
but my chart doesn't show hide/show icons, what is going wrong? Do you I miss anything? it is my code:

<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<telerik:RadOrgChart ID="RadOrgChart1" runat="server" EnableCollapsing="true">
    <Nodes>
        <telerik:OrgChartNode>
            <GroupItems>
                <telerik:OrgChartGroupItem Text="Item1">
                </telerik:OrgChartGroupItem>
                <telerik:OrgChartGroupItem Text="Item1">
                </telerik:OrgChartGroupItem>
            </GroupItems>
            <Nodes>
                <telerik:OrgChartNode>
                    <GroupItems>
                        <telerik:OrgChartGroupItem Text="Item1">
                        </telerik:OrgChartGroupItem>
                        <telerik:OrgChartGroupItem Text="Item1">
                        </telerik:OrgChartGroupItem>
                    </GroupItems>
                </telerik:OrgChartNode>
                <telerik:OrgChartNode Collapsed="true">
                    <GroupItems>
                        <telerik:OrgChartGroupItem Text="item1">
                        </telerik:OrgChartGroupItem>
                    </GroupItems>
                    <Nodes>
                        <telerik:OrgChartNode>
                            <GroupItems>
                                <telerik:OrgChartGroupItem Text="Item1">
                                </telerik:OrgChartGroupItem>
                                <telerik:OrgChartGroupItem Text="Item1">
                                </telerik:OrgChartGroupItem>
                            </GroupItems>
                        </telerik:OrgChartNode>
                    </Nodes>
                </telerik:OrgChartNode>
            </Nodes>
        </telerik:OrgChartNode>
    </Nodes>
</telerik:RadOrgChart>


I use Q3 2011, also when I want to run my code, I should remove Collapsed="true", I think it is not supported, and I think it is my problem, how can I solve this problem? how can I have an org chart with collapsable/expandable nodes? I use Q3 2011, is it possible at all? I've included only Telerik.Web.UI dll, do I need anything else? any css? Js?

thanks and merry Christmas!!!
Peter Filipov
Telerik team
 answered on 27 Dec 2013
4 answers
206 views
Hi

We noted an issue with our "dashboard" website (a portal for our clients to query data and view charts etc.). The issue was that the RadControl styling seemed not to work and the controls were not responding to user input in the newly released IE11 only. 

The Telerik ASP.NET AJAX controls were upgraded from the Q3-2012 version to the Q3-2013 version the problem seems to have been fixed in dev but when published to the test server (identical to the live environment) the issue still exists with IE11 returning a JS error:

in Telerik.Web.UI.WebResource.axd:
line 6418 - window[Sys.WebForms.PageRequestManager.getInstance()._uniqueIDToClientID(this._uniqueID)]=this;
Unable to get property 'PageRequestManager' of undefined or null reference 

NB: I did not originally discover these faults and have been drafted in to perform the Telerik component upgrade only but now I must see the issue through to the end.

I believe that this is either an issue with the Telerik Component or .NET Framework or IE11.

Your help is appreciated


Ivan Zhekov
Telerik team
 answered on 27 Dec 2013
11 answers
500 views
We have a client who complaining that if you copy word document and paste to the design view and select Yes I would like to clean this from WORD. the html output different in different in different browsers


Here is my Test document


Here is the output in Google Chrome

<p><span style="text-decoration: underline; color: #0070c0;">Other City Services</span> – Link to event app pdf</p>
<p>Other services the City offers for events include, trash cans, street sweeping, electrical hook up, street closures, security and much more! These items may be requested through the Special Events Application.</p>
<p><span style="text-decoration: underline; color: #0070c0;">Mobile Food Vendor Program</span> (photo) – link to mobile vendor app pdf<strong><span style="text-decoration: underline;"></span></strong></p>
<p>Do you have a Food Truck? A Food Trailer? A Hot Dog Cart? This program is for you! The City offers locations downtown and throughout our City parks where you can park your truck, cart or trailer and sell your wonderful cuisine! Complete the above application and provide all requested documentation and we can get you permitted today!</p>


Here is the output in IE 9

<p style="margin: 0in 0in 10pt;"><span style="font-family: Calibri;"><span style="color: #0070c0; text-decoration: underline;">Other City Services</span> – Link to event app pdf</span></p>
<p style="margin: 0in 0in 10pt;"><span style="font-family: Calibri;">Other services the City offers for events include, trash cans, street sweeping, electrical hook up, street closures, security and much more! These items may be requested through the Special Events Application.</span></p>
<p style="margin: 0in 0in 10pt;"><span style="font-family: Calibri;"><span style="color: #0070c0; text-decoration: underline;">Mobile Food Vendor Program</span> (photo) – link to mobile vendor app pdf<b><span style="text-decoration: underline;"></span></b></span></p>
<p style="margin: 0in 0in 10pt;"><span style="font-family: Calibri;">Do you have a Food Truck? A Food Trailer? A Hot Dog Cart? This program is for you! The City offers locations downtown and throughout our City parks where you can park your truck, cart or trailer and sell your wonderful cuisine! Complete the above application and provide all requested documentation and we can get you permitted today!</span></p>




Ianko
Telerik team
 answered on 27 Dec 2013
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?