Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
249 views
I tried this:

if (e.Column.UniqueName.Contains("SomeColumn"))

{

GridBoundColumn item = (GridBoundColumn)e.Column;

item.Aggregate =

GridAggregateFunction.Avg;

}

@ column created step.

did not work.
Thanks in advance.

Radoslav
Telerik team
 answered on 23 Oct 2012
6 answers
201 views
I have used telerik rad grid client-side programmatic binding. Binding is working fine but the nested view template expand image button is not displaying with more than 10 records. I am adding user control dynamically to that nested view template.

  
<telerik:RadGrid ID="rgInvoiceDetails" runat="server" GridLines="None" AllowSorting="false" AutoGenerateColumns="False" CellSpacing="0">
  <ClientSettings>
 <ClientEvents OnCommand="rgInvoiceDetails_Command" OnHierarchyExpanding="rgInvoiceDetails_HierarchyExpanding"
       OnRowDataBound="rgInvoiceDetails_RowDataBound" />
  </ClientSettings>
   <MasterTableView ClientDataKeyNames="FeeChassisInvoiceDetailID,Disputed" CommandItemDisplay="Top"
     Width="100%" HierarchyLoadMode="Client">
 <Columns>
  <telerik:GridBoundColumn DataField="ChassisNumber" HeaderText="Chassis" />
 <telerik:GridBoundColumn DataField="BillFromDate" HeaderText="Out Gate" DataFormatString="{0:d}" />
 <telerik:GridBoundColumn DataField="BillToDate" HeaderText="In Gate" DataFormatString="{0:d}" />
 <telerik:GridBoundColumn DataField="BillDays" HeaderText="Days" />
  <telerik:GridBoundColumn DataField="Rate" HeaderText="Rate" DataType="System.Decimal"
  DataFormatString="{0:c}" />
 <telerik:GridBoundColumn DataField="FeeAmount" HeaderText="Total" DataType="System.Decimal"
 DataFormatString="{0:c}" />
  <telerik:GridBoundColumn DataField="Disputed" HeaderText="" ItemStyle-CssClass="MyCustomHeaderClass" />
 </Columns>
 <NestedViewTemplate>
 </NestedViewTemplate>
<HeaderStyle CssClass="MyCustomHeaderClass" />
 </MasterTableView>
 </telerik:RadGrid>

Thanks in advance.
Jayesh Goyani
Top achievements
Rank 2
 answered on 23 Oct 2012
3 answers
137 views
Hello,

http://demos.telerik.com/aspnet-ajax/grid/examples/overview/defaultcs.aspx

Please check attached image : Untitled.

Sorry by mistake i have added Untitled1 image.

Thanks,
Jayesh Goyani
Jayesh Goyani
Top achievements
Rank 2
 answered on 23 Oct 2012
0 answers
74 views
Is there any way to display read-only fields using the GridHTMLEditorColumn?

I've been trying to use a GridHTMLEditor column and it looks to me like the only way I can get a field to show up is to make it editable. 

