Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
118 views
I have a tabstrip containing 2 tabs which are visible and have 3rd tab which is not visible (Visible="false"). On button click (server side) if all the validations and statements are executed correctly, I want third tab to be visible and selected. My code is as below

 

 

protected void Button2_Click(object sender, EventArgs e)
    {
        RadTabStrip1.Tabs[2].Visible = true;
        RadTabStrip1.SelectedIndex = 2;
        RadTabStrip1.FindTabByText("Summary").Visible = true;
    }

but this is not happening. the 3rd tab doesnt appears at all.

Appreciate your help

Pankaj

 

Shinu
Top achievements
Rank 2
 answered on 03 Jan 2011
0 answers
68 views
Hello,
  Pls Help
  1. node moving option. E.g. A contract node can be moved from one project to another project.
  2.  block adding new contract node under another contract
Nithin
Top achievements
Rank 1
 asked on 03 Jan 2011
1 answer
149 views
Hello,

I have a cell in my grid with value 004. When I export this gridview to Excel, the report lose this formatting and just show 4 in the excel cell.what shoud i do to save format of numbers in excel cell format?

Someone can help me?

Thx
Hamed
Princy
Top achievements
Rank 2
 answered on 03 Jan 2011
1 answer
57 views
I want to use FormatCurrency in a bound column in a grid that is created programatically. I know you can do it with eval when created design time, but I want to do it programatically because it is a dynamic grid. I've check docs and forums and can't find it. Help? Thanks.
Princy
Top achievements
Rank 2
 answered on 03 Jan 2011
2 answers
66 views
I'm trying to use $find('<%= RadUpload1.ClientID %>').getFileInputs().length to identify the number of files the user has selected I run into the problem that when no files are selected the value appears to be 1.

Is there something I'm missing?

Thanks
John Smith
Top achievements
Rank 1
 answered on 03 Jan 2011
4 answers
96 views
After read the known issue "A JavaScript error can occur when using the debug versions of the MS AJAX library (<compilation debug="true"> in web.config)." we set ScriptMode="Release" property of the ScriptManager.

But when we do click in any tab of the tabscript we are getting this error:
Error: 'this.get_element().offsetWidth' is null or isnt a object.



Henri
Top achievements
Rank 1
 answered on 02 Jan 2011
10 answers
533 views
I have a RadPanelBar with No skin and would like to remove all borders and underlines.  I can not seem to get rid of the border on the Non expanded panel bar.  I am using RadControls for ASPNET AJAX Q1 2009.  Css and Asp below.

Any help would be appreciated.

Thanks
Doug

    .RadPanelBar .rpRootGroup,  
    .RadPanelBar .rpRootGroup .rpLink
    {  
         border: none !important;  
         color: #5F5F5F;
         text-decoration: none;
    }
    .RadPanelBar .rpRootGroup .rpGroup .rpLink:hover  
    {  
         border: none !important;  
         text-decoration: underline;
    }  
     .RadPanelBar .rpRootGroup .rpExpandable:link
     {
         text-decoration: none;
         border: none !important;  
     }

    .panelbarItem
    {
      color: #5F5F5F;
      font-size: 10pt;
         cursor: pointer;
         text-decoration: none;
         padding-left: 60px;
         height: 26px;
         border: none !important;  
    }
 
<telerik:RadPanelBar ID="RadPanelBar2" runat="server" EnableEmbeddedSkins="false"
         Width="450"  
         Skin=""
         OnItemDataBound="RadPanelbar1_ItemDataBound"
         OnItemClick="RadPanelbar1_ItemClick" ExpandMode="MultipleExpandedItems">
    <ExpandAnimation Type="OutQuint" Duration="900" />
</telerik:RadPanelBar>



Arno
Top achievements
Rank 2
 answered on 02 Jan 2011
3 answers
614 views
I had previously posted this in the Slider section: http://www.telerik.com/community/forums/aspnet-ajax/slider/strange-msg-quot-microsoft-jscript-runtime-error-radslidingpane-beforeexpand-is-undefined-quot.aspx

But I now realize that this problem is not directly related to the Slider but likely has something to do with the loading sequence of Javascript.

To get to the heart of the problem, I created a simple little user control with this layout code:

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="FullFaceMining.ascx.cs" Inherits="DataEntry.UserControls.FullFaceMining" %>

<script type="text/javascript">
  function radTreeView1_Test(sender, eventArgs) {
    debugger
  }
</script>

<telerik:RadTreeView ID="radTreeView1" runat="server" OnClientDoubleClick="radTreeView1_Test">
</telerik:RadTreeView>

Note that it doesn't actually "do" anything but it has the same pattern of a client-side event referring to a client-side event handler.  Lo and behold, it also fails when it's loaded.  So at least there's some consistency!

But please believe me ... this was all working fine for the past 6 months!!!  Suddenly and inexplicably, my project is seemingly unable to reference a user control's Javascript code now.  Clearly I've changed something that has effected this problem but what?!?

Robert W.
Vancouver, BC
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
 answered on 02 Jan 2011
3 answers
81 views
Hi ....
Evaluation is progressing ...

