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

I'm using the RadMap to show states of the USA.

layers[0] is Bing.
layers[1] contains a shape for every US state/territory.
layers[2-53] contain the counties (subdivisions) for each state/territory.

When the user clicks a state, I handle the shapeClick event to .show() the corresponding layer for the state's counties. This works fine.

Once layer 2 - 53 is shown, however, the shapeClick no longer fires when a shape in layer 1 is clicked, presumably because it is no longer "on top" and shapeClick is only fired for layer x. Is there a way to receive shapeClick events no matter which layer is "on top"?

If not, is there a way to get the data from the map's regular Click event and somehow use that to determine the shape that covers it in layer 1?

Vessy
Telerik team
 answered on 26 Jan 2022
1 answer
255 views

So in my RadGrid I have a template column that contains RadDropDownList in the EditItemTemplate.  When this is modified in a row I would like to loop through the RadGrid and modify the other RadDropDownList in the other rows.  I know how to loop through the grid but having trouble accessing the dropdown since the other rows are not in edit mode.   Using the changeCellValue(cellToUpdate, value) of the BatchEditingManager but not having any luck with updating the dropdown.  

<BatchEditingSettings EditType="Cell" />

<telerik:GridTemplateColumn HeaderText="IsBudget" UniqueName="IsBudget" SortExpression="IsBudget">
<ItemTemplate>
<asp:Label ID="lblIsBudget" runat="server" Text='<%# Eval("IsBudget") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<telerik:RadDropDownList ID="ddIsBudget" RenderMode="Lightweight" runat="server" DataValueField="IsBudget" >
<Items>
<telerik:DropDownListItem Text="False" Value="False" />
<telerik:DropDownListItem Text="True" Value="True" />
</Items>
</telerik:RadDropDownList>
</EditItemTemplate>
</telerik:GridTemplateColumn>

Attila Antal
Telerik team
 updated answer on 26 Jan 2022
1 answer
160 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
165 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
276 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
170 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
101 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
90 views
Nevermind
Peter
Top achievements
Rank 1
 updated question on 24 Jan 2022
1 answer
147 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
53 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
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
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
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?