Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
129 views

Can I force the ItemCommand server side event to fire from the client somehow?

Is it a matter of invoking javascript:__doPostBack('MyGridId$ctl00$ctl02$ctl00$RebindGridButton' somehow?

thanks
Roatin Marth
Top achievements
Rank 1
 answered on 17 Jan 2011
1 answer
155 views
Hi I'm looking for a solution which denies the possibilty to float the Dock outside the Dock Layout. Is that possibile?

Thanks in advance for your help.
Luke
Pero
Telerik team
 answered on 17 Jan 2011
2 answers
784 views
I have a simple Rad Grid with a GridButtonColumn in the item template. I have no problems attaching a onclick attribute through code to fire some Javascript on the page using the ItemCreated event.

The problem is that I cannot figure out how to prevent the user click (on a button or link style column) from causing a postback. I can clear the standard postback function with:

button.Attributes.Add("href", "#")

on the ItemDataBound event, but it still does a post back.

Any ideas?

FYI, the javascript set the URL and opens a RadWindow to a page with more details on the item in the grid, but the postback causes an unecessary page refresh and messes up the rad window as well.
Bryan Kowalchuk
Top achievements
Rank 1
 answered on 17 Jan 2011
1 answer
136 views
Hi ALL,

          On my web page i have RadContexMenu with two static value and after that bind from database. On same page i have one RadGrid.

          When user click on any of the static value then i dont want to update RadGrid, but when user try to select any value which bind from database on ContextMenu then i have to update my RadGrid.
 
          I had used AjaxLoadingPanel also, which would be affect only when user select any value which bind from database on ContexMenu.

          Please help me.

Here i am defining my code.

  
<telerik:RadAjaxManager runat="server" ID="RadAjaxManager1" OnAjaxRequest="RadAjaxManager1_AjaxRequest"
        ClientEvents-OnRequestStart="RequestStart" ClientEvents-OnResponseEnd="ResponseEnd">
  <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="FavouritesMenu">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="FavouritesMenu" />
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                    <telerik:AjaxUpdatedControl ControlID="StatusBarLabel" />
                </UpdatedControls>
            </telerik:AjaxSetting>
   </AjaxSettings>
</telerik:RadAjaxManager>
 
 <telerik:RadContextMenu ID="Menu" runat="server"
                            DefaultGroupSettings-OffsetX="500" Flow="Vertical" OnItemClick="Menu_ItemClick"
                            Skin="Office2007">
                            <Items>
                                <telerik:RadMenuItem
                                     
                                    Text="Add" Value="Add">
                                </telerik:RadMenuItem>
                                <telerik:RadMenuItem
                                    Style="left: 790px; top: 130px"
                                    Text="Remove" Value="Remove">
                                </telerik:RadMenuItem>
                            </Items>
                            <ExpandAnimation Type="None" />
                            <CollapseAnimation Type="None" />
                        </telerik:RadContextMenu>
 <telerik:RadGrid ID="RadGrid1" runat="server" OnNeedDataSource="RadGrid1_NeedDataSource"
                                    enableajax="true" ShowGroupPanel="True" Width="100%" AllowSorting="True" AllowMultiRowSelection="True"
                                    OnCreateColumnEditor="RadGrid1_CreateColumnEditor" Height="100%" Skin="Vista"
                                    OnUpdateCommand="RadGrid1_UpdateCommand" OnDeleteCommand="RadGrid1_DeleteCommand"
                                    OnItemDataBound="RadGrid1_ItemDataBound" ClientSettings-ClientEvents-OnRowSelecting="RestrictSelect"
                                    PageSize="50" AllowCustomPaging="True" AllowPaging="true"> </telerik:RadGrid>

        
Maria Ilieva
Telerik team
 answered on 17 Jan 2011
5 answers
165 views
Hi

I am using windows 7 32 bit.

I am unable to install RadControls for ASP.NET AJAX Q1 2010.

Telerik RadControls Setup Wizard ended prematurely because of an error...." (see attached screen shot)
Please do the needful at the earliest.

Regards
Erjan Gavalji
Telerik team
 answered on 17 Jan 2011
1 answer
90 views
Hello In my page date time control not working

   <td style="font-size: 8pt">
                                        Clinic Start Date
                                    </td>
                                    <td>
                                        <telerik:RadDateTimePicker ID="dtpStartDate" runat="server" AutoPostBackControl="Both"
                                            ShowPopupOnFocus="true">
                                        </telerik:RadDateTimePicker>
                                     
                                    </td>
                                </tr>
                                <tr>
                                    <td style="font-size: 8pt">
                                        Clinic End Date
                                    </td>
                                    <td>
                                        <telerik:RadDateTimePicker ID="dtpEndDate" runat="server" AutoPostBackControl="Both"
                                            ShowPopupOnFocus="true" OnSelectedDateChanged="dtpEndDate_SelectedDateChanged">
                                        </telerik:RadDateTimePicker>
                                    </td>


don't know what happens but want to do like following link

http://demos.telerik.com/aspnet-ajax/calendar/examples/datetimepicker/clientsideevents/defaultcs.aspx

Needd help urgent
Maria Ilieva
Telerik team
 answered on 17 Jan 2011
7 answers
160 views
I'm using the default skin for rad menu.

For each menu item I have specified a:

HoveredImageUrl
ImageURL
ClickedImageURL

I also have an image I would like to use when the user has clicked a menu item and browsed to the corresponding menu item page. ClickedImageURL swaps the image when I click, how do I keep this image active when the user hits the new page?

Thanks in advance.
Markus
Top achievements
Rank 2
 answered on 17 Jan 2011
1 answer
125 views
DataFormatString doesn't seem to work with binding the grid client side. Any alternative available to achieve the same?
Iana Tsolova
Telerik team
 answered on 17 Jan 2011
4 answers
109 views
Hello,

I'm building a MVC program.

In the view, I have a combo box:

    <telerik:RadComboBox ID="RadComboBox1" runat="server"
        DataSourceID="EntityDataSource1" DataTextField="data"
        DataValueField="value">
    </telerik:RadComboBox>

I can populate the combo box with a list of options provided by the database (through Entity).

Here is my question.

Say, in some situations, when the page is loaded, I want option 1 to be selected first; then in some other situations, when the page is loaded, I want a different option, say option 3, to be selected.  And say, the situation will depend on a magic number I store in the session.

Is there anyway I can control which option to be selected when a page is loaded (without using ajax call after the page is loaded)?

Also, is there any small example to demonstrate how to control which item to be selected at the beginning, in MVC environment?

Many thanks!
Kalina
Telerik team
 answered on 17 Jan 2011
0 answers
60 views
Hello Team,

Am using the Default Skin for my RadMenu.I want the arrow to be placed to the right on the top level menus.
And I do not want a down arrow in Top Menus, where I do not have Sub Menu Items.

How do I achive this.Could you provide the CSS class to be changed and the details to be provided in that class, so that I get the desired result.

Your help would be much appreciated.

Thanks,
Ramesh
Ramesh
Top achievements
Rank 1
Iron
 asked on 17 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?