Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
136 views
1/. My DataBase SquetchUp , and Request:

I have those 2 table :
Table_EC:                                   Table_P:
+------+---------+------------------+       +---------+--------+--------+
| Name | IdValue | ManyOtherInfo... |       | IdValue | Value1 | Value4 |
+-----------------------------------+       +---------------------------+
| STR  |  INT    |     ManyTYPE     |       |  Int    |  Label | OrderBy|
+------+---------+------------------+       +---------+--------+--------+

In order to diplay in a cross table  I do this request:
SELECT  NAME , VALUE1
FROM Table_EC
  RIGHT JOIN Table_P
   ON Table_EC.VALUE1= Table_P.VALUE1
ORDER BY PAR_VALEUR4

2/. Telerik MarkUp 
My `RadPivotGrid` declaration:

<telerik:RadPivotGrid ID="RadPivotGrid1" runat="server" OnNeedDataSource="RPG_RECAP_NeedDataSource" >
<TotalsSettings RowGrandTotalsPosition="None" RowsSubTotalsPosition="None" />
<Fields>
    <telerik:PivotGridAggregateField GrandTotalAggregateFormatString="" CalculationExpression=""
        UniqueName="Statut" DataField="Value1" Aggregate="Count"  >
        <TotalFormat Level="0" Axis="Columns" TotalFunction="NoCalculation" SortOrder="Ascending" />              
    </telerik:PivotGridAggregateField>                       
    <telerik:PivotGridRowField UniqueName="RowCLI" DataField="Name" />
    <telerik:PivotGridColumnField UniqueName="ColumnStatut" DataField="Value1" />     
</Fields>
</telerik:RadPivotGrid>


3/. Current Result:

Current Result.
The expected result are the same but with out the (Blank) Row
**How do i achieve this ?**

Pierre
Top achievements
Rank 1
 answered on 18 Oct 2016
3 answers
246 views
When i click the button or try to post content In responsive view (mobile device views) We got "Invalid JSON primitive" error.
Vessy
Telerik team
 answered on 18 Oct 2016
3 answers
105 views

I have a grid with a single hierarchical child grid that the user may expand. I have the load mode set to "Client" and the edit mode set to "InPlace".

I want there to always be an insert row for the user to add new rows with if they wish. I have accomplished this with the master grid view (parent grid) with this function:

protected void radGrid1_PreRender(object sender, System.EventArgs e)
{
  if (!radGrid1.MasterTableView.IsItemInserted)
    radGrid1.MasterTableView.InsertItem();
}

 

This will cause there to always be an insert row.

However, with the child grid in client mode, there is no callback between expand and collapse for the child grids.

I've tried this with no success:

protected void radGrid1_PreRender(object sender, System.EventArgs e)
{
  if (!radGrid1.MasterTableView.IsItemInserted)
    radGrid1.MasterTableView.InsertItem();
  if (!rgPieces.MasterTableView.DetailTables[0].IsItemInserted)
    rgPieces.MasterTableView.DetailTables[0].InsertItem();
}

 

What am I supposed to do here?

Eyup
Telerik team
 answered on 18 Oct 2016
3 answers
120 views

Hello

I have a complex grid with a GridButtonColumn where I want to set some parameters in codebehind. I'm using RadGrid1_PreRender for this.

Strangely, it only works after I used the pager to change page and not on first load... 

What am I missing here? I also Page_Load, Page_PreRender, OnColumnCreated, still it just never works on first load and it's driving me insane :/

Thanks!!

protected void GridMaster_PreRender(object sender, EventArgs e)
        {         
                foreach (GridColumn col in GridMaster.MasterTableView.Columns)
                {
                    if (col.UniqueName == "DeleteEntryCommand")
                    {
                        var deleteColum = col as GridButtonColumn;
                        // deleteColum.ConfirmText = RessourceHelper.GetRessource(name: "KontraktLoeschenBestaetigen", kurzText: false, textIfEmpty: "Soll der Kontrakt wirklich gelöscht werden?", languageId: null);
                        deleteColum.ConfirmTitle = RessourceHelper.GetRessource(name: "KontraktLoeschenBestaetigenTitel", kurzText: false, textIfEmpty: "Kontrakt löschen", languageId: null);
                        deleteColum.ConfirmTextFormatString = RessourceHelper.GetRessource(name: "KontraktLoeschenBestaetigen", kurzText: false, textIfEmpty: "Soll der Kontrakt {0} wirklich gelöscht werden?", languageId: null);
                        deleteColum.ConfirmTextFields = new string[] { "Referenz" };
                    }
                }
        }

 

<telerik:GridButtonColumn
 UniqueName="DeleteEntryCommand"
 CommandName="Delete"
 ConfirmDialogType="RadWindow"
 ConfirmDialogWidth="300"
 ConfirmDialogHeight="150"
 Text=""
 ItemStyle-HorizontalAlign="Center"
 ItemStyle-CssClass="radGridDeleteColumn"
 ButtonCssClass="fa fa-trash-o fa-1x radGridDeleteButton">
 <HeaderStyle Width="40" />
</telerik:GridButtonColumn>

Eyup
Telerik team
 answered on 18 Oct 2016
