Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
42 views

 

 

Can someone show me how to set values on a tableview and make them show up from javascript?

I have been trying to do this, but it doesn't seem to work:

function ClientSelectedIndexChanged(sender, eventArgs) {
  
var item = eventArgs.get_item();
  
var item1 = item._attributes._data;
  
tableView._data._columnsData[2].value = item1.username;
  
tableView._data._columnsData[3].value = item1.firstname;
  
tableView._data._columnsData[4].value = item1.lastname;
  
tableView.rebind();
  
}

Regards,

Dan

Tsvetina
Telerik team
 answered on 13 Sep 2011
1 answer
157 views
I have reviewed many topics about RadWindow, RadWindowManager etc, but I am having trouble understanding the approach that I should take.

My goal is simple, I have a control heirarchy

Page.aspx
==== RadTabStrip
========RadTab
============UserControl
============Modal content (UserControl)
============UserControl
======================= Modal Content (UserControl)

See, I have nested controls that do their own thing, the need for modals / pop ups on different levels of the control tree, but each popup should appear as though it "owns the page".

My question: How should I approach this generally? Should I use RadWindows on the Page.aspx and "Add" controls to them at run-time? Or is there a way to manage RadWindows on various levels? I just don't understand how to manage the windows in this scenario.

Thanks,

Patrick
Marin Bratanov
Telerik team
 answered on 13 Sep 2011
1 answer
97 views
Having trouble adding labels to autogenerated web forms.  When these forms are generated they are generated using table row and table data structures.  I am trying to add a message to the top of the box using FindControl to find the Cancel button, then add a label to the top lvl of the naming container.  How do I add a label outside of the table structure so that it is at the top of the form instead of next to or below the cancel button?
Tsvetina
Telerik team
 answered on 13 Sep 2011
3 answers
162 views
Hello,

I have a problem when i try to open a new window from an open one.  The new window is dispayed at the layer behind the old one, while i want to show it in the front of the old window.
 You can find bellow code I used :

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" ShowContentDuringLoad="false" Modal="false" Behavior="Resize, Move, Close, Maximize, Minimize" Skin="WebBlue">
                                                        <Windows>
 <telerik:RadWindow ID="radDocWindow" runat="server" OnClientClose="refreshGed" DestroyOnClose="false" Behavior="Move, Close" AutoSize="true" Left="5px" Top="5px" />
.
.
.
.

            var URL = "<%=this.ApplicationPath%>ManageGed/EditDoc.aspx?type=add&business="+business.value+"&task="+task.value;
            if ( typeof GetRadWindow==='function' )
            {
                var oBrowserWnd = GetRadWindow();
            
                if (oBrowserWnd)
                {
                    var wm = oBrowserWnd.GetWindowManager();
                    var oWindow = wm.Open(URL,"radDocWindow");
                }
                else
                    var oWindow = window.radopen(URL,"radDocWindow");
            }
            else
                var oWindow = window.radopen(URL,"radDocWindow");

Is there a indispensable parameter to set for this goal?

Thank You for your suggestions!




                                                            
Marin Bratanov
Telerik team
 answered on 13 Sep 2011
3 answers
122 views

I have a RadDatePicker, and I'm setting the background color on the server side when it contains an invalid value like so:

dtStartDate.DateInput.Style.Add(HtmlTextWriterStyle.BackgroundColor, "red");


Then on the client side, I have this handler attached to the ClientEvents-OnValueChanged event of the child DateInput of the RadDatePicker.

function RemoveInvalidStyle(sender, args)
{
    sender.get_styles().EnabledStyle[0] = sender.get_styles().EnabledStyle[0].replace("background-color:red;", "");
    sender.get_styles().HoveredStyle[0] = sender.get_styles().HoveredStyle[0].replace("background-color:red;", "");
    sender.get_styles().FocusedStyle[0] = sender.get_styles().FocusedStyle[0].replace("background-color:red;", "");
    sender.updateCssClass();
}

