Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
172 views
Hi,
   In code behind i gave custom skin for grid with following properties Skin ="MaterialGrid" EnableEmbeddedSkins="false" RenderMode="Lightweight", but how to give if grid is created on server side ? 
I am created grid in server side like 
 Dim grid As New RadGrid
        grid.ID = "ListReportGrid"
        ' grid.RenderMode = RenderMode.Lightweight
        grid.AutoGenerateColumns = False
        grid.EnableViewState = False

        'grid.MasterTableView.CommandItemDisplay = GridCommandItemDisplay.Top
        'grid.MasterTableView.CommandItemSettings.ShowPrintButton = True
        'grid.MasterTableView.CommandItemSettings.ShowExportToPdfButton = True
        'grid.MasterTableView.CommandItemSettings.ShowExportToCsvButton = True
        'grid.MasterTableView.CommandItemSettings.ShowExportToExcelButton = True
        'grid.MasterTableView.CommandItemSettings.ShowExportToWordButton = True
        'grid.MasterTableView.CommandItemSettings.ShowRefreshButton = False
        'grid.MasterTableView.CommandItemSettings.ShowAddNewRecordButton = False
        'grid.EnableEmbeddedSkins = False
        'grid.RenderMode = RenderMode.Lightweight
        'grid.Skin =


        grid.AllowSorting = True
        grid.ClientSettings.Scrolling.AllowScroll = True
        grid.ClientSettings.Scrolling.UseStaticHeaders = True
        grid.ClientSettings.Scrolling.SaveScrollPosition = True


        'paging and virtualizaton

        grid.ClientSettings.Virtualization.EnableVirtualization = True
        grid.ClientSettings.Virtualization.InitiallyCachedItemsCount = 2000
        grid.ClientSettings.Virtualization.ItemsPerView = 100
        grid.PagerStyle.Mode = GridPagerMode.NextPrevNumericAndAdvanced

        grid.AllowPaging = True
        grid.PageSize = 1000

        grid.MasterTableView.TableLayout = GridTableLayout.Fixed
        grid.MasterTableView.PagerStyle.Visible = False

So in this how to skin as MaterialGrid ?

Thanks
M Kumar
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 03 Feb 2020
1 answer
164 views

Hi,

 

I have a grid where I defined 2 columns with custom commands. When I click those columns, the code runs at "....ItemCommand", BUT an automatic databind is somehow called (the database is called) and the grid is refreshed with data from the database.

My questions: is this the normal behavior? if yes, how can I prevent this?

 

