Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
209 views
Hello, 

I would like to tweak some of the UI components on the cells when items are being edited / inserted.

I'm able to identify when an item is being edited through TreeListDataItem.IsInEditMode property, but I cannot find the way to know if the item is being inserted.

So the question will be: how to know within the ItemCreated event if an item is in insert mode?

Thanks in advance
Tsvetina
Telerik team
 answered on 10 Aug 2011
1 answer
91 views
I've created an ascx control like this:
<telerik:RadAjaxPanel runat="server" ID="rpan">
    <div style="width: 400px;">
    <telerik:RadToolBar runat="server" ID="rToolBar"
        OnClientButtonClicking="onItemClicking" onbuttonclick="rToolBar_ButtonClick">
    </telerik:RadToolBar>
    </div>

    <telerik:RadTreeView runat="server" ID="rTree"
        Skin="Vista"
        DataFieldID="ID"
        DataFieldParentID="idParent"
        DataTextField="Cd_Menu"
        DataValueField="link"
        OnClientDoubleClick="OnDoubleClick"
        OnNodeEdit="RadTreeView1_NodeEdit"
        EnableDragAndDrop="false"
        EnableDragAndDropBetweenNodes="false"
        OnNodeDrop="RadTreeView1_HandleDrop"
        OnClientNodeClicked="onNodeClicked"
        OnClientNodeClicking="onNodeClicking"
        OnClientNodeDropping="onNodeDropping"
        OnClientNodeDragging="onNodeDragging"
        OnNodeDatabound="rTree_NodeDataBound">
    </telerik:RadTreeView>
</telerik:RadAjaxPanel>


I also have an aspx page with a RadMenu created at runtime with databinding.
I tried to add the ascx control inside a RadMenuItem server side:

Telerik.Web.UI.RadMenuItem subRmi = new Telerik.Web.UI.RadMenuItem();
subRmi.ItemTemplate = new FavouritesTemplate(this.Page);

I have declared this class inside the same aspx page:
class FavouritesTemplate : ITemplate
    {
        private Page _page = null;

        public FavouritesTemplate(Page page)
        {
            this._page = page;
        }

        public void InstantiateIn(System.Web.UI.Control container)
        {
            Favourites fav = ((Favourites)this._page.LoadControl("~/Web.UserControls/Favourites.ascx"));
            fav.ID = "favourites";
            container.Controls.Add(fav);
        }
    }

The ascx control inside the RadMenuItem is shown correctly but doesn't work properly.
Clicking on a RadToolBarButton the whole aspx page do postback instead of only the ascx content (because of RadAjaxPanel)

Putting the same ascx control directly inside the aspx page (not inside the the RadMenuItem) works as expected (partial postback of the ascx content)

Maria Ilieva
Telerik team
 answered on 10 Aug 2011
1 answer
118 views
As we have fixed image formats for some images I would like to control the cropping from outside the control with javascript and disable the crop option from the toolbar or maybe the whole toolbar. Is this possible?

Rumen
Telerik team
 answered on 10 Aug 2011
3 answers
794 views
Hi,

i have a radgrid created programatically in code (.cs) file.
now i want to prompt user when trying to delete records in grid..done in below example.
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/alleditablecolumns/defaultcs.aspx

now as my grid is generated dynamically so i didnt able to add ItemDataBound event throgh code as i added itemupdated event...

grid.ItemUpdated +=

new GridUpdatedEventHandler(grid_ItemUpdated);

 



can you please suggest how to solve it.

thanks in advance.
Gabe Silvarajoo
Top achievements
Rank 2
 answered on 10 Aug 2011
1 answer
111 views
I'm using your example to print a pane with stylesheets. (http://www.telerik.com/help/aspnet-ajax/splitter-panes-printing.html)

Inside this panel I have several listviews that contain buttons  (Add, Edit and Delete)
I want to supress these buttons when I print.  What do I need to put in the stylesheet to do this?
 
Dobromir
Telerik team
 answered on 10 Aug 2011
1 answer
128 views
Hi Forum!

I connected a radchart to a sqldatasucer, from that datasource i'll get 11 rows and 2 columns where the frist column is name and second is value. it all goes right, but the x-axis is only showing the first 7 rows. I wwent to the plot area -> x-axis and saw property called max value, i dont think this is the property that is confining my rows but still, when i try to change its value it automaticly goes back to 7. Can anyone help me?

Many thanks,
   FEST
Peshito
Telerik team
 answered on 10 Aug 2011
1 answer
194 views
I have the following,

<telerik:RadListView ID="RadListView1" runat="server" DataSourceID="SqlDataSource2" OnSelectedIndexChanged="RadListView1_SelectedIndexChanged">
 <ItemTemplate>
  <label id="dftLabel">Templates</label><br />
  <asp:LinkButton ID="LinkButton1" runat="server" Text='<%#Eval("title")%>' CommandName="Select" CommandArgument='<%#Eval("templateID")%>'></asp:LinkButton>
 </ItemTemplate>
</telerik:RadListView>

and I'm having a hard time getting the value of CommandArgument.

Any suggestions?

Thanks.
tim
Top achievements
Rank 1
 answered on 10 Aug 2011
2 answers
157 views
I have a Radcombobox and a button.

Onclientclick event of the button I have written a javascript function.
From this function I want to fire the server side  OnSelectedIndexChanged event of the Combo box.

How can I do it !
Anirban
Top achievements
Rank 1
 answered on 10 Aug 2011
4 answers
247 views
Hi i get data from client side using  JQuery and JSON webservice, can i bind this data to RadGrid on Client side without postback
i need to do the following thing on client side

1. Create template columns on client side ?
2. Sorting and Paging clientside
3. Clear RadGrid

can i have RadGrid with the dropdown column like Dropbox , can i create this on client side i attach the picture of  DropBox screen shot
Veli
Telerik team
 answered on 10 Aug 2011
1 answer
73 views
I have a radgrid with "exporttoexcelbutton". Export to excel has got the option "openInNewWindow" enabled. After clicking the exporttoexcelbutton, grid is beeing rebound, and next one more time. Why? How to disable it.

PS I have any old version: Q3 2009 of ASPNET.AJAX.
Shinu
Top achievements
Rank 2
 answered on 10 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?