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

 

RadGrid, ASP.NET, Web

BackColor does not work ....in the source below.

           if (gv.Items.Count > 0)
            {
                foreach (GridDataItem item in gv.Items)
                {                    
                    if (item.Cells[2].Text == "Total")
                    {

                        item.BackColor = System.Drawing.Color.LightPink;

                        break;
                    }
                }
            }

 

Please Help Me

Doncho
Telerik team
 answered on 26 Jan 2022
1 answer
349 views

In Telerik:RadGrid , ASP.NET , Web,

<ClientSettings EnablePostBackOnRowClick="true">  
<Selecting RowClick="true" /> 
</ClientSettings>   
protected void RadGrid_ItemConmmand(object source, GridCommandEventArgs e)
        {
            if (e.CommandName == "RowClick")
            {              
                var text = "";
                text += "Row was clicked";
                text += ", Index: " + eventArgs.get_itemIndexHierarchical();
                alert(text);
            }

Is the grammar correct?

Please Help Me

Doncho
Telerik team
 answered on 26 Jan 2022
1 answer
221 views

In Telerik:RadGrid , ASP.NET , Web,

 

<ClientSettings EnablePostBackOnRowClick="true">  
<Selecting ColumnClick="true" /> 
</ClientSettings>   
protected void RadGrid_ItemConmmand(object source, GridCommandEventArgs e)
        {
            if (e.CommandName == "ColumnClick")
            {              
                var text = "";
                text += "Column was clicked";
                text += ", Index: " + eventArgs.get_gridColumn().get_element().cellIndex;
                alert(text);
            }

 

Is the grammar correct?

Please Help Me


Doncho
Telerik team
 answered on 26 Jan 2022
1 answer
143 views

hi,

i would like to benefit the UI for ASP.NET AJAX + Kendo UI for jQuery which included in the  DevCraft UI package.

but why this package is limited to Lit support with 10 support incidents while the basic package of asp.net ajax includes the priority support with unlimiited number of cases?

 

 

 

Teddy
Telerik team
 answered on 25 Jan 2022
0 answers
138 views
Nevermind
Peter
Top achievements
Rank 1
 updated question on 24 Jan 2022
1 answer
203 views

In RadGridView, ASP.NET , Web

 

Attached File : ex.png

 

I want to get both selected row and UniqueName when grid cell is clicked.

The source below can only get UniqueName.

 

 void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
    {
        if (e.CommandName == "customCommand")
        {
            foreach (GridColumn column in RadGrid1.MasterTableView.RenderColumns)
            {
                if (column.UniqueName.ToString() == e.CommandArgument.ToString())
                {
                    column.Visible = false;
                }
            }
        }
    }

      function OnColumnDblClick(sender, eventArgs)
            {
                var columnUniqueName = eventArgs.get_gridColumn().get_uniqueName();
                alert(columnUniqueName);
                var oldClass = eventArgs.get_gridColumn().get_element().className;
                eventArgs.get_gridColumn().get_element().className = oldClass + " doubleClickedColumnHeader";
                $find("<%= RadGrid1.ClientID %>").get_masterTableView().fireCommand("customCommand",columnUniqueName);
            }

            function OnColumnClick(sender, eventArgs)
            {
                eventArgs.get_gridColumn().get_element().className = eventArgs.get_gridColumn().get_element().className.replace(" doubleClickedColumnHeader", "");
            }
        </script>

 

 <telerik:RadGrid runat="server" ID="RadGrid1">
            <ClientSettings>
                <ClientEvents OnColumnDblClick="OnColumnDblClick" OnColumnClick="OnColumnClick" />
            </ClientSettings>
        </telerik:RadGrid>

 

Please Help Me. 

I am still waiting for an answer.

Vessy
Telerik team
 answered on 24 Jan 2022
1 answer
92 views

telerik does not respond to customers.
telerik has a score of 0 for customer response.
why is telerik no customer service?
there is a function that the customer does not know when using telerik.
telerik is inconvenient to use.
Please answer the question anna posted on the telerik forum.
anna continues to wait for a reply.

 

 

 

====


RadGrid I want to automatically get the coordinates of Row and Column when the mouse cursor is placed on the Cell of RadGrid.

Attached File : ex.png

telerik:RadGrid (ASP.NET Web)

I want to get the header name of the column clicked by the user with the mouse.

<ClientSettings EnablePostBackOnRowClick="true">  
<Selecting AllowRowSelect="true" /> 
</ClientSettings>   
 protected void RadGrid1_SelectedIndexChanged(object sender, EventArgs e)
        {
            var dataItem = gv.SelectedItems[0] as GridDataItem;
            if (dataItem != null)
            {
                var name = dataItem["ColUniqueName"].Text;
            }
        }
The above source code is not what I want.
Because the user specified ColUniqueName .
I want to automatically get the coordinates of Row and Column&Column HeaderName when the mouse cursor is placed on the Cell of RadGrid.


It is Example Of FarPoint Spread.
 private void fpSpread1_CellClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e)
 {
      string strTag = fpSpread1.Sheets[0].Columns[e.Column].DataField.ToString();              
}
In FarPoint Spread, There is automatically get the coordinates of Row and Column&Column Header Name when the mouse cursor is placed on the Cell of FarPoint Spread.

Vessy
Telerik team
 updated answer on 24 Jan 2022
1 answer
383 views

 

Attached File : ex.png

telerik:RadGrid (ASP.NET Web)

I want to get the header name of the column clicked by the user with the mouse.

<ClientSettings EnablePostBackOnRowClick="true">  
<Selecting AllowRowSelect="true" /> 
</ClientSettings>   

 protected void RadGrid1_SelectedIndexChanged(object sender, EventArgs e)
        {
            var dataItem = gv.SelectedItems[0] as GridDataItem;
            if (dataItem != null)
            {
                var name = dataItem["ColUniqueName"].Text;
            }
        }
The above source code is not what I want.
Because the user specified ColUniqueName .
I want to automatically get the coordinates of Row and Column&Column HeaderName when the mouse cursor is placed on the Cell of RadGrid.

 

 

It is Example Of FarPoint Spread.
 private void fpSpread1_CellClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e)
 {
      string strTag = fpSpread1.Sheets[0].Columns[e.Column].DataField.ToString();              
}
In FarPoint Spread, There is automatically get the coordinates of Row and Column&Column Header Name when the mouse cursor is placed on the Cell of FarPoint Spread.

 