<telerik:RadGrid ID="gvProgramareExamene" runat="server" DataSourceID="SqlDataSource1" OnItemDataBound="gvProgramareExamene_ItemDataBound" OnItemCommand="gvProgramareExamene_ItemCommand" AutoGenerateColumns="False" RenderMode="Lightweight">
                <groupingsettings collapsealltooltip="Collapse all groups"></groupingsettings>
                <exportsettings>
                    <pdf pagewidth="">
                    </pdf>
                </exportsettings>
                <mastertableview datakeynames="ID_AnUniv, ID_SesiuneExamene, ID_SesiuneExameneSpecializare,ID_DetaliuPlanSemestru,ID_DetaliuPlanSemestruStudent,ID_Specializare,ID_AnStud,ID_ProfesorTitularCurs,ID_ProgramareExamen,ID_Grupe,NoteFinalizate,NoteSalvate" clientdatakeynames="ID_AnUniv, ID_SesiuneExamene, ID_SesiuneExameneSpecializare,ID_DetaliuPlanSemestru,ID_Specializare,ID_AnStud,ID_ProfesorTitularCurs,ID_ProgramareExamen,ID_Grupe,ID_Materie,NoteFinalizate,NoteSalvate" datasourceid="SqlDataSource1" enablelinqgrouping="False" showfooter="True">
                    <rowindicatorcolumn visible="False">
                    </rowindicatorcolumn>
                    <expandcollapsecolumn created="True">
                    </expandcollapsecolumn>
                    <Columns>
                        <telerik:GridBoundColumn DataField="Denumire" FilterControlAltText="Filter Denumire column" HeaderText="Denumire" ReadOnly="True" SortExpression="Denumire" UniqueName="Denumire">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="NumarSemestruDinAn" DataType="System.Int32" FilterControlAltText="Filter NumarSemestruDinAn column" HeaderText="Semestrul" SortExpression="NumarSemestruDinAn" UniqueName="NumarSemestruDinAn">
                        </telerik:GridBoundColumn>

                        <telerik:GridTemplateColumn DataField="Data" DataType="System.DateTime" FilterControlAltText="Filter DataInceputPeSpec column" HeaderText="Data" SortExpression="Data" UniqueName="Data">
                            <ItemTemplate>
                                <asp:Label ID="lblNumeIntreg" runat="server" Text='<%# Bind("NumeIntreg") %>'></asp:Label>
                                
                                <telerik:RadCheckBox ID="chkInlocuire" runat="server" Text="Inlocuire" CommandName="Inlocuire" OnCheckedChanged="chkInlocuire_CheckedChanged">
                                </telerik:RadCheckBox>

                                <telerik:RadComboBox RenderMode="Lightweight" runat="server" visible="false" ID="RadComboBox1" EnableLoadOnDemand="True" DataTextField="NumeIntreg2"
                                    OnItemsRequested="RadComboBox1_ItemsRequested" DataValueField="ID_Profesor"
                                    HighlightTemplatedItems="true" Height="140px" Width="220px" DropDownWidth="420px"
                                    OnSelectedIndexChanged="OnSelectedIndexChangedHandler">
                                    <ItemTemplate>
                                                <%# DataBinder.Eval(Container, "Attributes['NumeIntreg']")%> -- / --
                                                <%# DataBinder.Eval(Container, "Attributes['DenumireCatedra']")%>
                                    </ItemTemplate>
                                </telerik:RadComboBox>

                            </ItemTemplate>
                        </telerik:GridTemplateColumn>

                        <telerik:GridBoundColumn DataField="ID_ProfesorTitularCurs" DataType="System.Int64" FilterControlAltText="Filter ID_ProfesorTitularCurs column" HeaderText="ID_ProfesorTitularCurs" SortExpression="ID_ProfesorTitularCurs" UniqueName="ID_ProfesorTitularCurs" visible="false">
                        </telerik:GridBoundColumn>

                        <telerik:GridTemplateColumn DataField="Data" DataType="System.DateTime" FilterControlAltText="Filter DataInceputPeSpec column" HeaderText="Data" SortExpression="Data" UniqueName="Data">
                            <ItemTemplate>
                                <telerik:RadDatetimePicker RenderMode="Lightweight" ID="rdpData" CssClass="toDate" runat="server" MinDate="2020-01-01" DbSelectedDate='<%# Bind("Data") %>' Culture="ro-RO"  width="180px" FocusedDate="2020-01-01">
                                    <timeview cellspacing="-1" culture="ro-RO" endtime="21:00:00" headertext="Ora" rendermode="Lightweight" starttime="07:00:00">
                                    </timeview>
                                    <ClientEvents OnDateSelected="OnDateSelected"></ClientEvents>
                                </telerik:RadDatetimePicker>
                                <asp:Label ID="lblAtentie" runat="server" Text=" "></asp:Label>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn DataField="Sala" FilterControlAltText="Filter Sala column" HeaderText="Sala" SortExpression="Sala" UniqueName="Sala">
                            <ItemTemplate>
                                <asp:TextBox ID="txtSala" runat="server" Text='<%# Bind("Sala") %>'></asp:TextBox>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn DataField="ID_TipExaminare" DataType="System.Int32" HeaderText="Tip Examinare" SortExpression="ID_TipExaminare" UniqueName="ID_TipExaminare">
                            <ItemTemplate>
                                <asp:DropDownList ID="ddTipExaminare" runat="server" SelectedValue='<%# Eval("ID_TipExaminare") %>'>
                                    <asp:ListItem Text="Scris" Value="1"></asp:ListItem>
                                    <asp:ListItem Text="Oral" Value="2"></asp:ListItem>
                                    <asp:ListItem Text="Practic" Value="3"></asp:ListItem>
                                </asp:DropDownList>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>

                        <telerik:GridTemplateColumn>
                            <ItemTemplate>
                                <telerik:radButton id="btnFinalizareFalse" runat="server" CommandName="FinalizareFalse" Text="Sterge Finalizare" UniqueName="FinalizareFalse" Resizable="false" OnClientClicking="onClientFinalizareFalse">
                                </telerik:radButton>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>

                        <telerik:GridTemplateColumn>
                            <ItemTemplate>
                                <telerik:radbutton id="btnDeleteColumn" runat="server" CommandName="Delete" Text="Sterge" UniqueName="DeleteColumn" Resizable="false" ConfirmText="Sterge programare?" OnClientClicking="onClientStergeProgramare">
                                </telerik:radbutton>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>

                    </Columns>
                    <groupbyexpressions>
                        <telerik:GridGroupByExpression>
                            <selectfields>
                                <telerik:GridGroupByField FieldAlias="DenumireCicluInv" FieldName="DenumireCicluInv" FormatString="" HeaderText="" />
                            </selectfields>
                            <groupbyfields>
                                <telerik:GridGroupByField FieldAlias="DenumireCicluInv" FieldName="DenumireCicluInv" FormatString="" HeaderText="" />
                            </groupbyfields>
                        </telerik:GridGroupByExpression>
                        <telerik:GridGroupByExpression>
                            <selectfields>
                                <telerik:GridGroupByField FieldAlias="DenumireFormaInv" FieldName="DenumireFormaInv" FormatString="" HeaderText="" />
                            </selectfields>
                            <groupbyfields>
                                <telerik:GridGroupByField FieldAlias="DenumireFormaInv" FieldName="DenumireFormaInv" FormatString="" HeaderText="" />
                            </groupbyfields>
                        </telerik:GridGroupByExpression>
                        <telerik:GridGroupByExpression>
                            <selectfields>
                                <telerik:GridGroupByField FieldAlias="DenumireSpecializare" FieldName="DenumireSpecializare" FormatString="" HeaderText="" />
                            </selectfields>
                            <groupbyfields>
                                <telerik:GridGroupByField FieldAlias="DenumireSpecializare" FieldName="DenumireSpecializare" FormatString="" HeaderText="" />
                            </groupbyfields>
                        </telerik:GridGroupByExpression>
                        <telerik:GridGroupByExpression>
                            <selectfields>
                                <telerik:GridGroupByField FieldAlias="DenumireAnStudiu" FieldName="DenumireAnStudiu" FormatString="" HeaderText="" />
                            </selectfields>
                            <groupbyfields>
                                <telerik:GridGroupByField FieldAlias="DenumireAnStudiu" FieldName="DenumireAnStudiu" FormatString="" HeaderText="" />
                            </groupbyfields>
                        </telerik:GridGroupByExpression>
                        <telerik:GridGroupByExpression>
                            <selectfields>
                                <telerik:GridGroupByField FieldAlias="DenumireGrupa" FieldName="DenumireGrupa" FormatString="" HeaderText="" />
                            </selectfields>
                            <groupbyfields>
                                <telerik:GridGroupByField FieldAlias="DenumireGrupa" FieldName="DenumireGrupa" FormatString="" HeaderText="" />
                            </groupbyfields>
                        </telerik:GridGroupByExpression>
                    </groupbyexpressions>
                </mastertableview>
            </telerik:RadGrid>

