Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
73 views
Hello,
I have two problems.

1> I need to have compare field validatory inside radgrid ( to confirm password)

2>  When user changes password text (inside edit form), We need to show additional confirm password textbox to reenter the password.

Any help would be appreciated

Thanks,
AV

Mira
Telerik team
 answered on 13 Jun 2011
1 answer
41 views
Hello,
    I'm having a very strange problem. I have a Master page with a RadScriptManager and a RadMenu on it. Any of the child pages that use this Master show up with errors in the Visual Studio 2010 designer. However, if I have the Master page already opened (like double click it from the solution explorer), the errors do not appear.

The error looks like this:
Error Creating Control - MainMenu
[A]Telerik.Web.UI.RadPanelBar cannot be cast to [B]Telerik.Web.UI.RadPanelBar.


It then goes on to delineate the versions of each assembly, which match exactly. If someone really thinks It's important I'll copy the whole thing, but I can't copy it and it's a lot of generated ids and such.

I already found a similar post (I can't seem to find it right now) that suggested that Visual Studio was opening two copies of the assembly and that I should run a batch and reg file to remedy it. That did solve a problem I was having, but not this one.

Thanks for any help :)
Georgi Tunev
Telerik team
 answered on 13 Jun 2011
5 answers
140 views
Hello Telerik Expert,
I cannot seem to update the appointment message in the RadScheduler. For example for July 22, 2001 for 12AM, if I enter the message "This is the appointment for noon", I cannot select it again and modify the message. It does nothing.

Thank you in advance
- Nate

Plamen
Telerik team
 answered on 13 Jun 2011
1 answer
43 views
With 'Out of the Box', I am able to get the Insert working for the RadScheduler but not the Delete, Update. For the Delete and Update, how can this be done as out of the box it does not provide for this feature. I like to do it nonbinding. If somebody can please pioint me out on how to handle the Delete and Update.

Thank you in advance.
Plamen
Telerik team
 answered on 13 Jun 2011
1 answer
109 views
Hi
I have successfully moved my expand/collapse default commands to the left of my titlebar using css.
.RadDock .rdTitleBar  
 {  
     text-align: left;  
 }  
 .RadDock .rdCenter .rdCommands  
 {  
     float: left !important;  
 }  
 .RadDock .rdTitleBar em  
 {  
     float: right !important;  
 }


However, i would like to have the expand/collapse default commands on the left AND the right of the titlebar.

Is this possible?
If so, how would i achieve this?

Many Thanks
Mark
Pero
Telerik team
 answered on 13 Jun 2011
4 answers
179 views
Hello,

I'm looking to create a JavaScript object that will accept as an argument a RadGrid.  From within the JavaScript object, I want to attach a function within the JavaScript object to an event within the RadGrid.  Specifically, I want to attach a function to the OnRowContextMenu.

To demonstrate this conceptually...

MyController = function (KeyID_ast, Grid_aob, ContextMenu_aob) {
 
    var _KeyVal_ain;
 
    Grid_aob.ClientSettings.ClientEvents.OnRowContextMenu = function (sender, args) {
        args.get_tableView().selectItem($get(args.get_id()));
        ContextMenu_aob.show(args.get_domEvent());
        _KeyVal_ain = args.getDataKeyValue(KeyID_ast);
    }
 
}
.
The "Grid_aob.ClientSettings.ClientEvents.OnRowContextMenu" assignment is a guess at what I could potentially do, but when I review the RadGrid documentation, there is no such capability.

As a comparison, I was looking at the RadMenu and RadContextMenu methods to add an event handler (e.g., menu.add_itemClicked(myItemClickedHandler)), but there is no reference in the documentation to a similar capability for the RadGrid.

Of course, I would try this, but I'm a fair bit off from getting to that point in my system, and I'd appreciate a sanity check before moving on.

Thank you for your assistance.
LeBear
Top achievements
Rank 1
 answered on 13 Jun 2011
1 answer
133 views
How could I get the selected value of a RadSlider using Request.Form?

Request.Form.Get("MainContent_RadSlider_Ticks_ClientState")

returns:

{"value":2,"selectionStart":2,"selectionEnd":0,"isSelectionRangeEnabled":false,"orientation":0,"smallChange":1,"largeChange":1,"trackMouseWheel":true,"showDragHandle":true,"showDecreaseHandle":true,"showIncreaseHandle":true,"width":"150px","height":"40px","animationDuration":50,"minimumValue":1,"maximumValue":7,"trackPosition":2,"liveDrag":true,"dragText":"Drag","thumbsInteractionMode":1}

What is the name "MainContent_RadSlider_Ticks_ClientState" and how quickly could I get the selected value which is 2 here?

Thanks,
Pooya
Top achievements
Rank 1
 answered on 13 Jun 2011
3 answers
129 views
I've got a modal window that's being used for Delete confirmation. The window is not centering however. See the attached.
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Modal="True" AutoSize="True" >
</telerik:RadWindowManager>
Georgi Tunev
Telerik team
 answered on 13 Jun 2011
4 answers
123 views
I'd need to create 4 columns at runtime and they should be grouped in one header.

