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


I have a collection of key value pairs
or

 I can say details of a single person

or

a single record from a  table in a database


I have to show them in a table.

 
(I cant use grid as such)
because my data  have a lay out like  given bellow



Full name                      :Alen
Total balance leave      :100
Leave taken                  :3
Leave waiting approval :8
Leave remaining          :89

Can i configure a Rad grid to show such a data?
if not which rad control i use to show a data as given above?
This is a bit urgent case for me.

I would like to have good look and feel like grid for the table too that is why I am contacting telerik

PureRamu
Top achievements
Rank 1
 answered on 28 May 2009
2 answers
155 views
Hi,

I've Copy/Paste the code of this application (DefaultCS.aspx / DefaultCS.aspx.cs)
But it does not work in Visual Studio 2008

Errors:
    * <sds:SessionDataSource...  (I've replaced it by "<asp:SqlDataSource...")
    * <qsf:... I've deleted them
    * Into <asp:SqlDataSource...  :  PrimaryKeyFields, DisplayWarning and SessionKey are not accepted by Visual Studio

I don't touch DefaultCS.aspx.cs

Can you help me please ??
MARQUES
Top achievements
Rank 1
 answered on 28 May 2009
1 answer
110 views
Hi,

Is the Drag-And-Drop Scheduler works with Visual Studio 2008 ??
Source Code

Thanks
Veselin Vasilev
Telerik team
 answered on 28 May 2009
2 answers
149 views
Hello,

I'm using the combobox several times on my page.

The first issue is as follows:

I have two comboboxes inside a div. preceding each combobox is a label. All these controls fit inside a single row and. When I add one of the comboboxes to be modified during an ajax callback with an RadAjaxManagerI get another div element that is part of the combobox that changes the positioning of my elements and they no longer stay in the same line. The name of the div is suffixed with Panel.

The second issue:

In the same page as before, I have a GridView. Inside the GridView I have an EditTemplate that contains a RadComboBox control. When I click on the edit button of a certain row in the grid, the combobox is rendered with a gray image (which I think is part of the sprite skin) below it. I couldn't find a way to eliminate its appearance.

This is the template column which contains the combbox
<asp:TemplateField HeaderText="aaaHeader">  
                    <ItemTemplate> 
                        <asp:Label ID="aaaLabel" runat="server" /> 
                    </ItemTemplate> 
                    <EditItemTemplate> 
                        <telerik:RadComboBox ID="aaaBox" Width="50px" runat="server" MarkFirstMatch="true" 
                            AllowCustomText="false">  
                        </telerik:RadComboBox> 
                    </EditItemTemplate> 
                </asp:TemplateField> 


Any Ideas?

Thanks,

Oded Tal
Brian Cauley
Top achievements
Rank 1
 answered on 28 May 2009
6 answers
124 views
I've a grid in a UserControl. The CommandItem template is defined like this ...
        <CommandItemTemplate> 
        <telerik:RadToolBar runat="server" ID="GridCommandItemToolbar" AutoPostBack="false" Skin="WebBlue" 
            OnClientButtonClicked="ToolBarButtonClicked" Style="width: 100%" Visible="true"
            <CollapseAnimation Duration="200" Type="OutQuint" /> 
            <Items> 
                <telerik:RadToolBarButton runat="server" Enabled="false" ToolTip="Add Document" Value="AddDocument" ImageUrl="~/Images/Office/document_file/png/16/document_add_16x16.png"
                </telerik:RadToolBarButton> 
                <telerik:RadToolBarButton runat="server" Enabled="false" ToolTip="Edit Document" Value="EditDocument" ImageUrl="~/Images/Office/document_file/png/16/document_edit_16x16.png"
                </telerik:RadToolBarButton> 
                <telerik:RadToolBarButton runat="server" Enabled="false" ToolTip="Delete Document" Value="DeleteDocument" ImageUrl="~/Images/Office/document_file/png/16/document_delete_16x16.png"
                </telerik:RadToolBarButton> 
                <telerik:RadToolBarButton runat="server" IsSeparator="true"></telerik:RadToolBarButton> 
                <telerik:RadToolBarButton runat="server" Enabled="false" ToolTip="View Document History" Value="ViewHistory" CheckOnClick="true" Checked="false" AllowSelfUnCheck="true" ImageUrl="~/Images/Office/document_file/png/16/document_properties_16x16.png"
                </telerik:RadToolBarButton> 
 
            </Items> 
        </telerik:RadToolBar> 
        </CommandItemTemplate> 

I need to be able to enble/disable the buttons based on values and events on the calling page.

I thought to do it like this ...
var tb = $find("<%= GridCommandItemToolbar.ClientID %>"); 
But "GridCommandItemToolbar" isn't recognised, which I suppose is OK. But I can't seem to create a property on the UserControl that lets me get at the ToolBar server-side so I can access its ClientID in the <% %> code block on the page.

Can anyone offer a solution?

--
Stuart






Stuart Hemming
Top achievements
Rank 2
 answered on 28 May 2009
0 answers
124 views
This is an FYI. I created a support ticket for this issue and thought it would be helpful to post the work-around for others.

I was using the RadGrid with the header context menu enabled and using a web service as the data source. The issue I had was with hiding/showing columns.

1. Use header context menu to hide column.
2. Use menu to show hidden column.
3. Go to another page.
4. The shown column is again hidden.

Here's the fix that was provided from Telerik.

ASPX
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication4._Default" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
<head runat="server"
    <title></title
 
    <script type="text/javascript"
        function RadGrid1_Command(sender, args) { 
            var mtv = args.get_tableView(); 
            for (var i = 0j = mtv.get_columns().length; i < j; i++) { 
                if (mtv.get_columns()[i].Display) 
                    mtv.get_columns()[i].Display = null
            } 
        } 
    </script> 
 
</head> 
<body> 
    <form id="form1" runat="server"
    <div> 
        <asp:ScriptManager ID="ScriptManager" runat="server" AsyncPostBackTimeout="1000" 
            ScriptMode="Release"
        </asp:ScriptManager> 
        <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" AllowSorting="True" 
            AllowMultiColumnSorting="False" AutoGenerateColumns="False" Width="100%" AllowMultiRowSelection="True" 
            Height="565px" PageSize="20" ShowStatusBar="True" BorderWidth="1px" GridLines="Vertical"
            <MasterTableView EnableHeaderContextMenu="true"
                <Columns> 
                    <telerik:GridBoundColumn DataField="NUMBERS" HeaderText="NUMBERS" UniqueName="NUMBERS"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="LETTERS" HeaderText="LETTERS" UniqueName="LETTERS"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="WORDS" HeaderText="WORDS" UniqueName="WORDS"
                    </telerik:GridBoundColumn> 
                </Columns> 
            </MasterTableView> 
            <ClientSettings AllowColumnsReorder="true" ColumnsReorderMethod="Reorder" ReorderColumnsOnClient="true"
                <ClientEvents OnCommand="RadGrid1_Command" /> 
                <Scrolling AllowScroll="True" UseStaticHeaders="True" /> 
                <Resizing AllowColumnResize="true" /> 
                <Selecting AllowRowSelect="true" /> 
                <DataBinding Location="~/TestService.asmx" SelectMethod="GetData"
                </DataBinding> 
            </ClientSettings> 
        </telerik:RadGrid> 
    </div> 
    </form> 
 
    <script type="text/javascript"
        var RadGrid1_ClientId = "<%= RadGrid1.ClientID %>"
    </script> 
 
</body> 
</html> 
 

Web Service (for reference)
    [WebService(Namespace = "http://tempuri.org/")] 
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] 
    [ScriptService] 
    [System.ComponentModel.ToolboxItem(false)] 
    public class TestService : System.Web.Services.WebService { 
 
        [WebMethod(EnableSession = true)] 
        public Dictionary<stringobject> GetData(int startRowIndex, int maximumRows, List<GridSortExpression> sortExpression, List<GridFilterExpression> filterExpression) { 
            Dictionary<stringobject> data = new Dictionary<stringobject>(); 
            List<object> rows = new List<object>(); 
 
            for (int i = 0; i < 100; i++) { 
                rows.Add(new { 
                    NUMBERS = i, 
                    LETTERS = "A"
                    WORDS = "One" 
                }); 
                rows.Add(new { 
                    NUMBERS = i, 
                    LETTERS = "B"
                    WORDS = "Two" 
                }); 
                rows.Add(new { 
                    NUMBERS = i, 
                    LETTERS = "C"
                    WORDS = "Three" 
                }); 
                rows.Add(new { 
                    NUMBERS = i, 
                    LETTERS = "D"
                    WORDS = "Four" 
                }); 
                rows.Add(new { 
                    NUMBERS = i, 
                    LETTERS = "E"
                    WORDS = "Five" 
                }); 
                rows.Add(new { 
                    NUMBERS = i, 
                    LETTERS = "F"
                    WORDS = "Six" 
                }); 
            } 
 
            data.Add("Count", rows.Count); 
 
            int numElements = maximumRows; 
            if (maximumRows > (rows.Count - startRowIndex)) { 
                maximumRows = rows.Count - startRowIndex; 
            } 
 
            var tmpData = rows.GetRange(startRowIndex, maximumRows); 
 
            data.Add("Data", tmpData); 
 
            return data; 
        } 
    } 

