Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
798 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
141 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
172 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
95 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
172 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
127 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
112 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
63 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
1 answer
102 views
Hello,  

I have successfully implemented the GridSettingsPersister for the grid control on a save button click event.  Now I would like to take it a step further and automatically save the layout of the grid when the user makes a change to his/her grid (ie: move a column, sort, change width etc...).  What event would I use to trigger the save?

I would like it to be seamless to the user, no clicking of a save button necessary.

Thank you very much for the help!
Iana Tsolova
Telerik team
 answered on 17 Jan 2011
5 answers
234 views
Hello

I want to show images in my combo box items and i've used ImageUrl property for RadComboBoxItem to show the images. But when i  select an item the image is not shown in the selected item.

The items dont have any text and they are just images. So i'm not able to see the selected image and the selected item is shown as empty (since i dont have any text).

Any ideas?

Yana
Telerik team
 answered on 17 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?