This works just fine, they both change the background, but after the client call the background will be reset again on the first postback.  Is this due to that not being persisted in the viewstate?  Or is it being overwritten by the property set on the parent wrapper?
Mira
Telerik team
 answered on 13 Sep 2011
3 answers
101 views
Hi everybody,
I use a rad scheduler. I use a advanced form in this component. it opens but when I drag the form but is just moving to the right and left. How do i make the form is movable. javascript or property etc. ?? Thank you for your help...
Peter
Telerik team
 answered on 13 Sep 2011
1 answer
63 views
I have linkbuttons in a radgid template column at the end of my grid.  Whn I hide one it will still register the click when I click on the one that is not hidden, so what happens is that 2 pop-ups show up, the one hidden first and then the one that is not hidden.  How can I disalbe the hidden one so that it does not fire the event.

<telerik:RadGrid ID="myGridPositions" runat="server" BorderWidth="1px" CellPadding="6" GridLines="None" BorderColor="#404040" Skin="Web20">
                                                   <MasterTableView Name="myRGDDMain" AutoGenerateColumns="false" DataKeyNames="intPositionId, intSpecialFill" Font-Names="Veranda,arial,sans-serif" HeaderStyle-HorizontalAlign="Center" 
                                                   BorderWidth="1px" Width="100%" ItemStyle-HorizontalAlign="Center">
                                                    <HeaderStyle Font-Bold="true" />
                                                    <AlternatingItemStyle BackColor="#B0C4DE" />
                                                            <Columns>
                                                                <telerik:GridTemplateColumn HeaderText="TITLE" ItemStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:LinkButton ID="lnkPassback" runat="server" CommandArgument='<%# bind("intPositionId") %>' CommandName="Passback" text='<%# bind("strPosnTitle") %>'
                                                                         ToolTip="Click to passback position to higher level"></asp:LinkButton>
                                                                    </ItemTemplate>
                                                                </telerik:GridTemplateColumn>
                                                                <telerik:GridBoundColumn DataField="strpara" HeaderText="PARA" ItemStyle-HorizontalAlign="Center" />
                                                                <telerik:GridBoundColumn DataField="strLine" HeaderText="LINE"  ItemStyle-HorizontalAlign="Center" />
                                                                <telerik:GridBoundColumn DataField="intPositionNum" HeaderText="POS"  ItemStyle-HorizontalAlign="Center" />
                                                                <telerik:GridBoundColumn DataField="strGrade" HeaderText="GR"  ItemStyle-HorizontalAlign="Center" />
                                                                <telerik:GridBoundColumn DataField="strMos" HeaderText="MOS"  ItemStyle-HorizontalAlign="Center" />
                                                                <telerik:GridBoundColumn DataField="strFullName" HeaderText="Filled By" ItemStyle-HorizontalAlign="Left" />
                                                                <telerik:GridtemplateColumn HeaderText="LT_MOB" ItemStyle-HorizontalAlign="Center" UniqueName="Latemob">
                                                                    <ItemTemplate>
                                                                        <asp:LinkButton ID="lnkLateMob" runat="server" CommandArgument='<%# bind("intPositionId") %>' CommandName="LateMob">LT_MOB</asp:LinkButton>
                                                                    </ItemTemplate>
                                                                </telerik:GridtemplateColumn>
                                                                <telerik:GridTemplateColumn HeaderText="Remove" ItemStyle-HorizontalAlign="Center" UniqueName="Remove">
                                                                    <ItemTemplate>
                                                                        <asp:LinkButton ID="lnkDelete" runat="server" CommandArgument='<%# bind("intPositionId") %>' CommandName="Remove" OnClientClick="Are you sure">Remove</asp:LinkButton>
                                                                    </ItemTemplate>
                                                                </telerik:GridTemplateColumn>
                                                                 <telerik:GridTemplateColumn HeaderText="Refrad" ItemStyle-HorizontalAlign="Center" UniqueName="Refrad">
                                                                    <ItemTemplate>
                                                                        <asp:LinkButton ID="lnkRefrad" runat="server" CommandArgument='<%# bind("intPositionId") %>' CommandName="Refrad">Refrad</asp:LinkButton>
                                                                    </ItemTemplate>
                                                                </telerik:GridTemplateColumn>
                                                                 <telerik:GridBoundColumn DataField="intSpecialFill" UniqueName="Passback" />
                                                            </Columns>