<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="xxxxxxxxxx" SelectCommand="PE.ProgramareExamenlListBySpecializareSesiuneExamene" SelectCommandType="StoredProcedure"  OnSelecting="SqlDataSource1_Selecting">
    <SelectParameters>
        <asp:Parameter Name="ID_AnUniv" Type="Int64" />
        <asp:Parameter Name="ID_Facultate" Type="Int64" />
        <asp:Parameter Name="ID_Specializare" Type="Int64" DefaultValue="-1" />
        <asp:Parameter Name="ID_AnStudiu" Type="Int64" DefaultValue="-1" />
        <asp:QueryStringParameter Name="ID_SesiuneExameneSpecializare" QueryStringField="ID_SesiuneExameneSpecializare" Type="Int64" DefaultValue="-1" />
    </SelectParameters>
</asp:SqlDataSource>

 

protected void gvProgramareExamene_ItemCommand(object sender, GridCommandEventArgs e)
        {
            GridDataItem item = e.Item as GridDataItem;

            // using DataKey
            object objID_ProgramareExamen = item.GetDataKeyValue("ID_ProgramareExamen");

            long ID_ProgramareExamen = objID_ProgramareExamen == DBNull.Value ? -1 : Convert.ToInt64(objID_ProgramareExamen);


            if (e.CommandName == "FinalizareFalse")
            {
                new ProgramareExamenProfesorController().ProgramareExamenUpdateNoteFinalizate(ID_ProgramareExamen, false);
            }
            else if (e.CommandName == "Delete")
            {
                if (ID_ProgramareExamen != -1)
                {
                    new ProgramareExamenProfesorController().ProgramareExamenDelete(ID_ProgramareExamen);
                }
            }

}

