Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
366 views
When searching, I was able to find this http://www.telerik.com/community/forums/aspnet-ajax/grid/time-calculation-in-rad-grid.aspx

This is the solution I had initially implemented on my own, however i've since changed the format string and it can no longer be readily parsed by using DateTime.Parse().

Rather than doing some obscure string manipulation I'm wondering how I can access the raw data used when filling a specific cell. To clarify, I want to be able to access the data source used to build the cell, having only the GridDataItem to start.

Martin
Telerik team
 answered on 28 Jan 2010
1 answer
85 views
I am trying to figure out how to make my RadTreeView update after one of its RadTreeViewContextMenu in clicked. I have tried adding the control to the RadAjaxManager:

            <telerik:AjaxSetting AjaxControlID="treeGroupsContextMenu"> 
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="treeGroups" LoadingPanelID="LoadingPanel1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting>   

That's doesn't work.. I have also looked for a AutoPostback property and see none. How can i accomplish this?

Duncan


Vesko
Top achievements
Rank 2
 answered on 28 Jan 2010
4 answers
162 views
hi please see attachment, here i used checkbox column where the check box is checked by default when ther is no records in the grid. please help to remove the default check.

<telerik:GridClientSelectColumn UniqueName="CheckboxSelectColumn" HeaderStyle-HorizontalAlign="Center" 
                                HeaderStyle-Width="25px" ItemStyle-Width="25px" ItemStyle-HorizontalAlign="Center" 
                                HeaderStyle-CssClass="radgridleftmostColumn" HeaderStyle-VerticalAlign="Middle" /> 
Saran kumar
Top achievements
Rank 1
 answered on 28 Jan 2010
13 answers
158 views
Have a problem with the context menu on the radmenucontrol
The contextmenu works fine but here is the scenario

MENU ITEM 1         MENU ITEM 2              MENU ITEM 3
                                   - SUBMENU ITEM 2-1        -SUBMENU ITEM 3-1
                                                                                             - SUBMENU ITEM 3-2

Ok, the context menu will work on the lowerst item in the tree
In this case it will work on
- MENU ITEM 1
- SUBMENU ITEM 2-1
- SUBMENU ITEM 3-2

But all other items the context menu is disabled for some reason.

Here is the code.
ASPX :
<telerik:RadContextMenu ID="RadContextTopMenu" runat="server" OnClientShowing="topmenuShowing" OnItemClick="RadTopMenu1_ItemClick" Skin="Windows7">  
   <Items> 
       <telerik:RadMenuItem runat="server" Text="Menupagina toevoegen">  
       </telerik:RadMenuItem> 
       <telerik:RadMenuItem runat="server" Text="SubPagina Toevoegen">  
       </telerik:RadMenuItem> 
       <telerik:RadMenuItem runat="server" Text="Pagina Wijzigen">  
       </telerik:RadMenuItem> 
       <telerik:RadMenuItem runat="server" Text="Pagina Verwijderen">  
       </telerik:RadMenuItem> 
   </Items> 
   <Targets> 
       <telerik:ContextMenuControlTarget ControlID="RadTopMenu1" /> 
   </Targets> 
</telerik:RadContextMenu>   
 
<telerik:RadScriptBlock runat="server" ID="RadScriptBlock2">  
 
    <script type="text/javascript">  
        function topmenuShowing(sender, args) {  
            var target = args.get_targetElement();  
            if (target.className != "rmText") {  
                args.set_cancel(true);  
            }  
            else {  
                var panelBarItem = $find("<%=RadTopMenu1.ClientID %>").findItemByText(target.innerHTML);  
                sender.trackChanges();  
                sender.get_items().getItem(0).get_attributes().setAttribute("mItem", panelBarItem.get_attributes().getAttribute("PageID"));  
                sender.commitChanges();  
            }  
            sender.hide();  
        }  
   
    </script> 
 
</telerik:RadScriptBlock> 
 <telerik:RadWindowManager ID="topMenuradwindow" EnableViewState="false" runat="server" Skin="Windows7">  
</telerik:RadWindowManager>      
 
<telerik:RadMenu ID="RadTopMenu1" runat="server" OnItemClick="Click" Style="z-index: 2;" /> 
  

