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

I am using a masked text box to allow my users to enter text that also has literal text in the box for example the text box has a the literal text of "My name is : " and I want the user to enter text of a date.  Since every name is a different length  I added the small loop below.  Have not had anybody need more space.  I also set the RadMaskedTextBox to always selectAll when the field is entered.

 For i As Integer = 1 To 40
         radusertext.MaskParts.Add(New Telerik.Web.UI.FreeMaskPart())
 Next           
radusertext.SelectionOnFocus = SelectionOnFocus.SelectAll

 

Here are the issues I am having

1) The FreeMaskPart does not show any mask space holders.  This is good for the most part. when the user first enters the box and types there name all is good.  For example they enter the name "Paul"
2)  If the user leaves the text box and then re-enters it all text is selected.  The issue keeps coming where the user enters the textbox then clicks to the last char in this example the "l".  The reality is they clicked the end but they are not on the "l" they are at the end of the mask or in this example 36 charectors past the "l" 40 char of the mask - 4 char in "paul".  If they hit the backspace or the left arrow key it appears that nothing is happening even though they are moving back along the mask.   As stated in "1" above the "FreeMaskPart" option does not show any actual mask chars.

So what I need to be able to do is this:
1) not limit the mask to 40 chars but make is any lenght
2) when they re-enter the masked box and click the end of the box not have to hit the backspace or left arrow key 36 times from the example above 
3) least favorite option show an underline for the masked character. When using "New Telerik.Web.UI.FreeMaskPart()" there is no masked text indication so they at least see where the cursor is in the box

 

Any help on this would be greatly appreciated

Thanks
Paul

Doncho
Telerik team
 answered on 26 Jan 2022
1 answer
173 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
290 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
177 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
108 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
105 views
Nevermind
Peter
Top achievements
Rank 1
 updated question on 24 Jan 2022
1 answer
160 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
57 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
307 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
91 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?