Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
165 views
Hello experts

I need a chart with ellipse where ellipse width (x-axis) is 10 to 15 and ellipse height (y-axis) is 20 to 30.

Can anybody help me to achieve this.



Thanks
:)
Danail Vasilev
Telerik team
 answered on 10 May 2014
6 answers
212 views
NUTSHELL
In an Export to Excel, I want a column that contains a network folder location to be a hyperlink to that location.

DETAIL
I have a grid of many columns, one of which is hidden and contains a network file location.  The field is displayed in when Export to Excel, but it is only a text field.  I would like this to be a hyperlink so the user could click it which would open the network location specified in that field.

SAMPLE FIELD DATA
\\c-fs\vol2\Proposal\2014\a9873 - NYC - GSF – Brockport, NY

EXISTING CODE
Protected Sub btnExport_Click(ByVal sender As Object, ByVal e As EventArgs)
 
    Me.RadGrid1.MasterTableView.GetColumn("Location").Display = True  'This field contains the network location
    Me.RadGrid1.MasterTableView.GetColumn("Proposal_NotIssued").Display = True
    Me.RadGrid1.MasterTableView.GetColumn("Proposal_NotIssuedReason").Display = True
    Me.RadGrid1.MasterTableView.GetColumn("Proposal_Qualification").Display = True
    Me.RadGrid1.MasterTableView.GetColumn("Proposal_EstimatedProjectArea").Display = True
    Me.RadGrid1.MasterTableView.GetColumn("Proposal_EstimatedConstructionCost").Display = True
    Me.RadGrid1.MasterTableView.GetColumn("Proposal_WinningProbabilityPct").Display = True
    Me.RadGrid1.MasterTableView.GetColumn("Proposal_DateGranted").Display = True
    Me.RadGrid1.MasterTableView.GetColumn("Proposal_ProjectID").Display = True
    Me.RadGrid1.MasterTableView.GetColumn("Proposal_Comments").Display = True
 
    For Each item As GridDataItem In Me.RadGrid1.Items
        If item.Selected = False Then
            item.Visible = False
        End If
    Next
    Me.RadGrid1.Rebind()
    Me.RadGrid1.ExportSettings.ExportOnlyData = True
    Me.RadGrid1.ExportSettings.OpenInNewWindow = True
    Me.RadGrid1.ExportSettings.FileName = "Selected Proposals " & Format(Now, "yyyy-MM-dd-h-mm-ss")
    'Me.RadGrid1.ExportSettings.IgnorePaging = True
    Me.RadGrid1.ExportSettings.UseItemStyles = True
    Me.RadGrid1.MasterTableView.ExportToExcel()
 
 
End Sub

I am programming in MS Visual Studio 2012.
I am using Telerik UI for ASP.NET AJAX, v.2014.1.225.45
Daniel
Telerik team
 answered on 10 May 2014
1 answer
72 views
Hi,

We run a SharePoint 2010 solution in SharePoint 2013 in compability mode, and we use this installer: http://www.telerik.com/downloads/productfiles/bgcte/Telerik_ASP_NET_Web_Parts_2013_3_1324_for_SharePoint_2013_Dev.msi

The problem is that the feature doesnt show up in the site feature page. We only see the "Use RadEditor to edit List Items" feature.

The wsp I installed with Add-SPSolution and Install-SPSolution. it installed successfully. Before we installed this wsp we had the SP2010 version, but as we had problem with that we tried with the SP2013 version.


Kind Regards,
Mattias
Mattias
Top achievements
Rank 1
 answered on 09 May 2014
4 answers
648 views
What I am trying to do is pass a value from my RadGrid to my RadWindow when a button is clicked, very similar to what is demonstrated in this demo: http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=grid 

The trouble I have is finding my RadWindow via Javascript. Every method I try results in a null object returned from the find command. The most recent method I tried was registering the javascript as a startup script. I'm not sure what exactly I'm doing wrong. See my code below:

ASPX

