Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
101 views

When i check nodes in a tree (by mouse) selected values appended in title. Which is good.

However, on server side node is getting checked, but title stays empty.

Here is my code:

  rddtRegion.DataSource = dtContractCounties
  rddtRegion.DataBind()

  For Each dr As DataRow In dtSelectedCounties.Rows
                Dim nodeValue As String = dr("CountyID")
                Dim node_region As RadTreeNode = rddtRegion.EmbeddedTree.FindNodeByValue(nodeValue)
                node_region.Checked = True
  Next

Please advice

David
Top achievements
Rank 1
Iron
Iron
Veteran
 asked on 01 Nov 2018
9 answers
312 views
Hi, 
 
Is it possible to send insert command in hierarchical grid using a java script? 
I need to pass argument from client side and also refresh the selected parent/child grid.

Some thing like the delete command :
NGgridTableView.deleteItem(NGgriditemIndexHierarchical);

This is the kind of grid i  am  referring to  and i am binding the grid with data table 'On-Need-DataSource' event.
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/threelevel/defaultcs.aspx

I would really appreciate any suggestions.

Thanks
Meera
Eyup
Telerik team
 answered on 01 Nov 2018
1 answer
179 views

https://demos.telerik.com/aspnet-ajax/button/examples/css3buttons/defaultcs.aspx?skin=Bootstrap

The issue is visible within the above demo. I attached a screenshot comparing Sunset theme (Focus does work on this theme) to Bootstrap.

Is there a workaround for this?

Vessy
Telerik team
 answered on 01 Nov 2018
1 answer
97 views

Hi Team,

 

I am working on something where the page will render only on activeon RadWizard.

But in this case my Update panel doesnt work as expected.

eg: On selection of a dropdown,depending on yes or no ;some other control will be visible which is called through teleik ajax request. but this is not working.

If you can help on this.

 

Many thanks.

Vessy
Telerik team
 answered on 01 Nov 2018
3 answers
212 views
If you can help with below scenario : I have a radwizard and there 7 wizard steps.And every wizard steps belongs to different user control . And Each User control has its own telerik:AjaxUpdatedControl to work with ajaxRequest . It works fine with all its Ajax request when RenderedSteps="All" .But Ajax request doesnt work when RenderedSteps="Active".It will be great if you can help with this.
Thanks
Vessy
Telerik team
 answered on 01 Nov 2018
5 answers
107 views

I've selected a single word from the content which is copied in the RADEditor and did the following actions.

1) Apply "Underline" option to the word which I selected 

2) Placed the cursor on the last letter of the word (which selected on above step) and pressed the enter key two times. It's giving us two empty row.

3) Select "Preview" button in the RADEditor.

Now, I see that one underline '-' is being displayed in the empty row.  

If I follow the above step in MS-Word, no underline has coming after you press the enter button. Why it's showing in RADEditor?

Note: In RADEditor, If I press the enter button on the space which is next to the word which I selected, no underline '-'. is coming on the empty row..

 

 

 

Rumen
Telerik team
 answered on 01 Nov 2018
1 answer
152 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
507 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
150 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
180 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
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
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?