Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
274 views

Hello, I'm using a RadDatePicker on my website but it is displaying as follows :

What can I do to fix this ?

Attila Antal
Telerik team
 answered on 05 Jan 2022
1 answer
322 views

 

In telerik:radgrid, ShowHeader="False"

It doesn't work.

I want to make the Invisible header in radgrid.

 

 <telerik:radgrid id="gv" runat="server" allowpaging="true" allowsorting="true" autogeneratecolumns="false" cellspacing="1" enableembeddedskins="false" gridlines="Both" height="609px" onexcelexportcellformatting="gv_ExcelExportCellFormatting" onneeddatasource="gv_NeedDataSource" PageSize="24" ShowHeader="False">
                                                                    <clientsettings>
                                                                        <Selecting AllowRowSelect="True" />
                                                                        <Resizing AllowColumnResize="True" AllowRowResize="false" ResizeGridOnColumnResize="false" ClipCellContentOnResize="true" EnableRealTimeResize="false" AllowResizeToFit="false" />
                                                                        <scrolling allowscroll="True" frozencolumnscount="3" usestaticheaders="True" />
                                                                    </clientsettings>
                                                                    <mastertableview alternatingitemstyle-wrap="true" enablenorecordstemplate="true" headerstyle-font-bold="true" headerstyle-wrap="false" itemstyle-wrap="false" showheader="true" showheaderswhennorecords="true" tablelayout="Fixed" width="100%">
                                                                        <Columns>

                                                                            <telerik:GridTemplateColumn  SortExpression="1" HeaderText="1" HeaderButtonType="TextButton" DataField="1" UniqueName="1" ReadOnly="true">
                                                                                <ItemTemplate>
                                                                                        <telerik:RadTextBox ID="RadTextBox1" runat="server" MaxLength="1" Style="text-align: center" Width="45px"></telerik:RadTextBox>
                                                                                </ItemTemplate>
                                                                                <ItemStyle HorizontalAlign="Center" />
                                                                            </telerik:GridTemplateColumn>                                                                         
 
                                                                        </Columns>
                                                                        <PagerStyle AlwaysVisible="true" FirstPageImageUrl="../../image/list_paging_v1.gif" LastPageImageUrl="../../image/list_paging_v4.gif" NextPageImageUrl="../../image/list_paging_v3.gif" PageSizeControlType="RadDropDownList" PageSizes="20,50,100,200" PrevPageImageUrl="../../image/list_paging_v2.gif" />
                                                                        <norecordstemplate>
                                                                            <div style="text-align: center; height: 35px; padding-top:20px;">
                                                                                Empty Data
                                                                            </div>
                                                                        </norecordstemplate>
                                                                    </mastertableview>
                                                                </telerik:radgrid>
Attila Antal
Telerik team
 answered on 03 Jan 2022
1 answer
175 views

Hello!

I am attempting to send the an ID value from one RadGrid Row to a RadGrid in a modal window as a DataKey using rowIndex. 

I sucessfully get the cell value but right now it is just sending it to OwnerTableView rather than my modal window grid.

aspx.cs code:

protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
    {
        if (e.Item is GridDataItem)
        {
            RadButton partsBtn = (RadButton)e.Item.FindControl("RadButton1");
            partsBtn.Attributes["href"] = "javascript:void(0);";
            Console.WriteLine(e.Item.ItemIndex);
            partsBtn.Attributes["onclick"] = String.Format("return ShowEditForm('{0}','{1}');", e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["OrderID"], e.Item.ItemIndex);
        }
    }

 

I only want the modal Grid to populate with values that also have that ID (multiple values).

Any thoughts on this?

Attila Antal
Telerik team
 answered on 03 Jan 2022
1 answer
251 views

Hi 

Im using Radgrid ExportToExcel() but getting this vulnerability caused the exported file to be broken 

is there any workaround for this?

Attila Antal
Telerik team
 answered on 03 Jan 2022
0 answers
336 views

Hi Team,

Telerik 2021.3.914.45,Edge Browser,.Net FramworkVersion- 4.8

Getting error with ArrayList GetAllNodes()

ArrayList allNodes = _treeView.GetAllNodes();    //Gettting error 
 for (int i = 0; i < allNodes.Count; i++)
                    {
                        RadTreeNode node = allNodes[i];                                      //Getting Error
                        if (node.Checked && node.Parent == null)
                    }

Tried with below changes:
 List<Telerik.Web.UI.RadTreeNode> allNodes = (List<Telerik.Web.UI.RadTreeNode>)_treeView.GetAllNodes();
But no luck>

Can anyone help me out to resolve the above issue  with sample code?