<telerik:RadGrid ID="durationGrid" runat="server" DataSourceID="durationDataSource"
         OnItemCommand="durationGrid_ItemCommand" AllowPaging="true" OnItemCreated="durationGrid_ItemCreated">
            <MasterTableView runat="server" CommandItemDisplay="Top" UseAllDataFields="true" AutoGenerateColumns="false" DataKeyNames="ID">
                <Columns>
                    <telerik:GridBoundColumn DataField="Stat" HeaderText="Status" SortExpression="Stat" ReadOnly="true" />
                    <telerik:GridBoundColumn DataField="ItemName" HeaderText="Name" SortExpression="ItemName" ReadOnly="true" />
                    <telerik:GridBoundColumn DataField="PartNumber" HeaderText="Part Number" SortExpression="PartNumber" ReadOnly="true" />
                    <telerik:GridBoundColumn DataField="Serial" HeaderText="Serial #" SortExpression="Serial" ReadOnly="true" />
                    <telerik:GridBoundColumn DataField="LotNumber" HeaderText="Lot #" SortExpression="LotNumber" ReadOnly="true" />
                    <telerik:GridBoundColumn DataField="CrossRefID" HeaderText="PS #" SortExpression="CrossRefID" ReadOnly="true" />
                    <telerik:GridBoundColumn DataField="OEM" HeaderText="OEM" SortExpression="OEM" ReadOnly="true" />
                    <telerik:GridBoundColumn DataField="Consigned" HeaderText="Consigned" ReadOnly="true" />
                    <telerik:GridBoundColumn DataField="location" HeaderText="Location" SortExpression="location" ReadOnly="true" />
                    <telerik:GridBoundColumn DataField="Value" HeaderText="Value" SortExpression="Value" ReadOnly="true" DataFormatString="{0:c}" />
                    <telerik:GridBoundColumn DataField="ExpirationDate" HeaderText="Expiration Date" SortExpression="ExpirationDate" ReadOnly="true" DataFormatString="{0:MM/dd/yyy}" />
                    <telerik:GridTemplateColumn HeaderText="">
                            <ItemTemplate>
                                <asp:ImageButton ID="NotesBtn" runat="server" ImageUrl="images/icons/notes.png" OnClick="NotesBtn_Click"  />
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                </Columns>
                <CommandItemSettings ShowExportToExcelButton="true" ShowAddNewRecordButton="false" />
            </MasterTableView>
            <ExportSettings FileName="Duration Report"></ExportSettings>
        </telerik:RadGrid>
 
 
        <telerik:RadWindowManager ID="winma2" runat="server">
            <Windows>
                 <telerik:RadWindow ID="NotesWindow" runat="server" Modal="true" Behaviors="Close, Move"
                    Width="540px" Height="490px" DestroyOnClose="false" VisibleStatusbar="false" ShowContentDuringLoad="false" ReloadOnShow="true"
                    Skin="Simple" OnClientShow="OnClientShow" Title="Item Notes Editor" >    
                 </telerik:RadWindow>
            </Windows>
        </telerik:RadWindowManager>



C#

protected void NotesBtn_Click(object sender, EventArgs e)
      {
 
          string script = "function openRadWin(value) {var win = $find('" + NotesWindow.ClientID + "');alert(win); Sys.Application.remove_load(openRadWin);}Sys.Application.add_load(openRadWin);";
          ScriptManager.RegisterStartupScript(this, this.GetType(), "key", script, true);
      }
 
 
      protected void durationGrid_ItemCreated(object sender, GridItemEventArgs e)
      {
          if (e.Item is GridCommandItem)
          {
              Button btncmd = (e.Item as GridCommandItem).FindControl("ExportToExcelButton") as Button;
 
              if (btncmd != null)
              {
                  RadScriptManager.GetCurrent(this.Page).RegisterPostBackControl(btncmd);
              }
 
          }
          if (e.Item is GridDataItem)
          {
              ImageButton NotesBtn = (ImageButton)e.Item.FindControl("NotesBtn");
              NotesBtn.OnClientClick = "openRadWin('" + e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["ID"] + "');";
          }
      }

Zhuoyun
Top achievements
Rank 1
 answered on 09 May 2014
1 answer
55 views
When using a telerik RadDatePicker (version 2012, 2, 724, 35) in Internet Explorer 10 (and only in this browser), the word false is displayed under the date input and infront and then after the calendar dropdown. Is there a solution to hide this ?