TestProject works like this (short working code below)
I select a TableName from dropdown and create gridcolumns etc dynamicly.

Questions
I need to know how to get values from UpdateForm when I press "Update" and how can I raise an event when I delete a row?
I also want to know if this is the right way/approach to do what I am trying to do!

Doing it lijke this also gives me another problem. Filter is working but the filter expression has dissappeared from filter-textbox ... anyone know how to fix this?


Check the following working code ....

Form code
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="edit_new3.aspx.vb" Inherits="edit" %>
  
<%@ Register Src="Controls/RecordEditForm.ascx" TagName="RecordEditForm" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
</head>
<body class="RecordEditForm">
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="TableComboBox">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="TableGrid" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="TableGrid">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="TableGrid" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <div>
        <telerik:RadComboBox ID="TableComboBox" runat="server" Skin="Office2007" AutoPostBack="True">
            <Items>
                <telerik:RadComboBoxItem runat="server" Enabled="False" Font-Italic="True" Selected="True"
                    Text="Choose table" Value="Choose table ..." />
                <telerik:RadComboBoxItem runat="server" Text="Employees" Value="Employees" />
                <telerik:RadComboBoxItem runat="server" Text="Companies" Value="Companies" />
            </Items>
        </telerik:RadComboBox>
    </div>
    <telerik:RadGrid ID="TableGrid" runat="server" AllowSorting="True" Skin="Office2007"
        AllowFilteringByColumn="True" AutoGenerateColumns="False">
        <ClientSettings EnableRowHoverStyle="True" EnableAlternatingItems="False" />
    </telerik:RadGrid>
    </form>
</body>
</html>

Code behind
Partial Class edit
    Inherits System.Web.UI.Page
  
    Protected Sub TableGrid_ItemCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles TableGrid.ItemCommand
        Select Case e.CommandName
            Case "Updated"
                'How to update my datatable in session
        End Select
    End Sub
  
    Protected Sub TableGrid_NeedDataSource(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles TableGrid.NeedDataSourc
        If TableComboBox.SelectedIndex > 0 Then
  
            'Clear columns
            TableGrid.Columns.Clear()
  
            'Declares
            Dim TempTable As New Data.DataTable
  
            'Build fixed columns for delete and edit row
            Dim EditColumn As New Telerik.Web.UI.GridEditCommandColumn
            TableGrid.MasterTableView.Columns.Add(EditColumn)
            EditColumn.ButtonType = Telerik.Web.UI.GridButtonColumnType.ImageButton
            Dim DeleteColumn As New Telerik.Web.UI.GridClientDeleteColumn
  
            TableGrid.MasterTableView.Columns.Add(DeleteColumn)
            DeleteColumn.ButtonType = Telerik.Web.UI.GridButtonColumnType.ImageButton
            DeleteColumn.ConfirmText = "Are you sure you want to delete the row?"
  
            'Get Table .... create if it doesn-t exist
            If Session(TableComboBox.SelectedValue) Is Nothing Then CreateDataSource()
            TempTable = Session(TableComboBox.SelectedValue)
  
            'Loop through Fields and create Columns and SQL field select
            For Each Column As Data.DataColumn In TempTable.Columns
                Dim BoundColumn As New Telerik.Web.UI.GridBoundColumn
                TableGrid.MasterTableView.Columns.Add(BoundColumn)
                BoundColumn.DataField = Column.ColumnName
                BoundColumn.HeaderText = Column.ColumnName
            Next
  
            'Set datasource
            TableGrid.DataSource = TempTable
  
        End If
    End Sub
  
    Protected Sub TableComboBox_SelectedIndexChanged(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles TableComboBox.SelectedIndexChanged
        TableGrid.Rebind()
    End Sub
  
    Sub CreateDataSource()
        'Create Table
        Dim EmployeeTable = New Data.DataTable
        With EmployeeTable
            .TableName = "Employees"
            .Columns.Add("ID")
            .Columns.Add("Name")
            .Columns.Add("Phone")
            .Rows.Add({1, "John", "444-667788"})
            .Rows.Add({2, "Patric", "555-556677"})
        End With
        Session("Employees") = EmployeeTable
        Dim CompanyTable As New Data.DataTable
        With CompanyTable
            .TableName = "Companies"
            .Columns.Add("ID")
            .Columns.Add("Company")
            .Columns.Add("Phone")
            .Rows.Add({1, "Microsoft", "444-667788"})
            .Rows.Add({2, "Google", "555-556677"})
        End With
        Session("Companies") = CompanyTable
    End Sub
  
End Class
Henrik
Top achievements
Rank 1
 answered on 02 Jan 2011
0 answers
54 views
hi all
hope you will..
i have problem with RadAsyncUpload in asp.net ajax controls.
i have a web form that contains
1- asp image control 2- RadAsyncUpload contol 3- RadProgressArea 4- RadProgressManager

when i choose image to upload from RadAsyncUpload control i want to display it in the asp image control after the progress done without post back

please help me...
Thanks
Ibrahim
Top achievements
Rank 1
 asked on 01 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?