Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
108 views

Hello,

 

I’m having an issue in my application with the Captcha audio.  When you first navigate to the page with the Captcha and you click on the “Get Audio Code” link, the audio doesn’t work. 

 

However, when you click the “Generate New Image” link and then click “Get Audio Code” link it works.

Thanks

Pero
Telerik team
 answered on 01 Dec 2010
1 answer
56 views
Why is the 'Enable RadCaptcha Http Handler' link not in the RadCaptcha Smart Tag?

Forgive me if there is a very obvious answer to this question.

Regards,
Anthony.

UPDATE: There is indeed a very obvious answer to this... the Http Handler has already been registered in the web.config of my project!!
Pero
Telerik team
 answered on 01 Dec 2010
4 answers
1.2K+ views

Hi,

I have this column in my grid:

<Telerik:GridBoundColumn UniqueName="OrderDate" DataField="OrderDate" DataFormatString="{0:g}" DataType=System.DateTime" />

According to http://msdn.microsoft.com/en-us/library/az4se3k1.aspx the "g" standard format specifier represents a combination of the short date ("d") and short time ("t") patterns, separated by a space. It should render (in my locale) as "yyyy-MM-dd hh:mm", but the column wrongfully includes the seconds in the rendered text (it is rendered like this: "yyyy-MM-dd hh:mm:ss)". What am I doing wrong?

TIA.

Veli
Telerik team
 answered on 01 Dec 2010
1 answer
78 views
I'd LOVE to be able to handle a paste event where a user pastes in some Word Content I could have a popup or a jQuery element notify them that word formatting has been stripped...does that functionality at all exist?

It's a massive pain in the ass right now in a university as EVERYONE uses word, and we get at least one "Does this not allow word documents?" question a week.

Regards,
Steve
Dobromir
Telerik team
 answered on 01 Dec 2010
3 answers
93 views
Hi,

I have a requirement to create mutliple Radwindows in a server control, and opening the radwindow on menu item click event at client side. For testing purpose i have created two radwindows in the page load, added button and textbox events to it, and created a custom attribute to the rad menu item to pass the radwindow id, and calling the radwindow based on the id, but the issue here is
  • Even though i have added the controls for both radwindows, on the menu  item click i am able to see the Radwindow with controls only for menu, for other menu item click the radwindow opening without any content in it.
  • On the button event on the Radwindow, the entire page is getting refrehsed. ( because the radwindow is child control of the page),

so how to handle the scenario to not to refresh the page when the button on radwindow is clicked.

i am using the telerik version : 2010.2.929.35
Thanks,
Srikanth

 

Georgi Tunev
Telerik team
 answered on 01 Dec 2010
5 answers
272 views
Hello Sir,

How can i make validation for GridCheckBoxColumn.
I have a dropdownlist depending upon the value the checkbox is visible/hide.
but i want when checkbox is visible it should validate..if checkbox is disabled then no need for validation..

Please Help.

Thanks

 

Princy
Top achievements
Rank 2
 answered on 01 Dec 2010
4 answers
98 views
Hi all,

How can i display different msg in my input text box?
For example like
         if users ignore that email textbox, <email is required>,
         then if error format will display      <invalid email >.

My msg need to display in textbox like attechment.
Isit posible?
Any help is appreciated.

Best regards,
Nasri
Arteta Sam
Top achievements
Rank 1
 answered on 01 Dec 2010
3 answers
84 views
Hi. I have successfully installed the latest RadEditor on my site  but it won't allow me to save a list when I edit the contents (or create new).

To reproduce, enable RadEditor for list items and then edit the contents of a list item and press save.

The save command is ignored and nothing happens, although the cancel works just fine.

Any ideas?

thx 

Chris
Stanimir
Telerik team
 answered on 01 Dec 2010
1 answer
62 views
Hi,i have a treeview that dynamically filled with nodes in code behind and attach the context menu for it in code behind as well 
and when i clicked on the node an IFrame Loaded and the context menu item load an rad window created in the code behind ,first i faced an error about the viewstate that it not the same with the post back,i worked around by setting a root node "." and set the selected=true,but now when i click the context menu  at the first time i got "Microsoft JScript runtime error: '_events' is null or not an object "

 the only client event i use is the onClientContextMenuShowing
function onClientContextMenuShowing(sender, args) {
            var treeNode = args.get_node();
            treeNode.select();
            //enable/disable menu items
            setMenuItemsState(args.get_menu().get_items(), treeNode);
        }
 
        //this method disables the context menu items for the Root element
        function setMenuItemsState(menuItems, treeNode) {
            for (var i = 0; i < menuItems.get_count(); i++) {
                var menuItem = menuItems.getItem(i);
                if (treeNode.get_text() == ".") {
                    menuItem.set_enabled(false);
                }
                else {
                    menuItem.set_enabled(true);
                }
            }
        }
 