A sample video can be found on url: https://dl.dropboxusercontent.com/u/9782968/telerik%20datepicker%20false%20IE10.avi
The sample source code can be found on url: https://dl.dropboxusercontent.com/u/9782968/TestCalendar.zip

Hopefully someone can find the solution for this behaviour

Grtz
Maria Ilieva
Telerik team
 answered on 09 May 2014
3 answers
408 views
ajax manager dont redirect .

i have master page with ajaxmanager.
<telerik:RadScriptManager ID="RadScriptManager1" runat="server"  
           OutputCompositeScriptLast="True">
           <Scripts>
               <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
               <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
               <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
           </Scripts>
           <CompositeScript>
               <Scripts>
                   <asp:ScriptReference NotifyScriptLoaded="true" Path="~/Common/Scripts/jquery-1.9.0.js" />
                    <asp:ScriptReference NotifyScriptLoaded="true" Path="~/Common/Scripts/jquery-migrate-1.2.1.min.js" />
                    <asp:ScriptReference NotifyScriptLoaded="true" Path="~/Common/Scripts/jquery-2.1.1.min.js" />
                   <asp:ScriptReference NotifyScriptLoaded="true" Path="~/Common/Js/mainComp.js" />
               </Scripts>
           </CompositeScript>
</telerik:RadScriptManager>

i have rad ajaxpanel and inside a button that has btnRedirect_Click onclick event at content page.
my content page redirect code is below:
protected void btnRedirect_Click(object sender, EventArgs e)
       {
    string url = Functions.RouteUrlToFullUrl(RouteTable.Routes.GetVirtualPath(null, "route", new RouteValueDictionary { { "id", param1}, { "routeC", param2} }).VirtualPath);
               RadAjaxManager AjaxManager = RadAjaxManager.GetCurrent(Page);              
               AjaxManager.Redirect(url);
        
       }

there is nothing. ajaxmanager or ajaxpanel dont redirect.
Pls help.
Thanks.

Maria Ilieva
Telerik team
 answered on 09 May 2014
6 answers
138 views
I have 6 charts on one page in my asp.net application and each one is in ajaxloading panel and all charts are drillable. now when i click one chart it displays loader and drills down . now when i try to drill down another chart in different loading panel it drills too. but it changes my first chart to initial level. any solution to this .my code is below,

Maria Ilieva
Telerik team
 answered on 09 May 2014
5 answers
166 views
I have a file explorer on a page, it works on dev and test.  In production I can upload files, delete files, but when I try and open files I get a 401 Error.  
Why would opening the file be causing this issue when I can do everything else.
Vessy
Telerik team
 answered on 09 May 2014
4 answers
145 views
Good Afternoon

I'm using a RadWindowManager to open several popup windows. For this, I use javascripts functions to open new URLs of the aspx pages. Following an example:

function openRadWindowContact(contactid, action) {
            var rwManager = GetRadWindowManager();
            rwManager.SetWidth(200);
            rwManager.SetHeight(200);
            var oWnd = radopen("../ContactDetail.aspx?ContactID=" + contactid + "&Operation=" + action, "Contact Detail");
            oWnd.center();
        }

Of course not all of the aspx files require the same width/height. The first time I open a popup it is presented with correct sizes, but the next popup is presented with the same Height and Width as the previous one.

I use a custom javascript function to open each of the different popup windows I need, and I am trying to use .SetWidth & .SetHeight values to 200 (small square that would be resized according to the content of the page)....but it seems not to be working, actually the .SetWidth & .SetHeight properties are working only after a postback (I can tell this cause I'm using the property ShowContentDuringLoad="false" on RadWindowManager and it takes that small size while showing the loading gif).

Is there a way to make RadWindowManager to handle correctly the sizes for each of the windows I'm opening?

Thanks in advance for your help!
Oscar


Oscar Emiliano
Top achievements
Rank 1
 answered on 09 May 2014
1 answer
70 views
We are using Telerik RadGrid to display data. The grid is looking good when using IE 9. But it is showing multiple vertical lines when browsed in IE 11 with document mode 7. Please share your thoughts to resolve the issue. 
Pavlina
Telerik team
 answered on 09 May 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?