Jeff
Top achievements
Rank 1
 asked on 28 May 2009
2 answers
110 views
Hi

Is it possible to add attributes to the SchedulerAttributeCollection from the server side event creation so that they can be accessed from the client side? I need to pass custom attributes to the client side from the server side. If there is a better way to do this please let me know.

I should add that I'm binding to a generic List(Of AppointmentInfo)

Cheers
Jon
Jonathan Levy
Top achievements
Rank 1
 answered on 28 May 2009
3 answers
235 views
I am trying to customize my PDF when I export.  I was wondering how to

1.  Add a title to my PDF file.
2. Make it landscape.
3. How to set a certain width to each column.

Thanks for your help.
Princy
Top achievements
Rank 2
 answered on 28 May 2009
1 answer
154 views
hi ALL,
       I am trying to implement  RADTreeView in the RADCombox box. Iam adding all the items in the source. In the code behind iam using RADTreeView_Node Click event to get the selected value of the tree. when i click on the Treeview I should get the selected value of the tree into combobox.

But when iam selecting the value in the TreeView, it should get displayed in the combox box.

If i write like this 

 

RadTreeView treeView1 = (RadTreeView)RadCombobox2.Controls[2].FindControl("RadTreeCombo");

 

RadCombobox2.Text = treeView1.SelectedNode.Text;

I can see that text is added to the combobox , when i keep break point.

But when the page is displayed iam not able to see the value in the comobox.
Do i need to write any other events for this.

Pls help me out........

Regards,
Asra

Shinu
Top achievements
Rank 2
 answered on 28 May 2009
0 answers
121 views
Hai,
    I'm using a radScheduler for Monthly recurence.Monthly Recurrence provides to recure the data on particular date of everey month.What i need is to recurre the data of a week on one month to the same week of every other months.Is this possible .how it can be accomplished . please reply me its urgent.
                  thanks in advance..........
Vish
Top achievements
Rank 2
 asked on 28 May 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?