Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
149 views
It would be nice to have a list of what is considered a symbol by the visual strenght checker so to reproduce an adeguate custom validator wich consider the same symbols.
Is there a way to retrieve such complete list of symbols? For example it seems it doesn't consider the "," (comma) as a valid symbol.

Thanks in advance.
Massimiliano
Top achievements
Rank 1
 answered on 09 Jul 2013
5 answers
141 views

Hi,

We currently have multiple RadEditor's inside an IFrame and we want the standard dialogs (RadWindow) i.e. ImageManager to be displayed on the topmost page. At present the dialogs are restricted to the IFrame of the RadEditor.

We have fixed the problem by setting the editor to use classic dialogs (editor.set_useClassicDialogs(true)), however this doesn't prevent the user from clicking on the toolbar and we require the dialogs to be cross browser and modal i.e. use div elements.

Thanks

Rumen
Telerik team
 answered on 09 Jul 2013
2 answers
103 views
Is it possible to MASK or White Out an area of an Image using the Image Editor?
Trey
Top achievements
Rank 2
 answered on 09 Jul 2013
1 answer
96 views
Hello,

Is there a way to have the width of the resource column auto-grow when using the groupingdirection="vertical"?
Please see how it cuts off the name of my resources.
Mark
Top achievements
Rank 1
 answered on 09 Jul 2013
0 answers
94 views
Hello There,

    I am working on RadControls for ASP.NET AJAX 2013.
    I am using the RadListBox with client side event OnClientSelectedIndexChanging for user confirmation box with two buttons on the page, one is save button and other cancel button with some textbox.
    If the user has made some changes in the textboxes, I pop-out the confirmation box (ok/cancel) to user.
    If user clicks on ok button, I call "Save" button event using the jquery.
    If user clicks on cancel button, I call "Cancel" button event using jquery.
    The code I am using at javascript is as follows :

OnClientSelectedIndexChanging(sender, eventArgs) {
// isUserInformationChanged is a local variable used for the data validation
if(isUserInformationChanged){
    if (confirm("Do you want to save changes")) {
                    $($("#btnSave")).click();
        }
        else{
            $($("#btnCancel")).click();
        }
    }
}


    This works for me on Firefox/Chrome. But, when I try this same code on IE 9/10, it not only gives call to my Save/Cancel button click but also gives call to SelectionChanged event.
    So, I added following code to suppress the listbox server side event :

 
OnClientSelectedIndexChanging(sender, eventArgs) {
 // isUserInformationChanged is a local variable used for the data validation
  if(isUserInformationChanged){
     if (confirm("Do you want to save changes")) {
                     $($("#btnSave")).click();
         }
         else{
             $($("#btnCancel")).click();
         }
     }
     eventArgs.set_cancel(true);
 }


    But, it just stopped raising both buttonClicked/OnSelectedIndexChanged events.
    So, I am confused why the ListBox control is raising the event even when the buttonClicked has been fired first and why ButtonClicked event is stopped raising if I am just suppressing the ListBox event OnSelectedIndexChanged.

     Can anyone please suggest me where I am getting it wrong. Any code may also be appreciated.

     Thanks in advanced.

Thanks,
Yogesh
Yogesh
Top achievements
Rank 1
 asked on 09 Jul 2013
4 answers
198 views
I'm fairly new to the Telerik components (by the way a great set of components) and now I have a problem retrieving data in the insertCommand method.
I have RadGrid containing a FormTemplate for editing the data.

<EditFormSettings EditFormType="Template">
    <FormTemplate>
        <div id="editdetail">
            <h2>
                Truck information</h2>                 
            <table class="detailtable" cellspacing="2" cellpadding="1" width="100%" border="0"
                rules="none" style="border-collapse: collapse;">
                <tr>
                    <td class="detaillabel">
                        Brand:
                    </td>
                    <td>
                        <asp:PlaceHolder ID="phBrandComboBox" runat="server"></asp:PlaceHolder>
                    </td>
                </tr>
            </table>
        </div>
    </FormTemplate>
</EditFormSettings>

In ItemDatBound I inject a UserControle containing a Telerik ComboBox in the PlaceHolder.

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyTruckItemComboBox.ascx.cs"
    Inherits="Truck_marketplace.MyPortfolio.User_controls.MyTruckItemComboBox" %>
 
    <head>
        <title>MyTruckItemComboBox</title>
    </head>
    <body>
        <telerik:RadComboBox ID="cbMyTruckItemComboBox"
            OnSelectedIndexChanged="cbMyTruckItemComboBox_SelectedIndexChanged"
            runat="server">
        </telerik:RadComboBox>
    </body>
</html>