Protected Sub myGridPositions_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles myGridPositions.ItemDataBound
        Dim Today As DateTime = Date.Now
        Dim deploy As DateTime
        sql = "Select dtDeploy from tblMobUnits where intUnitMobId = " & ddlUic.SelectedValue
        myDataTable = New DataTable
        myDataTable = getData(sql)
        If IsDBNull(myDataTable.Rows(0)(0)) Then
            deploy = Date.Now.AddDays(10)
        Else
            deploy = myDataTable.Rows(0)(0)
        End If
        If Today > deploy Then
            If checkAdmin() = False Then
                myGridPositions.MasterTableView.GetColumn("Latemob").Visible = False
                myGridPositions.MasterTableView.GetColumn("Remove").Visible = False
                tblDeploy.Visible = True
            Else
                myGridPositions.MasterTableView.GetColumn("Latemob").Display = True
                myGridPositions.MasterTableView.GetColumn("Remove").Display = True
                tblDeploy.Visible = True
            End If
        Else
            myGridPositions.MasterTableView.GetColumn("Refrad").Visible = False
        End If
        If TypeOf e.Item Is GridDataItem Then
            Dim Item As GridDataItem = DirectCast(e.Item, GridDataItem)
            Dim name As TableCell = Item("strFullName")
            Dim Fill As TableCell = Item("Passback")
            If name.Text = "&nbsp;" Then
                Dim Late As LinkButton = DirectCast(Item.FindControl("lnkLateMob"), LinkButton)
                Late.Visible = False
                Dim Remove As LinkButton = DirectCast(Item.FindControl("lnkDelete"), LinkButton)
                Remove.Visible = False
                Dim Refrad As LinkButton = DirectCast(Item.FindControl("lnkRefrad"), LinkButton)
                Refrad.Visible = False
            End If
            If name.Text <> "&nbsp;" Then
                Dim Pass As LinkButton = DirectCast(Item.FindControl("lnkPassback"), LinkButton)
                Pass.Enabled = False
                Pass.ToolTip = ""
                Pass.ForeColor = Drawing.Color.Black
            End If
            If Fill.Text = "1" Then
                Dim Pass As LinkButton = DirectCast(Item.FindControl("lnkPassback"), LinkButton)
                Pass.Enabled = False
                Pass.ToolTip = "Position Passed Back to State Level"
                Pass.ForeColor = Drawing.Color.Firebrick
            End If
            'Hide the fill column no matter the fill
            myGridPositions.MasterTableView.GetColumn("Passback").Display = False
        End If
    End Sub
Mira
Telerik team
 answered on 13 Sep 2011
1 answer
414 views
I'm getting an error below when I try navigating to this path in the "Live Demos" project that I have running on IIS 7 in Windows 7.  I'm using the .NET 3.5 web.config file.  I did quite a bit of setup over the last couple days, so if you need more info to help me out, please let me know.

http://localhost/combobox/examples/default/defaultcs.aspx

<connectionStrings>
        <add name="NorthwindConnectionString" connectionString="Data Source=DEV-WIN7-KW\SQLEXPRESS;AttachDbFilename=|DataDirectory|Northwind.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" />
<add name="TelerikConnectionString" connectionString="Data Source=DEV-WIN7-KW\SQLEXPRESS;AttachDbFilename=|DataDirectory|Telerik.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" />
        <add name="NorthwindConnectionString35" connectionString="Data Source=DEV-WIN7-KW\SQLEXPRESS;AttachDbFilename=|DataDirectory|Northwind.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" />