(Everything I've seen so far makes me think a FormsTemplate would be a far better choice.)

Let's forget this one for now.  I seem to have been asking the wrong questions.
Boris
Top achievements
Rank 1
 asked on 22 Oct 2012
0 answers
38 views
This examples takes the name of the tab from the name of the .ascx file. I want to have my own tab name,which may include spaces as well.
Imports System
Imports Telerik.Web.UI
 
 
Namespace Telerik.Web.Examples.TabStrip.ApplicationScenarios.LoadOnDemand
 
    Partial Public Class DefaultVB
        Inherits System.Web.UI.Page
        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            If Not Page.IsPostBack Then
                AddTab("Customers")
                AddPageView(RadTabStrip1.FindTabByText("Customers"))
                AddTab("Products")
                AddTab("Orders")
            End If
        End Sub
 
        Private Sub AddTab(ByVal tabName As String)
            Dim tab As RadTab = New RadTab
            tab.Text = tabName
            RadTabStrip1.Tabs.Add(tab)
        End Sub
 
        Protected Sub RadMultiPage1_PageViewCreated(ByVal sender As Object, ByVal e As RadMultiPageEventArgs) Handles RadMultiPage1.PageViewCreated
            Dim userControlName As String = e.PageView.ID & "VB.ascx"
            Dim userControl As Control = Page.LoadControl(userControlName)
            userControl.ID = e.PageView.ID & "_userControl"
            e.PageView.Controls.Add(userControl)
        End Sub
 
        Private Sub AddPageView(ByVal tab As RadTab)
            Dim pageView As RadPageView = New RadPageView
            pageView.ID = tab.Text
            RadMultiPage1.PageViews.Add(pageView)
            pageView.CssClass = "pageView"
            tab.PageViewID = pageView.ID
        End Sub
 
        Protected Sub RadTabStrip1_TabClick(ByVal sender As Object, ByVal e As RadTabStripEventArgs) Handles RadTabStrip1.TabClick
            AddPageView(e.Tab)
            e.Tab.PageView.Selected = True
        End Sub
 
    End Class
 
End Namespace
Aamir
Top achievements
Rank 1
 asked on 22 Oct 2012
2 answers
214 views
Hi,

I have a radcombobox with checkboxes and am using multiselect.  I am using the server side on click event which of course is causing a postback.  With this in mind is it possible to maintain the scroll position in the rad combo box. 
For example,  if I check the 54th item in the list it then returns me back to the top of the list.  I would like it to return to the item that I checked.

Thank you for your help.
Tracy
Tracy
Top achievements
Rank 1
 answered on 22 Oct 2012
2 answers
118 views

Hi all,

Getting an error "Access is denied" when trying to submit rad upload from IE only. I have a JavaScript fix in place for the issue where clicking on the file input area does not bring up the file browser:

function pageLoad() {
    if ($telerik.isIE)
        $telerik.$('.ruFileInput, .ruFakeInput').live('mousedown', function () {
            $telerik.$('.ruFileInput', this.parentNode)[0].click();
            return false;
        });
    }

With this code in place the file browser works in IE, but when clicking on the submit button I get an error. This happens on both our dev. server and localhost.

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET CLR 1.1.4322)
Timestamp: Mon, 30 Aug 2010 18:39:46 UTC

Message: Access is denied.

Line: 5617
Char: 1
Code: 0
URI: http://localhost/SelfServiceQuoterDuplication/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d1.0.61025.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a1f0f78f9-0731-4ae9-b308-56936732ccb8%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.3.1324.20%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a40669927-5ca3-42ff-91d0-f64b5422fc66%3a16e4e7cd%3af7645509%3a24ee1bba%3a19620875%3a874f8ea2%3a33108d14%3abd8f85e4%3a1e771326%3aaa288e2d%3a68f76a79%3a2a2fc429%3aa585d0d4%3aed16cbdc

I'm stumped. Any help appreciated.

Thanks

Stéphane
Top achievements
Rank 1
 answered on 22 Oct 2012
1 answer
58 views
Hello,

Is there anyway that the RadComboBox can be made to allow for multi-select. I have a project and must be able to select one or more items before my postback. I tried CTRL-Select but it did not work. As always, you guys are always a great help and my best Telerik resource!!!!

Thanks,


Steve Holdorf
Steve Holdorf
Top achievements
Rank 1
 answered on 22 Oct 2012
1 answer
416 views

Dear Sir/Madam,

I made a VERY BIG mistake. You see, I needed a net decompiler and stupid google suggested your damned site. A free decompiler, you say? - OK, i need it. I should reconsider as soon as I was asked to download a TRIAL of something (trial of free... hm), or when I saw the first screen of the installer and found out it will install some shitty control panel and other components I will never need. I should turn my back at this point and run away, but NO, I've installed it on my PC (sob). I really made VERY BIG mistake.

And now, I can not remove it! It is written by fucked dilletants and does not have even an uninstaller! So, please, burn in hell you damned bastards!

Andrey
Telerik team
 answered on 22 Oct 2012
0 answers
54 views
I was looking to make some minor changes to an existing skin, the problem is I do not see the css file anywhere in my project.  Is there a way to open the css file and make the changes or do I need to make a custom skin and then edit the css there?
Eric Klein
Top achievements
Rank 1
 asked on 22 Oct 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?