Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
51 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
123 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
191 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
140 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
149 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
131 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
145 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
4 answers
84 views
Hi, 

i am working on telerik grid.

 <telerik:RadGrid runat="server" ID="telerikGrid" AutoGenerateColumns="false"                                                        
                                                        AllowPaging="true" Skin="Outlook" PageSize="20" AllowSorting="True" ClientSettings-DataBinding-EnableCaching="true" Visible="false" OnItemCommand="gvTitlesInOperations_TitleDetails">
                                                        <MasterTableView DataKeyNames="ID" InsertItemPageIndexAction="ShowItemOnCurrentPage"
                                                            EnableHeaderContextMenu="True" CommandItemDisplay="Top">
                                                            <CommandItemSettings AddNewRecordText="" ShowAddNewRecordButton="False" ShowExportToExcelButton="True" />
                                                                <Columns>
                                                                    <telerik:GridBoundColumn DataField="MetaBook_ID" HeaderStyle-Width="60px" HeaderText="Book ID" />
                                                                    <telerik:GridBoundColumn DataField="Title" HeaderStyle-Width="360px" HeaderText="Title" />
                                                                    <telerik:GridBoundColumn DataField="SubTitle" HeaderStyle-Width="300px" HeaderText="Sub-title" />
                                                                    <telerik:GridBoundColumn DataField="abc" HeaderText="" />
                                                                    <telerik:GridBoundColumn DataField="xyz" HeaderText="" />
                                                                     <telerik:GridBoundColumn DataField="" HeaderText="" />
                                                                      <telerik:GridBoundColumn DataField="" HeaderText="" />                                                                
                                </telerik:GridButtonColumn>
                                                                </Columns>
                                                            <HeaderStyle Font-Bold="False" />
                                                        </MasterTableView>
                                                        <PagerStyle Mode="NextPrevAndNumeric" />
                                                    </telerik:RadGrid>


i just want to add one row. simple static one row to this grid in javascript in a simple function. plz guide me how to do this

function populategrid()
{
code here
}

regards,

Faisal
Iana Tsolova
Telerik team
 answered on 13 Jun 2011
1 answer
75 views
Hi

I already have text AND images in my ComboBoxItems, but I only show text in the text area.

Can I also show the image of my selected item in the text area?

TIA  
Helen
Telerik team
 answered on 13 Jun 2011
1 answer
188 views

Hi,

I am using RadEditor control in my website but not able to load the editor when I run the site.
Previously I was using .Net 2.0 and telerik version 2011.1.413.40 but as I mentioned in the this link
http://www.telerik.com/community/forums/aspnet-ajax/vs-extensions/314574.aspx I followed the instruction
and now I am facing the problem as "ASP.NET Ajax client-side framework failed to load." --Syntax error
for ScriptResource.axd and Telerik.Web.UI.WebResource.axd

The TargetFramework setting of my project is: .Net Framework 4;

The version of the Telerik.Web.UI assembly is: Product Version: 2011.1.413.40

Please help me in solving this issue.

Thanks

Rumen
Telerik team
 answered on 13 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?