<add name="TelerikConnectionString35" connectionString="Data Source=DEV-WIN7-KW\SQLEXPRESS;AttachDbFilename=|DataDirectory|Telerik.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" />
<add name="NorthwindEntities" connectionString="metadata=res://*;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=DEV-WIN7-KW\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Northwind.mdf;Integrated Security=True;User Instance=True;MultipleActiveResultSets=True&quot;" providerName="System.Data.EntityClient" />
<add name="TelerikEntities" connectionString="metadata=res://*;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=DEV-WIN7-KW\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Telerik.mdf;Integrated Security=True;User Instance=True;MultipleActiveResultSets=True&quot;" providerName="System.Data.EntityClient" />
<add name="QSFRatingsConnectionString" connectionString="Data Source=DEV-WIN7-KW\SQLEXPRESS;AttachDbFilename=|DataDirectory|QSFRatings.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" />
<add name="SelfReferencingDbConnectionString" connectionString="Data Source=DEV-WIN7-KW\SQLEXPRESS;AttachDbFilename=|DataDirectory|TelerikSelfReferencingDb.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" />
</connectionStrings>



Error below:

Server Error in '/' Application.

Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path. Please make sure the user has a local user profile on the computer. The connection will be closed.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path. Please make sure the user has a local user profile on the computer. The connection will be closed.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[SqlException (0x80131904): Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path. Please make sure the user has a local user profile on the computer. The connection will be closed.]
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4849015
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194
   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2394
   System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) +35
   System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +144
   System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +342
   System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +221
   System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +189
   System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +4863459
   System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +31
   System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +433
   System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66
   System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +499
   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +65
   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117
   System.Data.SqlClient.SqlConnection.Open() +122
   System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState& originalState) +31
   System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +112
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +287
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +92
   System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +1297
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +19
   Telerik.Web.UI.RadComboBox.OnDataBinding(EventArgs e) +637
   Telerik.Web.UI.RadComboBox.PerformSelect() +21
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
   Telerik.Web.UI.RadComboBox.DataBind() +38
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
   System.Web.UI.WebControls.BaseDataBoundControl.OnPreRender(EventArgs e) +22
   Telerik.Web.UI.RadComboBox.OnPreRender(EventArgs e) +15
   System.Web.UI.Control.PreRenderRecursiveInternal() +80
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842


Version Information: Microsoft .NET Framework Version:2.0.50727.4961; ASP.NET Version:2.0.50727.4955              


Dimitar Terziev
Telerik team
 answered on 13 Sep 2011
2 answers
193 views
How are you my friends? I am new to your controls and i am very happy with them, we will buy them soon
I have some issues that need to be fixed as soon as possible:-
My Scenario is RadWindow that contains ASP.NET Wizard control
1- when i ajaxify RadWindow using RadAjaxManager, I get the following error
Microsoft JScript runtime error: Sys.ArgumentException: Value must not be null for Controls and Behaviors.
Parameter name: element
2- Also,  I need if the Ajax Fuctionality works correctly, i need to show progress indication when the user click Next button in the first wizard and another different indication when the user click Next in the second Wizard
3-When Clicking Close Window to close the window, I use JavaScript function to close the window, but when i open it again; it opened on the status that was before closing it---------> i don't need this behaviour, i want it to open on the first step everytime i closed it and open it again.
My Code snippet is below
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DeploymentWizard.ascx.cs"
    Inherits="Horizons.SA.Presentation.UI.Web.Client.Admin.Controls.DeploymentWizard" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<style type="text/css">
      
</style>
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <script type="text/javascript">
        function OpenDeploymentWizard() {
            var RadWindow = $find("<%=RadDeploymentWindow.ClientID%>");
            RadWindow.show();
        }
  
        function CloseDeploymentWizard() {
            var RadWindow = $find("<%=RadDeploymentWindow.ClientID%>");
            RadWindow.Close();
        }
     
    </script>
