Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
194 views
How can I have all the navigation nodes be centered inside of a RadNavigation control that occupies 100% of the screen?  Right now all items are left aligned with a lot of extra gray space to the right.
Rumen
Telerik team
 answered on 31 Oct 2018
1 answer
550 views
I have to create a grid’s columns dynamically. I followed the following steps:
1 - Create the RadGrid .
2 – Select a table from the database that contains column’s names, types, ...
3 - Create for each column a gridBoundColumn.
4 - Select data corresponding to the selected columns and bind it to the grid.
It’s working fine. My question is : is there a better way to create a dynamic grid ?
Rumen
Telerik team
 answered on 31 Oct 2018
1 answer
192 views

Hi all,

I had same problems with delete command on hierarchical grid. I think the problem it's caused by different declaration between DataKeyNames in grid and DeleteParameters in SqlDataSource.

Here is my code

 <MasterTableView DataSourceID="SqlDataSource1" DataKeyNames="VersamentoId" AllowMultiColumnSorting="True"<br>                                        Width="100%" CommandItemDisplay="Top" Name="Versamenti" EditMode="Batch"><br>                                        <DetailTables><br>                                            <telerik:GridTableView DataKeyNames="VersamentoId,ConsumoID" DataSourceID="SqlDataSource2" Width="80%" AllowAutomaticDeletes="true" AllowFilteringByColumn="false" AllowAutomaticInserts="true" AllowAutomaticUpdates="true"<br>                                                runat="server" CommandItemDisplay="Bottom" Name="Consumi" BorderColor="Navy" BorderStyle="Solid" BorderWidth="2" EditMode="Batch"><br>                                                <ParentTableRelation><br>                                                    <telerik:GridRelationFields DetailKeyField="VersamentoId" MasterKeyField="VersamentoId"></telerik:GridRelationFields><br>                                                </ParentTableRelation>

.....

<p><asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:iRoncadin %>"<br>            DeleteCommand="[dbo].[mes_spDeleteConsumoDaProduzione]" DeleteCommandType="StoredProcedure"<br>            InsertCommand="RO_Portal_SP_InsertConsumoDaProduzione" InsertCommandType="StoredProcedure"<br>            SelectCommand="SELECT<br>                                   mwcpp.ID as ConsumoID<br>                                 , mwcpp.DocEntryOP<br>                                 , mwcpp.DocEntryFather<br>                                 , mwcpp.U_WordCode<br>                                 , mwcpp.U_OprCode<br>                                 , mwcpp.ItemCode<br>                                 , mwcpp.U_Revision<br>                                 , mwcpp.Quantity<br>                                 , mwcpp.Status<br>                                 , mwcpp.CreateDate<br>                                 , mwcpp.UpdateDate<br>                                 , mwcpp.DestDocEntry<br>                                 , mwcpp.DestLineNum<br>                                 , mwcpp.AlternativeCode<br>                                 , mwcpp.TipologiaId<br>                                 , mwcpp.VersamentoId<br>                            FROM dbo.MES_wsConsumoPerProduzione mwcpp where VersamentoId = @VersamentoId"<br>            UpdateCommand="UPDATE dbo.MES_wsConsumoPerProduzione<br>                            SET <br>                                DocEntryOP = @DocEntryOP<br>                                , DocEntryFather = @DocEntryFather<br>                                , U_WordCode = @U_WordCode<br>                                , U_OprCode = @U_OprCode<br>                                , ItemCode = @ItemCode<br>                                , Quantity = @Quantity<br>                                , AlternativeCode = @AlternativeCode<br>                            WHERE ID = @ConsumoID"<br>            ProviderName="<%$ ConnectionStrings:iRoncadin.ProviderName %>"><br>            <SelectParameters><br>                <asp:Parameter Name="VersamentoId" Type="Int32"></asp:Parameter><br>            </SelectParameters><br>            <DeleteParameters><br>                <asp:Parameter Name="ConsumoID" Type="Int32"></asp:Parameter><br>            </DeleteParameters></p><p></p>

The stored procedure called to delete the row of first child grid is this