VB, just for info but this works
Protected Sub RadTopMenu1_ItemClick(ByVal sender As Object, ByVal e As RadMenuEventArgs)  
       Private Sub BindToDataSet()  
 
        Dim adapter As New SqlDataAdapter("SELECT * FROM TblPages where MenuID = " + MenuIDvalue, _  
            ConfigurationManager.ConnectionStrings("Varodb").ConnectionString)  
 
        Dim Menu As New DataSet()  
 
        adapter.Fill(Menu)  
        RadTopMenu1.DataTextField = "Pagename" 
        RadTopMenu1.DataFieldID = "ID" 
        RadTopMenu1.DataFieldParentID = "PageID" 
 
        RadTopMenu1.DataSource = Menu  
        RadTopMenu1.DataBind()  
    End Sub 
 
 Protected Sub RadMenu1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadMenuEventArgs) Handles RadTopMenu1.ItemDataBound  
        Dim dataRow As DataRowView = DirectCast(e.Item.DataItem, DataRowView)  
        e.Item.Attributes("PageID") = dataRow("ID").ToString()  
    End Sub 
 
        Dim MenuitemValue As String = RadContextTopMenu.Items(0).Attributes("mItem").ToString()  
 
        Select Case e.Item.Text  
            Case "Menupagina toevoegen" 
 
              'some code  
            Case "SubPagina Toevoegen" 
 
                'some code  
                Exit Select 
 
            Case "Pagina Wijzigen" 
 
               'some code  
 
                Exit Select 
 
 
            Case "Pagina Verwijderen" 
 
                'some code  
                Exit Select 
 
        End Select 
 
 
    End Sub 


But i think there is something wrong with this line :

sender.get_items().getItem(0).get_attributes().setAttribute(

"mItem", panelBarItem.get_attributes().getAttribute("PageID"));

Anyone has an idea ?

 

Veselin Vasilev
Telerik team
 answered on 28 Jan 2010
2 answers
137 views
I'm trying to add a label control to a TreeNode at run time.

My logic is basically as follows:

RadTreeNode childNode = new RadTreeNode("text"); 
Label lbl1 = new Label(); 
lbl1.Text = "text <br/> and additional information"; 
childNode.controls.Add(lbl1); 
 
parentNodes.nodes.add(childnode); 
 

My problem is that when this renders, the first line of text no longer appears NEXT to the line indicating its position in the tree.  Instead, the entire node appears several spaces BELOW the tree view line.

so instead of looking like

+ -- Text
       and additional information

it looks like
+--
   
    Text
    and additional information

Is there any way to use a line break and still have the node appear next to the tree line?


kollam2003
Top achievements
Rank 1
 answered on 28 Jan 2010
1 answer
106 views
I want to add a css class to a checkbox thats beeing styled by a FormDecorator. How do I do this?
Georgi Tunev
Telerik team
 answered on 28 Jan 2010
2 answers
189 views
Is there a specification document available for the sprite png file for the Rad Combo Box Custom Skin?

Thanks
Thomas
Kamen Bundev
Telerik team
 answered on 28 Jan 2010
1 answer
107 views
Hi,

I am using RadGrid. I have a masterpage. In it, I have a left menu and the RadGrid in the contentPaceholder. I have wrapped the contentPlaceholder around a div tag. Therefore whenever the Radgrid has to stretch it shows the horziontal scrollbar. When it does this, the Right hand border of the RadGrid cuts the stretched Grid, as shown in the attached picture. I tried using various "Border" properties of the grid, but it either doesn't work or clears away the entire border. Can you suggest me an option whereby The doted border on the right hand is not displayed keeping the other borders intact?

Thanks
Dimo
Telerik team
 answered on 28 Jan 2010
1 answer
121 views

I have used RadAjaxLoadingPanel in master page to show the progressbar in content pages while application is busy for this every thing is working fine except button,If i click on button nothing is happening can i know what is the reason if problem is there is there any solution?

Suggest me.

 

Code:

</

 

asp:ScriptManager>

 

 

 

 

 

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">

 

 

 

 

 

<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">

 

 

 

 

 

 

</asp:ContentPlaceHolder>

 

 

 

 

 

</telerik:RadAjaxPanel>

 

 

 

 

 

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px"

 

 

 

 

 

Width="75px" Skin="Sunset">

 

 

 

 

 

</telerik:RadAjaxLoadingPanel>

 

Princy
Top achievements
Rank 2
 answered on 28 Jan 2010
3 answers
151 views
I have an "OnRowSelected" event that I use to process the state of a bunch of controls on my grid.  The event fires when a user clicks on a row or [ctrl]-clicks on a row.  I noticed that when the user drags to select multiple rows or [shift]-clicks to select multiple rows the "OnRowSelected" event doesn't fire. 

Does anyone know how I can force the OnRowSelected event to fire when the user selects multiple rows as by dragging to select or by holding [shift} and selecting?

Thanks!
Pavel
Telerik team
 answered on 28 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?