Sachita
Top achievements
Rank 1
Iron
Iron
Iron
 updated question on 03 Jan 2022
2 answers
306 views

I am preparing dynamic grid using VB.net and RAD grid where columns are getting generated in Run Time. I am trying to apply filter (inbuilt filter) on multiple column at time but application is throwing exception (is neither a DataColumn nor a DataRelation for table Table). This error occurs when I try to apply filter. I am unable to identify root cause. Any input would be appreciated. I am using NeedDataSource() event of Radgrid and this event is throwing above mentioned exception on applying filter.

.Telerik page setting:

<telerik:RadGrid ID="gridData" runat="server" OnGridExporting="grid_GridExporting" RenderMode="Auto" ClientIDMode="AutoID" >
                    </telerik:RadGrid>

 

 

Code-behibd setting:

On page_load():

If Not ds Is Nothing Then
                DefineGridStructure(Session("DynamicResultReportGridData"))
                gridData.DataBind()

end

--------------------------

   Private Sub DefineGridStructure(ByVal allCloumnData As DataSet)

        'Dim grid As New RadGrid()

        gridData.DataSource = allCloumnData
        Session.Add("DynamicResultReportGridData", allCloumnData)
        gridData.Skin = "Default"
        gridData.Width = Unit.Percentage(100)
        gridData.PageSize = 15
        gridData.AllowPaging = True
        gridData.AllowFilteringByColumn = True
        gridData.PagerStyle.Mode = GridPagerMode.NextPrevAndNumeric
        gridData.AutoGenerateColumns = False

        'Add Customers table
        gridData.MasterTableView.Width = Unit.Percentage(100)

        Dim intVal As Integer = allCloumnData.Tables(0).Columns.Count
        For a = 0 To intVal - 1
            Dim boundColumn As New GridBoundColumn()
            boundColumn.DataField = allCloumnData.Tables(0).Columns(a).Caption().Trim().ToString()
            boundColumn.HeaderText = allCloumnData.Tables(0).Columns(a).Caption().Trim().ToString()
            boundColumn.UniqueName = allCloumnData.Tables(0).Columns(a).Caption().Trim().ToString()
            boundColumn.ItemStyle.CssClass = "text2"

            boundColumn.HeaderStyle.CssClass = "GridHeader"
            boundColumn.AllowFiltering = True
            gridData.MasterTableView.Columns.Add(boundColumn)
        Next
    End Sub

----------------------------------------------------

Protected Sub gridData_NeedDataSource(ByVal Source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles gridData.NeedDataSource

        gridDiv.Visible = True
        gridDiv1.Visible = True
        gridData.Visible = True
        Dim allCloumnData As DataSet = Session("DynamicResultReportGridData")
        If allCloumnData Is Nothing Then
        Else
            gridData.DataSource = allCloumnData
        End If


    End Sub

 

Thanks in advance
Rajeev

Ohad
Top achievements
Rank 1
Iron
 answered on 02 Jan 2022
0 answers
225 views

Hello.

Does telerik:RadGrid have this InsertAt ?

// Adjust the Data Table to add Grid Rows to arbitrary positions. int insertRowIdx; DataTable dt = (grvItemPrice.GridControl.DataSource as DataTable); DataRow dtRow = dt.NewRow(); dt.Rows.InsertAt(dtRow, insertRowIdx); dt.AcceptChanges();

====================

I want to add GridView-B Rows to the row below 8 o'clock in GridView-A.

How should I program the algorithm for the GridView?

there are InsertAt of telerik:Radgrid ?

attached file : radgrid.png

 
anna
Top achievements
Rank 1
Bronze
Iron
 asked on 01 Jan 2022
0 answers
155 views

Hello.

I want to add GridView-B Rows to the row below 8 o'clock in GridView-A.

How should I program the algorithm for the GridView?

there are InsertAt of telerik:Radgrid

 

attached file : radgrid.png

 

anna
Top achievements
Rank 1
Bronze
Iron
 updated question on 01 Jan 2022
0 answers
259 views

I am using radgrid.

How do I clear DataSource or delete old data in DataSource? 

Is the source below correct?

please tell me another way.

            DataTable dt = null;

            gv.DataSource = dt;
            
anna
Top achievements
Rank 1
Bronze
Iron
 asked on 01 Jan 2022
2 answers
1.1K+ views


1. platform used :  ==== > telerik:radgrid   on   ASP.NET 

as the Attached File, I want to input text by adding a txtBox to a column in telerik:radgrid

Is there an ASP.NET version of the source code I can refer to?

 Telerik : radgrid on ASP.NET

 

Please Help me.

 

 

 

 

 

Attila Antal
Telerik team
 answered on 31 Dec 2021
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?