Cata
Top achievements
Rank 1
 answered on 02 Feb 2020
2 answers
224 views

Trying to sample filtering in this demo and it's not working. 

UI for ASP.NET AJAX 

Spreadsheet

Filter and Sort

Click on top of column "ID" and then click on Filter, select to filter contains "21"....nothing happens.

Same thing basically with Sort range A to Z or Z to A

 

 

Darlene
Top achievements
Rank 1
 answered on 31 Jan 2020
2 answers
236 views

Hello,
When a child's task start/stop date is changed, parent task is changed as well.
I need to disable this behavior. I want a parent task start/stop date to be changed only directly.
I tried this:

protected void RadGantt1_TaskUpdate(object sender, Telerik.Web.UI.Gantt.TaskEventArgs e)
{  
  while (((List<Telerik.Web.UI.Gantt.ITask>)e.Tasks).Count>1)
  {
    ((List<Telerik.Web.UI.Gantt.ITask>)e.Tasks).RemoveAt(0);
  }
}

 

This works, but for all changes. So when % of completed is changed on a child, this is not changed on the parent task.
I need to know, what is the change when TaskUpdate is triggered on the server. 
Or another solution.
Thank you.

Igor
Top achievements
Rank 1
 answered on 31 Jan 2020
2 answers
192 views

I created a page with the RadAsyncUpload control and it looks like this:

 

My aspx code is this:

<%@ Page Title="Telerik Upload" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="TelerikUpload.aspx.cs" Inherits="ImportMPV2_WebTest.TelerikUpload" %>
 
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
 
<asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
    <Scripts>
        <asp:ScriptReference Path="Scripts/PageScripts/TelerikUpload_aspx.js"></asp:ScriptReference>
    </Scripts>
</asp:ScriptManagerProxy>
 
<div style="margin:20px">
    File:
    <telerik:RadAsyncUpload
        AllowedFileExtensions="xlsx"
        EnableInlineProgress="true"
        HttpHandlerUrl="~/UploadHandler.ashx"
        ID="RadAsyncUpload1"
        MaxFileInputsCount="1"
        MultipleFileSelection="Disabled"
        OnClientFileSelected="OnClientFileSelected"
        OnClientFileUploaded="OnClientFileUploaded"
        OnFileUploaded="RadAsyncUpload1_FileUploaded"
        runat="server">
        <FileFilters>
            <telerik:FileFilter Description="Excel Files(xlsx)" Extensions="xlsx" />
        </FileFilters>
    </telerik:RadAsyncUpload>