2 answers
118 views

Hi all,

I have a RadGridView with BachEdit. I start editing when click on cell and save changes with a save button of radgrid.

I need 2 things and i cant reach how.

1º I need reject the edit mode of cell in some cells (Ex cell 2 column 3).

2º I need get whole information of cells/columns when i click Save changes.I think BachEdit mode are some different...

 

Thz for your time

Eyup
Telerik team
 answered on 18 Oct 2016
1 answer
151 views

Hi,

Can anybody help me to solve this issue?

I am using RadComboBox and have an issue about this control. I am creating RadComboBox on server side and keep this control as Html like in .png. Everthing works fine on this situation. But when I try to update items for adding or removing any item, rcbSlide in body not updated, thats why combox does not display updated items. How can sync both rcbSlide in body and radcombox div? I tried copy html from div to body but, it does not work. Also when I close and reopen project new items displayed in combo. It seems body cache the items but I can not find have can I refresh items?

Please look at attached screenshots, 

CreateRadComboBox.PNG for creating html for RadComboBox

rcbSlide_InDIV.PNG for displayed updated combo in UI

rcbSlide_InBody.PNG for html that stored in body.

 

 

Veselin Tsvetanov
Telerik team
 answered on 18 Oct 2016
0 answers
45 views

I have a button in which I don't want to use the alert box for a confirmation and I intend to use a jquery modal window for but I can't seem to get it to work. 

$('#grid').kendoGrid({
     ...
     editable: { confirmation:false, mode:'popup' } // this turns off the delete confirmation alert but allows popups
     ...
});

I've tried adding a click event inside the grid script and outside, but nothing is triggering the event.
As a test, I used the 'a' tag but nothing is working yet.
$('a').click(function(e){
        e.preventDefault();
        e.stopPropagation();
        var title = '<span class="warning">Warning</span>';
        $.get('/main/test'), function(data){
               test(data, modal.large, title);
        });
});

I'd use a custom kendotemplate but I am using a custom jquery modal instead and I can't seem to trigger it.

Keith
Top achievements
Rank 1
 asked on 17 Oct 2016
0 answers
95 views

I have a button in which I don't want to use the alert box for a confirmation and I intend to use a jquery modal window for but I can't seem to get it to work. 

$('#grid').kendoGrid({

     ...

     editable: { confirmation:false, mode:'popup' } // this turns off the delete confirmation alert but allows popups

     ...

});

I've tried adding a click event inside the grid script and outside, but nothing is triggering the event.

As a test, I used the 'a' tag but nothing is working yet.

$('a').click(function(e){

        e.preventDefault();
        e.stopPropagation();
        var title = '<span class="warning">Warning</span>';

        $.get('/main/test'), function(data){

               test(data, modal.large, title);

        });

});

I'd use a custom kendotemplate but I am using a custom jquery modal instead and I can't seem to trigger it.

Keith
Top achievements
Rank 1
 asked on 17 Oct 2016
5 answers
161 views

Hi,

First of all, I'm using the latest version of your Telerik.Web.UI.dll (2016.3.914.40). I'm trying to set RadDropDownTree HeaderTemplate dynamically as I did for RadComboBox. Here is my code :

 

<telerik:RadDropDownTree ID="RadDropDownTree" runat="server" EnableViewState="false" CheckBoxes="None"      OnNodeDataBound="RadDropDownTree_NodeDataBound" <br>    DataFieldID="ID" DataFieldParentID="ParentID" DataTextField="Text" DataValueField="Value"<br>    Width="100%" RenderMode="Lightweight" Visible="false" Skin="Metro"><br></telerik:RadDropDownTree>

Ivan Danchev
Telerik team
 answered on 17 Oct 2016
1 answer
457 views

I'm really struggling to work this out. My grid columns are currently:

 

columns.ForeignKey(c => c.CustomerId, (System.Collections.IEnumerable)ViewData["CustomersDropDown"], "Id", "Name").Title("Customer Name");
columns.Bound(c => c.Filename).Title("File"));
columns.Bound(c => c.Schema).Title("Schema"));//.EditorTemplateName("EnumDropDown");

 

The ForeignKey field displays fine and I'm happy with it. The "Schema" field (last line) is an enumerated type. Now the way this dropdown looks when the grid is in edit mode is vastly different to what the ForeignKey dropdown looks like. OK, so I just want to apply the same CSS in edit mode. However, I can't seem to find out how. I've tried adding a template which I don't think I got right (code below, or at least my last attempt at it) in order to add the CSS. It seems, from searching, that my only recourse is to take the enumerated type, turn it into a selectlist in the back end simply so I can use the ForeignKey property of Kendo UI instead of Bound. This seems a little long way to go simply to apply some CSS while in edit mode. The grid, functionally works fine otherwise.

 

My EnumDropDown as it stands now, though has gone through many previous edits in an effort to get it going. This current incarnation seems to format it, but displays no data.

 

@model Common.Schema
 
@(Html.Kendo().DropDownListFor(m => m)
    .BindTo(Enum.GetNames(typeof(Common.Schema)))
    .HtmlAttributes(new { style = "k-dropdown" })
)
Eyup
Telerik team
 answered on 17 Oct 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?