i hope you find me a solution for that ...Thank You
function onClientContextMenuShowing(sender, args) {
            var treeNode = args.get_node();
            treeNode.select();
            //enable/disable menu items
            setMenuItemsState(args.get_menu().get_items(), treeNode);
        }

        //this method disables the context menu items for the Root element
        function setMenuItemsState(menuItems, treeNode) {
            for (var i = 0; i < menuItems.get_count(); i++) {
                var menuItem = menuItems.getItem(i);
  
function onClientContextMenuShowing(sender, args) {
            var treeNode = args.get_node();
            treeNode.select();
            //enable/disable menu items
            setMenuItemsState(args.get_menu().get_items(), treeNode);
        }

        //this method disables the context menu items for the Root element
        function setMenuItemsState(menuItems, treeNode) {
            for (var i = 0; i < menuItems.get_count(); i++) {
                var menuItem = menuItems.getItem(i);
                if (treeNode.get_text() == ".") {
                    menuItem.set_enabled(false);
                }
                else {
                    menuItem.set_enabled(true);
                }
            }
        }
function onClientContextMenuShowing(sender, args) {
            var treeNode = args.get_node();
            treeNode.select();
            //enable/disable menu items
            setMenuItemsState(args.get_menu().get_items(), treeNode);
        }
 
        //this method disables the context menu items for the Root element
        function setMenuItemsState(menuItems, treeNode) {
            for (var i = 0; i < menuItems.get_count(); i++) {
                var menuItem = menuItems.getItem(i);
                if (treeNode.get_text() == ".") {
                    menuItem.set_enabled(false);
                }
                else {
                    menuItem.set_enabled(true);
                }
            }
        }
             if (treeNode.get_text() == ".") {
                    menuItem.set_enabled(false);
                }
                else {
                    menuItem.set_enabled(true);
                }
            }
        }
function onClientContextMenuShowing(sender, args) {
            var treeNode = args.get_node();
            treeNode.select();
            //enable/disable menu items
            setMenuItemsState(args.get_menu().get_items(), treeNode);
        }

        //this method disables the context menu items for the Root element
        function setMenuItemsState(menuItems, treeNode) {
            for (var i = 0; i < menuItems.get_count(); i++) {
                var menuItem = menuItems.getItem(i);
                if (treeNode.get_text() == ".") {
                    menuItem.set_enabled(false);
  
function onClientContextMenuShowing(sender, args) {
            var treeNode = args.get_node();
            treeNode.select();
            //enable/disable menu items
            setMenuItemsState(args.get_menu().get_items(), treeNode);
        }
 
        //this method disables the context menu items for the Root element
        function setMenuItemsState(menuItems, treeNode) {
            for (var i = 0; i < menuItems.get_count(); i++) {
                var menuItem = menuItems.getItem(i);
                if (treeNode.get_text() == ".") {
                    menuItem.set_enabled(false);
                }
                else {
                    menuItem.set_enabled(true);
                }
            }
        }
             }
                else {
                    menuItem.set_enabled(true);
                }
  
function onClientContextMenuShowing(sender, args) {
            var treeNode = args.get_node();
            treeNode.select();
            //enable/disable menu items
            setMenuItemsState(args.get_menu().get_items(), treeNode);
        }

        //this method disables the context menu items for the Root element
        function setMenuItemsState(menuItems, treeNode) {
            for (var i = 0; i < menuItems.get_count(); i++) {
                var menuItem = menuItems.getItem(i);
                if (treeNode.get_text() == ".") {
                    menuItem.set_enabled(false);
                }
                else {
                    menuItem.set_enabled(true);
                }
            }
        }
function onClientContextMenuShowing(sender, args) {
            var treeNode = args.get_node();
            treeNode.select();
            //enable/disable menu items
            setMenuItemsState(args.get_menu().get_items(), treeNode);
        }

        //this method disables the context menu items for the Root element
        function setMenuItemsState(menuItems, treeNode) {
            for (var i = 0; i < menuItems.get_count(); i++) {
                var menuItem = menuItems.getItem(i);
                if (treeNode.get_text() == ".") {
                    menuItem.set_enabled(false);
                }
                else {
                    menuItem.set_enabled(true);
                }
            }
        }
         }
        }
function onClientContextMenuShowing(sender, args) {
            var treeNode = args.get_node();
            treeNode.select();
            //enable/disable menu items
            setMenuItemsState(args.get_menu().get_items(), treeNode);
        }

        //this method disables the context menu items for the Root element
        function setMenuItemsState(menuItems, treeNode) {
            for (var i = 0; i < menuItems.get_count(); i++) {
                var menuItem = menuItems.getItem(i);
                if (treeNode.get_text() == ".") {
                    menuItem.set_enabled(false);
                }
                else {
                    menuItem.set_enabled(true);
                }
            }
        }