Please Help Me

Vessy
Telerik team
 answered on 24 Jan 2022
1 answer
175 views

This is probably a long shot but I thought it was worth asking.

Users can choose an appointment date and time range for when an engineer will turn up. For example, 19th January 2022 between 10am and 4pm. I am displaying the appointments in a grid but I want to replace the words "between 10am and 4pm" or "10am-4pm" with a graphic. I am looking for a simple clock image which I can set from code behind with, for example, startime=1000 | endtime=1600 and see a little circle with a clock face with a "pie slice" shaded in to represent the period between 10am and 4pm.

I am not looking for a time picker (that's already done in the Edit Form) - I need a way of displaying a little visual indicator like a clock face / pie chart type of graphic with a shaded area showing the user a range such as 10am-4pm, 2pm-4pm, 8am-1pm etc. The time range will never be 12 hours or more but if this ever happened I could replace the clock display with my standard text label.

Does anyone know if this is possible with anything in the UI For ASP.NET AJAX suite or if an existing control could be repurposed with clever styling (a chart type maybe?) or a third party component (if I must). Requirements are I need to set the time range using a function called at run time from data binding or itemdatabound in code behind.

I can't believe no-one has needed this before but I can't find anything online (unless I'm not using the correct term for the type of control I need).

Any help would be really appreciated.

Thanks

Nick

Doncho
Telerik team
 answered on 24 Jan 2022
1 answer
107 views

telerik:RadGrid ASP.NET Web is being used.

When you click a cell in the grid of A, The details should be displayed in grid of B.
===> If you click the cell of grid, Another Detail-Grid should appear.

How should I program the code?

 

Attached File : ad1.png

 

Attila Antal
Telerik team
 answered on 24 Jan 2022
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?