Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
135 views
Hello friends


I bound radgrid programatically with using GridTableView but i don't have any idea how can i get value of detailtableview bound column value
on itemdatabound any budy have idea?
David
Top achievements
Rank 1
Iron
Veteran
Iron
 answered on 09 Jul 2013
5 answers
150 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
147 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
104 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
98 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
96 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
205 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
131 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
167 views

     Hi,

I got the error message due to this mis-display

Duy

Pavlina
Telerik team
 answered on 09 Jul 2013
2 answers
99 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?