function onClientContextMenuShowing(sender, args) {
            var treeNode = args.get_node();
            treeNode.select();
            //enable/disable menu items
            setMenuItemsState(args.get_menu().get_items(), treeNode);
        }

        //this method disables the context menu items for the Root element
        function setMenuItemsState(menuItems, treeNode) {
            for (var i = 0; i < menuItems.get_count(); i++) {
                var menuItem = menuItems.getItem(i);
                if (treeNode.get_text() == ".") {
                    menuItem.set_enabled(false);
                }
                else {
                    menuItem.set_enabled(true);
                }
            }
        }
Nikolay Tsenkov
Telerik team
 answered on 01 Dec 2010
5 answers
255 views
Hi All,
I have the need to get the selected value from a GridDropDownColumn while the row is not in Edit mode.
My Grid is defined as :
<telerik:RadGrid ID="rgCriterias" runat="server" GridLines="None" OnDeleteCommand="rgCriterias_DeleteCommand"
    OnInsertCommand="rgCriterias_InsertCommand" OnItemCommand="rgCriterias_ItemCommand"
    OnItemDataBound="rgCriterias_ItemDataBound" OnNeedDataSource="rgCriterias_NeedDataSource"
    OnPreRender="rgCriterias_PreRender" OnUpdateCommand="rgCriterias_UpdateCommand"
    OnCreateColumnEditor="rgCriterias_CreateColumnEditor">
    <ClientSettings EnableRowHoverStyle="True">
        <Selecting AllowRowSelect="True" />
        <Scrolling AllowScroll="True" ScrollHeight="400px" UseStaticHeaders="True" />
    </ClientSettings>
    <MasterTableView DataKeyNames="Id,Version,CategoryId" AutoGenerateColumns="False"
        CommandItemDisplay="Top" EditMode="EditForms">
        <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
        <RowIndicatorColumn>
            <HeaderStyle Width="20px"></HeaderStyle>
        </RowIndicatorColumn>
        <ExpandCollapseColumn>
            <HeaderStyle Width="20px"></HeaderStyle>
        </ExpandCollapseColumn>
        <Columns>
            <telerik:GridEditCommandColumn ButtonType="ImageButton">
                <HeaderStyle Width="8%" />
            </telerik:GridEditCommandColumn>
            <telerik:GridBoundColumn DataField="Sequence" DataType="System.Int32" HeaderText="Sequence"
                UniqueName="Sequence" ReadOnly="True">
                <HeaderStyle Width="12%" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Description" HeaderText="Description" UniqueName="Description">
                <HeaderStyle Width="15%" />
            </telerik:GridBoundColumn>
            <telerik:GridHTMLEditorColumn DataField="Notes" HeaderText="Notes" UniqueName="Notes"
                ConvertEmptyStringToNull="False">
                <HeaderStyle Width="20%" />
            </telerik:GridHTMLEditorColumn>
            <telerik:GridHTMLEditorColumn DataField="TypicalResponse" HeaderText="Typical Response"
                UniqueName="TypicalResponse" ConvertEmptyStringToNull="False">
                <HeaderStyle Width="20%" />
            </telerik:GridHTMLEditorColumn>
            <telerik:GridDropDownColumn DataField="RoleId" EmptyListItemText="-- Select Role --"
                EmptyListItemValue="-1" EnableEmptyListItem="True" HeaderText="Role" ListTextField="desc"
                ListValueField="code" UniqueName="Role">
                <HeaderStyle Width="10%" />
            </telerik:GridDropDownColumn>
            <telerik:GridNumericColumn DataField="Weighting" DataType="System.Decimal" DefaultInsertValue="0"
                EmptyDataText="0" HeaderText="Weighting" UniqueName="Weighting" DataFormatString="{0:###.00}">
                <HeaderStyle Width="10%" />
            </telerik:GridNumericColumn>
            <telerik:GridButtonColumn CommandName="Delete" Text="Delete" UniqueName="column1"
                ButtonType="ImageButton" ConfirmDialogType="RadWindow">
                <HeaderStyle Width="5%" />
            </telerik:GridButtonColumn>
        </Columns>
        <EditFormSettings>
            <EditColumn UniqueName="EditCommandColumn1">
            </EditColumn>
        </EditFormSettings>
    </MasterTableView>
    <HeaderContextMenu EnableImageSprites="True" CssClass="GridContextMenu GridContextMenu_Default">
    </HeaderContextMenu>
</telerik:RadGrid>
I have a button I click that I then need to fill out an object with the selected rows data.  I am able to do so mostly by using the GridDataItem from the MasterTableView.GetSelectedItems(). From there, I access the .Text property of the table cell.
But with a GridDropDownColumn, I am after the Value of the dropdownlist item, not the Text.
How do I access this?
Thanks for any info.
Steele.
Marin
Telerik team
 answered on 01 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
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
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
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?