Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
206 views

How can I hide the title bar of a radnotification window?

I've tried this way:

 

<telerik:RadNotification RenderMode="Lightweight" ID="RadNotification1" runat="server" EnableRoundedCorners="true" AutoCloseDelay="3500" Position="TopRight" OffsetX="-20" OffsetY="20" Opacity="95" ShowTitleMenu="false"  EnableShadow="true" Width="300" Height="100" VisibleTitlebar="false" ShowCloseButton="false">
</telerik:RadNotification>

 

But all my settings are ignored. Title is still visible. Close button either

I show it on postback:

 

RadNotification1.Text = "Il nuovo cliente รจ stato inserito.";
RadNotification1.ContentIcon = "info";
RadNotification1.Show();

 

Rumen
Telerik team
 answered on 18 Oct 2016
2 answers
312 views

Good day,

lately i have been battling with adding a label control inside a child tab so that i could display the challengers on after clicking on that tab

here is my code below...

private void LoadTournament(EventCollection eventCollection, RadTabStrip radTabStrip)
       {
           RadMultiPage Multiview = new RadMultiPage();
           Multiview.ID = "Multiview1";
          RadPageView PageView = new RadPageView();
           //Pageview.ID = "";
           //Pageview.ID ="";
 
          
           foreach (RadTab tb in radTabStrip.Tabs)
           {
               int iSportId = int.Parse(tb.Value);
               tb.ScrollChildren = true;
 
               foreach (var ev in eventCollection.Events)
               {
                   if (ev.SportID == iSportId)
                   {
                       // Create new to a RadTab.
                       RadTab tab = new RadTab();
                       tab.Value = ev.TournamentID.ToString();
                       tab.Text = ev.Tournament;
                   
                       tb.Tabs.Add(tab);
                       foreach (var item in ev.Challengers)
                       {
                           Label label = new Label();
                           label.Text = item.Name;
 
                           tb.PageViewID = "Page1";
                           tb.SelectedIndex = tab.Index;
 
                           radTabStrip.MultiPageID = "Multiview1";
                           //        RadPageView PageView = loadchallenger(eventCollection);
                           PageView.ID = "Page1";
                           PageView.Height = 500;
                           Multiview.PageViews.Add(PageView);
 
                       }
                     
                        
                       //foreach (var item in ev.Challengers )
                       //{
                       //    TextBoxTemplate template = new TextBoxTemplate();
                       //    Label label = new Label();
 
                       //    label.Text = item.Name;
                       //    Pageview.Controls.Add(label);
                          
                                                
                       //}
                      
                   }
               }
                
           }
       }

 

I would like to add labels inside a child tab please help anyone,

please below capture

 

Nencho
Telerik team
 answered on 18 Oct 2016
1 answer
146 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
255 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
115 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
126 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
126 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
156 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
47 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
102 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
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
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?