For example, imagine I have 4 columns of AM, PM, EVE and Full and they should all be under one header (Monday):

------------------------
      Monday
AM PM EVE Full
------------------------
1 1 1 3
2 1 1 4
1 1 1 3

I just made up the numbers to demonstrate there should be 4 columns appearing

How could I achieve this?

Many thanks,
Mira
Telerik team
 answered on 13 Jun 2011
8 answers
137 views
Hi,

I have created a user control along with ordering, paging etc. On the first time when grid loads, master check box work good but after clicking on column for ordering, master check box did not work.
When I disable the ajax it work fine.
Please suggest...

Regards,
Reyaz


 <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">

        <script type="text/javascript">
            function CloseWindow() {
                window.close();
                return true;
            }
            var column = null;
            function MenuShowing(sender, args) {
                if (column == null)
                    return;
                var menu = sender;
                var items = menu.get_items();
                if (column.get_dataType() == "System.String") {
                    var i = 0;
                    while (i < items.get_count()) {
                        if (!(items.getItem(i).get_value() in { 'NoFilter': '', 'Contains': '', 'DoesNotContain': '', 'StartsWith': '', 'EndsWith': '', 'NotEqualTo': '', 'EqualTo': '' })) {
                            var item = items.getItem(i);
                            if (item != null)
                                item.set_visible(false);
                        }
                        else {
                            var item = items.getItem(i);
                            if (item != null)
                                item.set_visible(true);
                        }
                        i++;
                    }
                }
                column = null;
            }
            function filterMenuShowing(sender, eventArgs) {
                column = eventArgs.get_column();
            }
            function GetItems(sender, eventArgs) {

                sender.requestItems(sender.get_text(), false);
            }
            function SelectSingleRB(objRef) {
                var row = objRef.parentNode.parentNode;
                var GridView = row.parentNode;
                var inputList = GridView.getElementsByTagName("input");

                for (var i = 0; i < inputList.length; i++) {
                    if (inputList[i].type == "radio" && inputList[i] != objRef) {
                        inputList[i].checked = false;
                    }
                }
            }

            function CheckUncheckAllCheckBoxAsNeeded() {

                var totalCheckboxes = $("#<%=grdFieldSelector.ClientID%> input[id*='chkSelect']:checkbox").size();
                var checkedCheckboxes = $("#<%=grdFieldSelector.ClientID%> input[id*='chkSelect']:checkbox:checked").size();
                if (totalCheckboxes > 0 && totalCheckboxes == checkedCheckboxes)
                    if (totalCheckboxes == checkedCheckboxes) {
                    $("#<%=grdFieldSelector.ClientID%> input[id*='chkCheckUncheckAll']:checkbox").attr('checked', true);
                }
                else {
                    $("#<%=grdFieldSelector.ClientID%> input[id*='chkCheckUncheckAll']:checkbox").attr('checked', false);
                }
                else {
                    $("#<%=grdFieldSelector.ClientID%> input[id*='chkCheckUncheckAll']:checkbox").attr('checked', false);
                }
            }
            $(document).ready(function() {
                $("#<%=grdFieldSelector.ClientID%> input[id*='chkSelect']:checkbox").click(CheckUncheckAllCheckBoxAsNeeded);
                $("#<%=grdFieldSelector.ClientID%> input[id*='chkCheckUncheckAll']:checkbox").click(function() {
                    if ($(this).is(':checked'))
                        $("#<%=grdFieldSelector.ClientID%> input[id*='chkSelect']:checkbox").attr('checked', true);
                    else
                        $("#<%=grdFieldSelector.ClientID%> input[id*='chkSelect']:checkbox").attr('checked', false);
                });
                CheckUncheckAllCheckBoxAsNeeded();
            });
        </script>

    </telerik:RadCodeBlock>
    <telerik:RadAjaxManager ID="rajxMgrFieldDataSelector" runat="server">
        <ajaxsettings>
            <telerik:AjaxSetting AjaxControlID="rajxMgrFieldDataSelector">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="grdFieldSelector" />
                    <telerik:AjaxUpdatedControl ControlID="lblItemCollection" />
                    <telerik:AjaxUpdatedControl ControlID="hdnOrder" />
                    <telerik:AjaxUpdatedControl ControlID="hdnOrder" />

                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="grdFieldSelector">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="grdFieldSelector" LoadingPanelID="rajxLdpanFieldDataSelector" />
                    <telerik:AjaxUpdatedControl ControlID="lblItemCollection" />
                    <telerik:AjaxUpdatedControl ControlID="hdnOrder" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </ajaxsettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="rajxLdpanFieldDataSelector" runat="server" />
    <telerik:RadSkinManager ID="RadSkinManagerFieldSelector" runat="server" Enabled="true"
        ShowChooser="false">
        <targetcontrols>
            <telerik:TargetControl ControlID="btnOK" />
            <telerik:TargetControl ControlID="grdFieldSelector" />
        </targetcontrols>
    </telerik:RadSkinManager>
    <telerik:RadFormDecorator ID="FormDecorator1" runat="server" DecoratedControls="all">
    </telerik:RadFormDecorator>
Reyaz
Top achievements
Rank 1
 answered on 13 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?