protected void grMyTruck_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
    if (e.Item is Telerik.Web.UI.GridEditableItem && e.Item.IsInEditMode)
    {
        // Insert + Edit mode.
 
        Telerik.Web.UI.GridEditableItem EditItem = (Telerik.Web.UI.GridEditableItem)e.Item;
        //Brand
        MyPortfolio.User_controls.MyTruckItemComboBox ComboBoxBrand = (MyPortfolio.User_controls.MyTruckItemComboBox)LoadControl("MyTruckItemComboBox.ascx");
        ComboBoxBrand.ID = "cbBrand";
        ComboBoxBrand.GroupID = "BRD";
        ComboBoxBrand.Languagecode = "en-US";
    }
     
    if (e.Item is Telerik.Web.UI.GridEditFormInsertItem || e.Item is Telerik.Web.UI.GridDataInsertItem)
    {
        // Insert mode
        //Brand
        ComboBoxBrand.BindComboBox2();
        PlaceHolder phBrandComboBox = (PlaceHolder)e.Item.FindControl("phBrandComboBox");
        phBrandComboBox.Controls.Add(ComboBoxBrand);
    }
}

In the InsertCommand I the try to find the ComboBox and reading the SelectedValue from it. But I dont have any luck.
All of the code in the code here fails because the cb is null.

protected void grMyTruck_InsertCommand(object sender, GridCommandEventArgs e)
{
    NMHG.Data.Truck_marketplace.Advert.Advert NewAdvert = new NMHG.Data.Truck_marketplace.Advert.Advert();
 
    if (e.Item is GridEditableItem && e.Item.IsInEditMode)
    {
        GridEditableItem editableItem = e.Item as GridEditableItem;
 
        UserControl userControl = editableItem.FindControl(GridEditFormItem.EditFormUserControlID) as UserControl;
        Telerik.Web.UI.RadComboBox cb = userControl.FindControl("cbBrand") as Telerik.Web.UI.RadComboBox;
        var temp = cb.SelectedValue;
 
        PlaceHolder phBrandComboBox = (PlaceHolder)editableItem.FindControl("phBrandComboBox");
        Telerik.Web.UI.RadComboBox cb2 = phBrandComboBox.FindControl("cbBrand") as Telerik.Web.UI.RadComboBox;
        var temp2 = cb2.SelectedValue;
 
        Telerik.Web.UI.RadComboBox cb3 = editableItem.FindControl("cbBrand") as Telerik.Web.UI.RadComboBox;
        var temp3 = cb3.SelectedValue;
 
        Telerik.Web.UI.RadComboBox cb4 = editableItem.FindControl("cbMyTruckItemComboBox") as Telerik.Web.UI.RadComboBox;
        var temp4 = cb4.SelectedValue;
    }
}

Can some one please help - Thanks.

I properly do some thing stupid so please bare with me ;-)

Anders Pedersen

Anders
Top achievements
Rank 1
 answered on 09 Jul 2013
2 answers
122 views
Hello 

I need a clarification. Can I have different context menu for different root items in a radtreeview?

Thankyou
HG.
Henry
Top achievements
Rank 1
 answered on 09 Jul 2013
3 answers
164 views

     Hi,

I got the error message due to this mis-display

Duy

Pavlina
Telerik team
 answered on 09 Jul 2013
2 answers
96 views
Hi

I am trying to copy the value of one radtextbox to another in js as follows.

txtcompcode._text=txtids1._text;

There is no js error but its not working. Confused whats d issue here?
Please help
Tia
Top achievements
Rank 1
 answered on 09 Jul 2013
6 answers
535 views
Hello,

I have a lot of Grids that display correctly strings from a database that contains Chinese and Japanese characters as well as German and French accents. I have to build links from this items in the Grids to display the details in another page.

The URL passed to the new page has the Chinese/Japanese/etc characters: http://test.aspx?Os=Microsoft Windows 7 旗舰版

Because the way IE works I need this URL to be encoded or when I read back the Os variable it will return the value Microsoft Windows 7 ????.

I know I can accomplish this via the following Sub:

Protected Sub MyGrid_ItemDataBound(ByVal sender As ObjectByVal e As Telerik.Web.UI.GridItemEventArgs) Handles MyGrid.ItemDataBound  
        If e.Item.ItemType = GridItemType.Item Or e.Item.ItemType = GridItemType.AlternatingItem Then 
            Dim dataItem As GridDataItem = CType(e.Item, GridDataItem)  
            Dim currentRow As DataRowView = DirectCast(e.Item.DataItem, DataRowView)  
            For Each col As GridColumn In RadgridWinServerOSCount.Columns  
                If col.UniqueName = "columnOS" Then 
                    Dim strTxt As String = currentRow.Row("Operating_System").ToString  
                    Dim NewUrl As String 
                    NewUrl = Server.UrlEncode(strTxt)  
                    CType(dataItem("columnOS").Controls(0), HyperLink).NavigateUrl = "~/test.aspx?Os=" & NewUrl  
                End If 
            Next 
        End If 
    End Sub 

However this is kind of unpractical as the application I'm handling have around 25 different Grids where this needs to be changed, hence, even by creating a function to re-write the URL it's going to require a lot of code and the maintenance would be too cumbersome.

I was wondering if there's a way to "automatically" URL encode the GridHyperLinkColumn items in the Grid, I looked throught the documentation but I couldn't find anything relevant. I think to optionally allow this encoding for GridHyperLinkColumn would be really handy.

Thanks!
Tsvetoslav
Telerik team
 answered on 09 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?