[dbo].[mes_spDeleteConsumoDaProduzione]   @ID INT

 

but, as you can see, DataKeyNames in first child grid are VersamentoId,ConsumoID. This is done because VersamentoId is the correlation key with parent grid and ConsumoId is the correlation key with another child grid.

When I try to delete a row of first child grid, system return the following error

Procedure or function mes_spDeleteConsumoDaProduzione has too many arguments specified.

 

Anyone knows a solution to bring together hierarchical grids and delete of child rows?

Thanks a lot

Rumen
Telerik team
 answered on 31 Oct 2018
1 answer
224 views

Hello,

 

I have successfully implemented a custom provider for RadSpreadsheet following the example here: http://www.telerik.com/support/code-library/spreadsheetdatabaseprovider.

 

I would like to be able to update a RadLabel on the same webform with some data derived from the saved sheet (for example, the count of rows). I have passed a reference to the RadLabel into the constructor of the custom provider and am setting it there:

 

    public class PerformanceSheetProvider : SpreadsheetProviderBase
    {
        private readonly RadLabel _resultLabel;
 
        public PerformanceSheetProvider(RadLabel resultLabel)
        {
            _resultLabel = resultLabel;
        }
 
        public override void SaveWorkbook(Workbook workbook)
        {
            _resultLabel.Text = workbook.Sheets[0].Rows.Count.ToString();
        }
 
...

 

However, the RadLabel value is not updated. I have also tried refreshing the update panel in which the label is contained in the client-side override of _onCallbackResponse:

Telerik.Web.UI.RadSpreadsheet.prototype._onCallbackResponse = function () {
    $find("<%= RadAjaxPanel2.ClientID %>").ajaxRequest();
}

 

...but the label is still not updated.

 

Any suggestions?

 

Thanks!

Peter Milchev
Telerik team
 answered on 31 Oct 2018
3 answers
341 views

I am getting the following error when I try and copy and paste into Editor. I am using 2018.3.910

 

Uncaught TypeError: Cannot read property 'cleanUp' of undefined
    at c.RadEditor._cleanUpAfterDelete (telerik.web.ui.webresource.axd?_TSM_HiddenField_=RadScriptManager2_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3ac7c66246-7597-47ee-87ae-ac254004a457%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2018.3.910.45%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3af82d27b2-2e24-4637-ab87-c64fb8588ccb%3a16e4e7cd%3af7645509%3a24ee1bba%3ab2e06756%3a874f8ea2%3a63b115ed%3a1569bb5f%3a4877f69a%3ac128760b%3a92fe8ea0%3afa31b949%3a3856fd9f%3a33715776%3adc7e0bd%3a30f1f089%3a19620875%3af46195d3%3a490a9d4e:14741)
    at c.RadEditor._onKeyUp (telerik.web.ui.webresource.axd?_TSM_HiddenField_=RadScriptManager2_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3ac7c66246-7597-47ee-87ae-ac254004a457%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2018.3.910.45%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3af82d27b2-2e24-4637-ab87-c64fb8588ccb%3a16e4e7cd%3af7645509%3a24ee1bba%3ab2e06756%3a874f8ea2%3a63b115ed%3a1569bb5f%3a4877f69a%3ac128760b%3a92fe8ea0%3afa31b949%3a3856fd9f%3a33715776%3adc7e0bd%3a30f1f089%3a19620875%3af46195d3%3a490a9d4e:14889)
    at HTMLDivElement.<anonymous> (telerik.web.ui.webresource.axd?_TSM_HiddenField_=RadScriptManager2_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3ac7c66246-7597-47ee-87ae-ac254004a457%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2018.3.910.45%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3af82d27b2-2e24-4637-ab87-c64fb8588ccb%3a16e4e7cd%3af7645509%3a24ee1bba%3ab2e06756%3a874f8ea2%3a63b115ed%3a1569bb5f%3a4877f69a%3ac128760b%3a92fe8ea0%3afa31b949%3a3856fd9f%3a33715776%3adc7e0bd%3a30f1f089%3a19620875%3af46195d3%3a490a9d4e:6)

Rumen
Telerik team
 answered on 30 Oct 2018
1 answer
280 views

I'm using the advanced data binding technique from https://demos.telerik.com/aspnet-ajax/grid/examples/data-binding/simple-vs-advanced/defaultvb.aspx .  However, I need to use GridTemplateColumns to format some of the columns ( <%#String.Format("{0} - {1}", Eval("user"), Eval("name")) %> ) and because I'm using these, nothing comes up.  Is there a way to do this?  If not, is there a better solution?  I did copy the example exactly, but used my datatable instead and it came up, but gave me every single column.  I know I can remove columns, but this doesn't allow me to format columns like I do with GridTemplateColumns.

Attila Antal
Telerik team
 answered on 30 Oct 2018
3 answers
297 views

It seems some heatmap support exist for WPF.

Is anything available for us?

 

Rumen
Telerik team
 answered on 30 Oct 2018
9 answers
1.4K+ views
Hi!

We have a site using a lot of rad controls. The site runs as a Sharepoint application page on a MOSS server.
When we access the site we can see that the following URL is requested and gets a 403 Forbidden:
http://domainname/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=uiRadScriptManager_HiddenField&compress=0&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a8ac4a3ed-a467-4f19-a8ed-9270f6e4c6d6%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.2.701.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a7e598a31-3beb-49a1-914c-5f530240f0ea%3a16e4e7cd%3af7645509%3a24ee1bba%3a1e771326%3aaa288e2d%3ae524c98b

When I try to load the above URL in a browser I get the following message:

<html>
    <head>
        <title>This type of page is not served.</title>
    </head>

    <body bgcolor="white">

            <span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1>

            <h2> <i>This type of page is not served.</i> </h2></span>

            <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">

            <b> Description: </b>The type of page you have requested is not served because it has been explicitly forbidden. &nbsp;The extension '.axd' may be incorrect. &nbsp;&nbsp;Please review the URL below and make sure that it is spelled correctly.
            <br><br>

            <b> Requested URL: </b>/Telerik.Web.UI.WebResource.axd<br><br>

            <hr width=100% size=1 color=silver>

            <b>Version Information:</b>&nbsp;Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

            </font>

    </body>
</html>
<!--
[UnauthorizedAccessException]: Access to the path 'D:\Inetpub\virtualservers\fasttest\bin\Telerik.Web.UI.DLL' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.File.GetLastWriteTimeUtc(String path)
   at Telerik.Web.UI.CombinedScriptWriter.ScriptAssemblyInfo.get_ModifiedTime()
   at Telerik.Web.UI.CombinedScriptWriter.GetLastAssemblyModificationTime()
   at Telerik.Web.UI.CombinedScriptWriter.WriteCombinedScriptFile()
   at Telerik.Web.UI.WebResource.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
--><!--


We tried to give Everyone read access to the bin folder containing the telerik dll. This did not solve the problem.
We tried to give Everyone read access to the root of the web application. This solved the problem. (But not the best solution).

When the site is accessed by a user who is a member of the administrator group of the web server the problem disappears as well.

The rest of the site looks fine. The other dll's executes fine. The page looks fine. You notice the error as soon as the telerik controls needs their javascript.

Any ideas?

/Nikolaj
Marin Bratanov
Telerik team
 answered on 29 Oct 2018
0 answers
288 views

Firefox 63 introduces a change that affects the checkbox and radio buttons styled by RadFormDecorator in Classic rendering. We are working on resolving the problem, meanwhile you can workaround it in one of the ways provided in the bug's public item:

https://feedback.telerik.com/Project/108/Feedback/Details/258566

Telerik Admin
Top achievements
Rank 1
Iron
 asked on 29 Oct 2018
3 answers
111 views

I have a RadDiagram that changes colours of its nodes based on selections and settings in a RadGrid.

The RadGrid "updates" the diagram by writing a JSON to a textbox that the diagram reads. 

My question is how to get the RadDiagram to refresh to reflect the updated colours without refreshing the entire page.

Vessy
Telerik team
 answered on 29 Oct 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?