</div>
 
<div style="margin:20px">
    Sheet:
    <telerik:RadComboBox ID="SheetCb" name="SheetCb" runat="server" OnClientLoad="sheetCbLoad">
    </telerik:RadComboBox>
</div>
 
<div style="margin:20px">
    <telerik:RadButton AutoPostBack="true" runat="server" Text="Import">
    </telerik:RadButton>
</div>
 
 
<div style="margin:20px">
    <pre>
    <asp:label id="lblUploadResults" runat="server"></asp:label>
    </pre>
</div>
 
<div style="margin:20px">
    <pre>
    <asp:label id="lblSSISResults" runat="server"></asp:label>
    </pre>
</div>
 
</asp:Content>

 

Can anyone tell me how to fix the button?

 

Rumen
Telerik team
 answered on 31 Jan 2020
1 answer
148 views

In RadGrid1_InfrastructureExporting function , I m not able to apply styling on partial text of  a particular cell.

Ex - if cell[1,1] = hello world. How to make "hello" as bold.

Vessy
Telerik team
 answered on 31 Jan 2020
1 answer
201 views
How to send data to database using checkbox in radgrid while the submit button is in the other form or page
Eyup
Telerik team
 answered on 31 Jan 2020
1 answer
699 views

I currently have a RadGrid (MainGrid) that contains a Template Column. This Template Column itself contains a separate RadGrid (SubGrid).

 

The MainGrid has an EditFormTemplate in which I have an ASP.NET PlaceHolder. During MainGrid's ItemCreated event, I check to make sure the Item is in EditMode, instantiate a new RadGrid, and make this new RadGrid equal to the SubGrid (SubGridEdit). During runtime, SubGridEdit displays perfectly fine with all of the correct columns and data, but any attempt during the MainGrid's ItemCommand or UpdateCommand events to access the data rows fails. Everything appears to be fine, but the application is reporting that SubGridEdit has 0 items in its collection. 

 

During MainGrid's ItemCreated event, I have verified that SubGridEdit (a copy of SubGrid that is added to my Placeholder) contains Items in its collection, but once the application moves to the UpdateCommand or ItemCommand events for MainGrid, I'm lost. I'm able to access SubGridEdit by using the FindControl method of the GridEditableItem/GridDataItem, but it's reporting no Items in its collection despite them clearly being displayed.

 

 

In essence, SubGrid contains data that is tied to each record in MainGrid. Editing MainGrid involves also editing SubGrid. In this case, SubGrid contains a few checkboxes that the user should be able to mark or unmark while editing MainGrid. In order to do so, though, I need to be able to access the controls of the RadGrid inside of the EditFormTemplate. Any pointers?

Here's the ItemDataBound and ItemCreated events for the MainGrid and the relevant ASPX (Names/IDs changed to examples for security purposes)

protected void gvOptionsPOP_ItemDataBound(object sender, GridItemEventArgs e)
{
    if (e.Item is GridDataItem && !e.Item.IsInEditMode)
    {
        GridDataItem item = (GridDataItem)e.Item;
        RadGrid test123 = (RadGrid)item.FindControl("gvRequirements");
        int id = Convert.ToInt32(item["OptionYearID"].Text);
        string _URLAuthority = Request.Url.Authority;
        string _URLScheme = Request.Url.Scheme;
         
        if (_URLAuthority.Contains("localhost"))
        {
            _URLAuthority = _URLAuthority.Replace(Request.Url.Authority, "exampleurl");
        }
        if (_URLScheme == "http")
        {
            _URLScheme = "https";
        }
         
        string _baseURL = _URLScheme + "://" + _URLAuthority + "/SRTD";
        test123.DataSource = ExampleClass.GetData(id, _baseURL);
        test123.Rebind();
 
        CheckBox chk = (CheckBox)item["OptionExecute"].Controls[0];
        LinkButton lnkbutton = (LinkButton)item["EditPOP"].Controls[0];
         
        lnkbutton.Enabled = false;
 
        if (item.ItemIndex == 0 && chk.Checked)
        {
            lnkbutton.Enabled = true;
        }
        else if (chk.Checked)
        {
            foreach (GridDataItem test1 in gvOptionsPOP.Items)
            {
                CheckBox chk2 = (CheckBox)test1["OptionExecute"].Controls[0];
                LinkButton lnkbutton2 = (LinkButton)test1["EditPOP"].Controls[0];
                if (chk2.Checked)
                {
                    lnkbutton2.Enabled = false;
                }
            }
            lnkbutton.Enabled = true;
        }
    }
}
 