</telerik:RadCodeBlock>
<telerik:RadAjaxManager runat="server" ID="RadAjaxManager">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadDeploymentWindow">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadDeploymentWindow" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadWindow ID="RadDeploymentWindow" Title="<%$ Resources:Text, DeploymentWizard %>"
    runat="server" VisibleOnPageLoad="false" VisibleStatusbar="false" Width="535px"
    Modal="true" Height="430px" Behaviors="Close,Move" Skin="Windows7" ShowContentDuringLoad="false"
    EnableViewState="false" DestroyOnClose="true" ReloadOnShow="true">
    <ContentTemplate>
        <%--Deployment Wizards--%>
        <asp:Wizard runat="server" ID="DeployWizards" Width="100%" DisplaySideBar="False"
            DisplayCancelButton="true" OnNextButtonClick="DeployWizards_NextButtonClick">
            <HeaderTemplate>
                <table cellpadding="0" cellspacing="0" class="wizardHeader">
                    <tr>
                        <td class="wizardTitle">
                            <%= DeployWizards.ActiveStep.Title%>
                        </td>
                        <td>
                            <table style="width: 100%; border-collapse: collapse;">
                                <tr>
                                    <td class="wizardHeaderTableCell">
                                        <span class="wizardProgress">
                                            <%= Resources.Text.Steps%></span>
                                    </td>
                                    <asp:Repeater ID="SideBarList" runat="server">
                                        <ItemTemplate>
                                            <td class="stepBreak">
                                                   
                                            </td>
                                            <td class="<%# GetClassForWizardStep(Container.DataItem) %>" title="<%# DataBinder.Eval(Container, "DataItem.Name")%>">
                                                <%# DeployWizards.WizardSteps.IndexOf(Container.DataItem as TemplatedWizardStep ) + 1%>
                                            </td>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </HeaderTemplate>
            <StartNavigationTemplate>
                <asp:Panel ID="panStart" runat="server" CssClass="wizardNavContent">
                    <telerik:RadButton ID="NextButtonValidationStep" CssClass="wizardNavButton" runat="server"
                        Text="<%$ Resources:Text, Next %>" CommandName="MoveNext" AlternateText="Next">
                    </telerik:RadButton>
                    <telerik:RadButton ID="CancelButtonValidationStep" CssClass="wizardNavButton" runat="server"
                        Text="<%$ Resources:Text, Cancel %>" AlternateText="Cancel" OnClientClicked="CloseDeploymentWizard">
                    </telerik:RadButton>
                </asp:Panel>
            </StartNavigationTemplate>
            <StepNavigationTemplate>
                <asp:Panel ID="panStep" runat="server" CssClass="wizardNavContent">
                    <telerik:RadButton ID="PrevButtonDeployment" CssClass="wizardNavButton" runat="server"
                        Text="<%$ Resources:Text, Previous %>" CommandName="MovePrevious" AlternateText="Previous">
                    </telerik:RadButton>
                    <telerik:RadButton ID="NextButtonDeploymentStep" CssClass="wizardNavButton" runat="server"
                        Text="<%$ Resources:Text, Next %>" CommandName="MoveNext" AlternateText="Next">
                    </telerik:RadButton>
                    <telerik:RadButton ID="CancelButtonDeploymentStep" CssClass="wizardNavButton" runat="server"
                        Text="<%$ Resources:Text, Cancel %>" AlternateText="Cancel" OnClientClicked="CloseDeploymentWizard">
                    </telerik:RadButton>
                </asp:Panel>
            </StepNavigationTemplate>
            <FinishNavigationTemplate>
                <asp:Panel ID="panFinish" runat="server" CssClass="wizardNavContent">
                    <telerik:RadButton ID="FinishButton" CssClass="wizardNavButton" runat="server" CommandName="MoveComplete"
                        OnClientClicked="CloseDeploymentWizard" Text="<%$ Resources:Text, Finish %>"
                        AlternateText="Finish">
                    </telerik:RadButton>
                </asp:Panel>
            </FinishNavigationTemplate>
            <WizardSteps>
                <asp:TemplatedWizardStep ID="DeploymentConfigurationStep" runat="server" Title="<%$ Resources:Text, DeploymentConfiguration %>">
                    <ContentTemplate>
                        <div class="WizardContent">
                            <div>
                                <fieldset class="DeploymentFieldset">
                                    <legend class="Deploymentlegend">
                                        <%= Resources.Text.DeploymentConfiguration%></legend>
                                    <table cellpadding="0" cellspacing="0" style="width: 100%;">
                                        <tr>
                                            <td>
                                                <div style="width: 100%;">
                                                    <fieldset style="margin-right: 5px;" class="DeploymentFieldset">
                                                        <legend class="Deploymentlegend">
                                                            <%= Resources.Text.UnityWeightSum%></legend>
                                                        <SA:RadioButton ID="RadioButtonEnforce" runat="server" GroupName="UnityWeightSum"
                                                            Checked="true" Text="Enforce" />
                                                        <SA:RadioButton ID="RadioButtonRelax" CssClass="RadioButtonImportContinue" runat="server"
                                                            GroupName="UnityWeightSum" Text="Relax" />
                                                    </fieldset>
                                                </div>
                                            </td>
                                            <td>
                                                <div style="width: 100%;">
                                                    <fieldset class="DeploymentFieldset">
                                                        <legend class="Deploymentlegend">
                                                            <%= Resources.Text.WeightOption%></legend>
                                                        <SA:RadioButton ID="RadioButtonModel" runat="server" GroupName="WeightOption" Checked="true"
                                                            Text="Model" />
                                                        <SA:RadioButton ID="RadioButtonCalculation" CssClass="RadioButtonImportContinue"
                                                            runat="server" GroupName="WeightOption" Text="Calculation" />
                                                    </fieldset>
                                                </div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">
                                                <div style="width: 100%;">
                                                    <fieldset class="DeploymentFieldset">
                                                        <legend class="Deploymentlegend">
                                                            <%= Resources.Text.DatabaseOptions%></legend>
                                                        <SA:CheckBox Checked="false" CssClass="DeploymentDatabaseOption" Text="<%$ Resources:Text, ClearActualValues %>"
                                                            ID="CheckBoxRunInBackground" runat="server" />
                                                        <SA:CheckBox Checked="false" CssClass="DeploymentDatabaseOption" Text="<%$ Resources:Text, ClearReferenceValues %>"
                                                            ID="CheckBox1" runat="server" />
                                                        <SA:CheckBox Checked="false" CssClass="DeploymentDatabaseOption" Text="<%$ Resources:Text, ClearInitiativesValues %>"
                                                            ID="CheckBox2" runat="server" />
                                                        <SA:CheckBox Checked="false" CssClass="DeploymentDatabaseOption" Text="<%$ Resources:Text, CleanDatabase %>"
                                                            ID="CheckBox3" runat="server" />
                                                    </fieldset>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </fieldset>
                            </div>
                            <div class="DeploymentFile">
                                <fieldset class="DeploymentFieldset">
                                    <legend class="Deploymentlegend">
                                        <%= Resources.Text.DeploymentFile%></legend>
                                    <table style="width: 100%; border-collapse: collapse;">
                                        <tr>
                                            <td>
                                                <SA:Label ID="Label1" runat="server" Text="<%$ Resources:Text, SelectMapFile %>"></SA:Label>
                                            </td>
                                            <td>
                                                <telerik:RadAsyncUpload Width="100%" runat="server" ID="DeploymentFileUpload" ControlObjectsVisibility="None"
                                                    OnFileUploaded="FileUploaded" InitialFileInputsCount="1" MaxFileInputsCount="1">
                                                    <%--                                                           <FileFilters>
                                                             <telerik:FileFilter Description="<%$ Resources:Text, SelectMapFile %>" Extensions="xmp"   />
                                                           </FileFilters> --%>
                                                </telerik:RadAsyncUpload>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <%= Resources.Text.DeploymentDate%>
                                            </td>
                                            <td>
                                                <telerik:RadDatePicker Width="100%" runat="server" ID="DeploymentDatePicker">
                                                </telerik:RadDatePicker>
                                            </td>
                                        </tr>
                                    </table>
                                </fieldset>
                            </div>
                        </div>
                    </ContentTemplate>
                </asp:TemplatedWizardStep>
                <asp:TemplatedWizardStep ID="DeploymentValidationStep" runat="server" Title="<%$ Resources:Text, DeploymentValidation %>">
                    <ContentTemplate>
                        <div style="height: 320px; overflow: auto;">
                            <telerik:RadGrid ID="DeploymentGrid" Skin="Office2007" runat="server" AutoGenerateColumns="False"
                                AllowSorting="True" PageSize="10" ShowStatusBar="True" CellSpacing="0" GridLines="Both"
                                AllowPaging="True" OnNeedDataSource="RadGrid_NeedDataSource">
                                <MasterTableView DataKeyNames="ObjectID" AutoGenerateColumns="false">
                                    <ItemStyle Wrap="false" />
                                    <Columns>
                                        <telerik:GridBoundColumn HeaderStyle-HorizontalAlign="Center" DataField="ObjectID"
                                            HeaderText="ID">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn HeaderStyle-HorizontalAlign="Center" DataField="ObjectType"
                                            HeaderText="Type">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn HeaderStyle-HorizontalAlign="Center" DataField="Name" HeaderText="Name">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn HeaderStyle-HorizontalAlign="Center" DataField="Attribute"
                                            HeaderText="Attribute">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn HeaderStyle-HorizontalAlign="Center" DataField="Error" HeaderText="Description">
                                        </telerik:GridBoundColumn>
                                        <%--                                                        <telerik:GridBoundColumn HeaderStyle-HorizontalAlign="Center" DataField="ProposedSolution"
                                                            HeaderText="Proposed Solution">
                                                        </telerik:GridBoundColumn>--%>
                                        <telerik:GridBoundColumn HeaderStyle-HorizontalAlign="Center" DataField="Severity"
                                            HeaderText="Severity">
                                        </telerik:GridBoundColumn>
                                    </Columns>
                                </MasterTableView>
                                <ClientSettings>
                                    <Resizing AllowColumnResize="True"></Resizing>
                                </ClientSettings>
                            </telerik:RadGrid>
                        </div>
                    </ContentTemplate>
                </asp:TemplatedWizardStep>
                <asp:TemplatedWizardStep ID="DeploymentExcutionStep" runat="server" Title="<%$ Resources:Text, DeploymentExecution %>">
                    <ContentTemplate>
                        <div style="font-size: 15px; font-weight: bold; height: 250px; border: 1px solid;
                            margin-top: 40px; margin-bottom: 10px;">
                            <SA:Panel runat="server" ID="ExecutionPanel">
                                <SA:Label ID="lblStatus" runat="server" />
                            </SA:Panel>
                        </div>
                    </ContentTemplate>
                </asp:TemplatedWizardStep>
            </WizardSteps>
        </asp:Wizard>
    </ContentTemplate>
</telerik:RadWindow>
Ahmed
Top achievements
Rank 1
 answered on 13 Sep 2011
1 answer
51 views
The title is pretty self explanatory. I need to change the columns that show in a grid inside a user control when a user changes tabs. Can someone help me please

Thanks,
Chuck
Dimitar Terziev
Telerik team
 answered on 13 Sep 2011
Narrow your results
Selected tags
Tags
+124 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?