Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
98 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
475 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
211 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
70 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
2 answers
206 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">
</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
90 views
hello,

i donwload the sample project 234043_customadvformandprovider.zip but when you try to set update this project to the new model of custom provider an error says that you must override GetReources when really i done, probably some javascript/or so much have to be changed. My method:

public override IDictionary<ResourceType, IEnumerable<Resource>> GetResources(ISchedulerInfo schedulerInfo)
{
    IDictionary<ResourceType, IEnumerable<Resource>> recursos =
            new Dictionary<ResourceType, IEnumerable<Resource>>();
 
    recursos.Add(new ResourceType("Teacher", true), Teachers.Values);
    recursos.Add(new ResourceType("Student", true), Students.Values);
 
 
    return recursos;
}

Also i comment GetrourcesByType and GetResourcesType and also the Insert update,etc to IschedulerInfo.

Thanks

Peter
Telerik team
 answered on 13 Sep 2011
10 answers
351 views
I'm using Q2 2010.

In a grid with client-side row selection enabled by setting the clientsettings-selecting-allowrowselect property to true and adding a gridclientselectcolumn, the row selection is not working .
The style is not applied to the selected rows, on the server-side i can't see any rows as selected, and when checking the header checkbox that selects all rows, i get a javascript error 'Uncaught TypeError: Cannot call method '_selectAllRows' of null'.

The grid is inside a RadPageView, and the radmultipage is ajaxified using a RadAjaxManager. This is all placed in a .ascx file which is placed inside a sitefinity page. The master page references jquery 1.4.1, and has a RadScriptManager.

Another error i'm getting, which i don't know if is connected to this, is that each time an AJAX call is started, a resource fails to load (the url of the resource is [url of webpage]?rnd=[a date]. It might count that i'm using a custom skin built with the Visual StyleBuilder.

Any ideas about this particular problem?

Update:

I've managed to localize the problem some more. The problem is that the $find method called by the checkbox to return the grid returns null.
Now, the grid is on the third page of the RadMultiPage. I pass from one page to the other by AJAX calls, using a RadAjaxManager and a RadAjaxLoadingPanel. If i call the $find method the first time the page is loaded, it returns the right DOM object. However, if i call the same method with the same parameter (the id of the grid) after an AJAX call that updates the RadMultiPage, the $find method returns null. Note that this was working when i was using a .aspx page to hold all the content, but i wanted to add it to a Sitefinity page so i had to use a .ascx file.

Thanks

Veli
Telerik team
 answered on 13 Sep 2011
1 answer
145 views
Noticed a bug in our software, but then was able to recreate it on the telerik demos... any assistance you can give in trying to repair this would be appreciated.. Please see the following link for a better understanding of what i'm talking about.

http://www.youtube.com/watch?v=pTWHAxaFfvI

Niko
Telerik team
 answered on 13 Sep 2011
1 answer
195 views
I have a RadGrid with a NestedViewTemplate that has another RadGrid in a RadPageView, when I update the RadGrid in the RadPageView I need to rebind the Parent Grid and keep the Parent RadGrid item expanded and RadPageView displayed.

Any suggestions?
Shinu
Top achievements
Rank 2
 answered on 13 Sep 2011
1 answer
319 views

Hi:
  I have a RadListView with some items. When one of the item is clicked a tooltip will appear corresponding to the item's position with detail info from an usercontrol (the tooltip's content is an usercontrol). This requires setting the "TargetControlID" when the listview item is clicked. Because the listview item is in a template, to distinquish each item when many items show at the same time can be done by including the item inside a div html element. And the selected item div can be obtained by onmouseDown event target. Since the content of tooltip is an usercontrol, and is a update target of ajaxmanager triggered by listview, I have to load it from server side. It ends up with setting TargetControlID on client side with set_targetControlID and show Tooltip on server side as demonstrated in the attached program fragment. I checked value of TargetControlID from client side in debug, value set accordingly, but tooltip displayed in wrong position. I checked  TargetControlID from server side right before SHOW(), found out the value has not changed. I made sure set_targetControlID() happend before SHOW(). I even try to use set_title("test title") just for testing purpose, not thing happened on the server side. Some one please help. Thanks.
This is the RadToolTip declaration:  
              <telerik:RadToolTip ID="RadToolTip1" runat="server" Animation="FlyIn"
                EnableShadow="True" HideEvent="ManualClose"
                ManualCloseButtonText="关闭" ShowEvent="FromCode" Width="268px" IsClientID="True">
                <asp:PlaceHolder ID="PlaceHolder1" runat="server" />
                <br />
            </telerik:RadToolTip>

This is the client script:

        function SetTooltipControlID() {
            var radToolTip = $find("<%= RadToolTip1.ClientID %>");
            radToolTip.set_targetControlID("");
            radToolTip.set_targetControlID(curItem.id);
            radToolTip.set_title("this is a title");   //for testing purpose
        }

This is the server code:

        protected void lvwItemPictures_SelectedIndexChanged(object sender, EventArgs e)
        {
            string item = lvwItemPictures.SelectedItems[0].GetDataKeyValue("PLUCODE").ToString();
            string title = lvwItemPictures.SelectedItems[0].GetDataKeyValue("TITLE").ToString();
            CurrentItemCode = item;
            this.RadToolTip1.Show();   // checked RadToolTip1 properties here. Any change made in client code is not reflected.
            LoadUserControl(PlaceHolder1, CurrentControl, true);
 

        }

 

Marin Bratanov
Telerik team
 answered on 13 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?