protected void gvOptionsPOP_ItemCreated(object sender, GridItemEventArgs e)
{
    if (e.Item is GridEditableItem && e.Item.IsInEditMode)
    {
        GridEditFormItem editedItem = (GridEditFormItem)e.Item;
        GridDataItem originalItem = editedItem.ParentItem;
         
        RadGrid test123 = (RadGrid)originalItem.FindControl("gvRequirementsPOP");
        PlaceHolder editPanel = (PlaceHolder)editedItem.FindControl("pnlPlaceHolder");
 
        RadGrid test456 = test123;
 
        foreach (GridDataItem dataItem in test123.Items)
        {
            CheckBox chkbox = (CheckBox)dataItem["CheckboxTemplate"].FindControl("RequirementExecute");
            chkbox.Enabled = true;
        }
 
        test456.Rebind();
    }
}
<telerik:RadGrid ID="gvOptionsPOP" runat="server"
AllowPaging="false"
PageSize="20"
AllowSorting="false"
ShowFooter="false"
ShowStatusBar="false"
AutoGenerateColumns="false"
OnNeedDataSource="gvOptionsPOP_NeedDataSource"
OnItemCommand="gvOptionsPOP_ItemCommand"
OnItemCreated="gvOptionsPOP_ItemCreated"
OnUpdateCommand="gvOptionsPOP_UpdateCommand"
OnItemDataBound="gvOptionsPOP_ItemDataBound"
Width="80%"
GridLines="Both"
ItemStyle-BorderStyle="Solid">
 
    <ClientSettings EnableRowHoverStyle="true"
       EnablePostBackOnRowClick="false" />
 
    <MasterTableView AllowFilteringByColumn="false"
       ShowFooter="false"
       ShowHeadersWhenNoRecords="true" BorderStyle="Solid">
 
       <EditFormSettings EditFormType="Template">
              <FormTemplate>
                     <br />
                     <asp:PlaceHolder ID="pnlPlaceHolder" runat="server" />
                     <br />
                     <span>
                            <asp:Button runat="server" ID="btnUpdate" Text="Update" CommandName="Update" />
                            <asp:Button runat="server" ID="btnCancel" Text="Cancel" CommandName="Cancel" />
                     </span>
              </FormTemplate>
       </EditFormSettings>
 
       <NoRecordsTemplate>
              <div>NO OPTIONS FOUND.</div>
       </NoRecordsTemplate>
 
       <Columns>
              <telerik:GridButtonColumn UniqueName="EditPOP" CommandName="Edit" Text="Edit" />
              <telerik:GridBoundColumn UniqueName="OptionYearID" DataField="options_id" HeaderText="Option Year ID" ItemStyle-HorizontalAlign="Center" Display="false" HeaderStyle-HorizontalAlign="Center" />
              <telerik:GridBoundColumn UniqueName="OptionYear" DataField="option_period" HeaderText="Option Year" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" />
              <telerik:GridDateTimeColumn UniqueName="POPStart" DataField="option_award_date" HeaderText="Proposed/Actual Start Date" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" />
              <telerik:GridDateTimeColumn UniqueName="POPEnd" DataField="option_end_date" HeaderText="Proposed/Actual End Date" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" />
              <telerik:GridTemplateColumn UniqueName="RequirementTemplate" HeaderText="Requirement/CSA#" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
              <ItemTemplate>
                     <telerik:RadGrid ID="gvRequirementsPOP" runat="server"
                     AllowPaging="false"
                     PageSize="20"
                     AllowSorting="false"
                     ShowFooter="false"
                     ShowStatusBar="false"
                     AutoGenerateColumns="false"
                     OnItemDataBound="gvRequirementsPOP_ItemDataBound"
                     Width="100%"
                     ItemStyle-BorderStyle="Solid">
 
                     <ClientSettings EnableRowHoverStyle="true"
                            EnablePostBackOnRowClick="false" />
 
                     <MasterTableView AllowFilteringByColumn="false"
                            ShowFooter="false"
                            ShowHeadersWhenNoRecords="true" BorderStyle="Solid" DataKeyNames="ReqCSA, EXECUTION_FLAG">
 
                            <NoRecordsTemplate>
                                   <div>NO REQUIREMENTS FOUND.</div>
                            </NoRecordsTemplate>
 
                            <Columns>
                                   <telerik:GridBoundColumn UniqueName="RequirementsID" DataField="Requirements_ID" HeaderText="Requirements ID" Display="false" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" />
                                   <telerik:GridBoundColumn UniqueName="ExecutionFlag" DataField="EXECUTION_FLAG" HeaderText="Execution Flag" Display="false" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" />
                                   <telerik:GridHyperLinkColumn UniqueName="ReqLink" DataTextFormatString="{0}" DataNavigateUrlFields="ReqLink" DataNavigateUrlFormatString="{0}" DataTextField="ReqCSA" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" HeaderText="SCA#"  ItemStyle-Width="25%" HeaderStyle-Width="25%" />
                                   <telerik:GridTemplateColumn UniqueName="CheckboxTemplate" HeaderText="Execute" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="25%" HeaderStyle-Width="25%" >
                                          <ItemTemplate>
                                                 <asp:CheckBox ID="RequirementExecute" runat="server" Text="Execute" />
                                          </ItemTemplate>
                                   </telerik:GridTemplateColumn>
                                   <telerik:GridBoundColumn UniqueName="RequirementType" DataField="REQUIREMENT_TYPE" HeaderText="Type" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="25%" HeaderStyle-Width="25%" />
                                   <telerik:GridBoundColumn UniqueName="RequirementStatus" DataField="REQUIREMENT_Status" HeaderText="Status" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="25%" HeaderStyle-Width="25%" />
                            </Columns>
                            </MasterTableView>
                     </telerik:RadGrid>
              </ItemTemplate>
              </telerik:GridTemplateColumn>
              <telerik:GridCheckBoxColumn UniqueName="OptionExecute" DataField="EXECUTION_FLAG" HeaderText="Option Execute" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" />
       </Columns>
    </MasterTableView>
</telerik:RadGrid>
Eyup
Telerik team
 answered on 30 Jan 2020
0 answers
83 views

I open a child radwindow popup from parent radwindow popup. This works quite good but client wants to move child/second radwindow popup outside the boundaries of parent/first radwindow popup. I used following code to open the child/second popup in the parent page of first radwindow popup:

GetRadWindow().BrowserWindow;

It opens the child/second radwindow popup in the page but it closes the parent/first radwindow popup.

Please suggest a solution to solve this issue and achieve the requirement.

 

 

mohinder
Top achievements
Rank 1
 asked on 30 Jan 2020
2 answers
373 views

Hi,

I would like to use some Awesome Font icons instead of using the ImageUrl attribute, is this possible? I noticed that this seems possible on a normal RadButton but the same implementation does not seem to work on a RibbonBarButton. Ideas, or is this just not possible on a RibbonBarButton?

 

Thanks,
Gary Kearney

Peter Milchev
Telerik team
 answered on 29 Jan 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?