Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
193 views
Hey,

I have a unique set of features I need to try an implement and I'm just wondering what might be possible ways to implement these features. The features are as follows:

Dynamically Creating Enum Image Columns

Part of the data I need to display, certain columns may be of a Enum that I need to display different images for. Let's just say the enum set is as follows:

Unknown = unknown.png
Red = red.png
Yellow = yellow.png
Green = green.png
NotAvailable = notavailable.png

I also don't know the names of the columns before hand, which is why everything has to be created dynamically. I have potentially implemented this using a custom ITemplate class that the column class inherits GridTemplateColumn - but it seems messy? I could be wrong, this could be the best way to do this. 

Dynamic Hover Information

I also need to show different information if you were to hover over different data. For example, if the user were to hover over an item in one of the columns in the first feature (Dynamically Creating Enum Image Columns) then I want to show a dynamic histogram graph using some other data that I can obtain using the information about the item I'm currently hovering over.

Another case is an item not in an image column, let's say it's a customer name - when I hover over that I want to dynamically show more information about that customer in a tooltip like popup (not modal, but inline)

Expanding Columns with Subcolumns

Another part of my challange, is to find a way for the user to click on possibly an imagebutton in the header of a column and for that column to expand into a subset of columns.

Let's say I have the following columns, noticing that the 'B' column has an optional button to allow the user to expand it:
A | B (+) | C | D

After it's expanded, I would like the following
A | B1 | B2 | B3 | C | D

How could I go about doing that? It's not like a seperate grid, but a modification to the columns. Is there a way to do this slickly (animated possibly?). A postback is probably required (due to the dynamic nature of the columns I'm guessing).

Anyways, anyone up for helping me figure this all out?

Thanks,
Kori
Kori
Top achievements
Rank 2
 answered on 28 Aug 2009
1 answer
65 views
Hi,
I have enabled custom sorting on the grid and it works fine when the grids viewstate is on but there is so many rows in the grid so I  want to turn the viewstate off but then the sorting is not working.
Is is possible to have viewstate turned off but still have custom sorting enabled?

/Mattias
Georgi Krustev
Telerik team
 answered on 28 Aug 2009
1 answer
138 views
 Hi, 

     When there are no records to display, I get the correct message "No records to display".  However, when i display the insert/edit screen to enter new records, the message still appears on the bottom of the screen. This is fine.  But when i add a new record, I want
that message to go away. I understand that it would go away if I did a rebind after I entered the first record, but in my add data scenerio, i only rebind when I am done adding records and I am ready to redisplay the grid.
     To correct this, I saw a telerik post (http://www.telerik.com/community/forums/aspnet/grid/changing-no-records-to-display-text.aspx ) using the  a "NoRecordsTemplate : ITemplate" class. Now, my message of  "No Equipment to List as yet"    is used.  
1) Now when I add  that first record, I can blank out the message, BUT, instead of blank, the default "No records to display" appears. Am I missing another step ?
2)  Using that ITemplate class scenerio seems like a lot just to blank a message when a record is added. is thier a way to do this with 
less code (not that its a lot of code, but). 
3) I am populating and blanking out the   "No Equipment to List as yet"  message according to whether their was any data read in my needdatasource on the last rebind. I am doing this in my  ItemDataBound method, is this the right place to do it ?

Here is how I define the class
/* 090825b Need this class to emulate the NoRecordsTemplate   
     * so that we can control when and what message to display  
     * when no equipment records exist yet */  
    class iqNoRecordsTemplate : ITemplate  
        {  
 
        string iqText;  
        System.Drawing.Color iqColor;  
                  
       public iqNoRecordsTemplate(string text,System.Drawing.Color Color)  
            {  
             iqText=text;  
             iqColor = Color;  
            }  
          
        public void InstantiateIn(Control container)  
            {  
            Label lbl = new Label();  
            lbl.ID = "Label1";  
            lbl.Text = iqText;  
            lbl.ForeColor = iqColor;  
            container.Controls.Add(lbl);  
            }  
        }  
        


Here is how and where I change the text (equipmentGrid is my RadGrid)
   if (Session["AnyDataRead"] == "No") //090815a  
                {                  
                ftbox.Text = "0";  
                  
                // Create new No Records Template on the fly from iqNoRecordsTemplate()  
                // No records found messages.  
                   
                iqText = "No Equipment to List as yet"; // 090825b  
                equipmentGrid.MasterTableView.NoRecordsTemplate = new iqNoRecordsTemplate(iqText, System.Drawing.Color.Brown); // 090825b   
                }  
            else  
                {  
                ftbox.Text = equipmentGrid.PageSize.ToString();  
                iqText = " ";// 090825b  
                equipmentGrid.MasterTableView.NoRecordsTemplate = new iqNoRecordsTemplate(iqText, System.Drawing.Color.Brown); // 090825b   
                } 
When I initialize the iqText to " ", is when the default message seems to appear. 
(Ignore the passing of the System.DrawingColor.Brown while iqText gets the " ", it dosnt matter for now). 

    thanks for your help  

 

 

    

 

Daniel
Telerik team
 answered on 28 Aug 2009
3 answers
117 views
Anyone know why my numerictextbox won't truncate? It displays a decimal even after the focus is gone?
Here's the definition. If I allow rounding it will round up to the nearest integer when it loses focus. So the javascript is firing. I'm so confused by this. It seems like a pretty simple thing to do.



<telerik:RadNumericTextBox ID="DTPNumericTextBox1" runat="server"  
NumberFormat-DecimalDigits="0" NumberFormat-AllowRounding="false" ></telerik:RadNumericTextBox>


Dimo
Telerik team
 answered on 28 Aug 2009
1 answer
121 views
I cannot show the Ajax Loading Panel when using Client Binding on the Grid? Is it possible to do that? Thanks
Mira
Telerik team
 answered on 28 Aug 2009
5 answers
76 views
I downloaded it 3 times, each time it take a different length on disk ???
And vista tells me it is a corrupted package ?

This message just to test if I am the only one with this pb ?

Thanks
CS
CSurieux
Top achievements
Rank 2
 answered on 28 Aug 2009
6 answers
357 views
In my client-side event handler for the OnClientTextChange event, I've added code that under certain circumstances sets the text of the combobox to the empty string and cancels the server-side TextChanged event by calling client-side EventArgs.set_cancel(true).  This has created the following situation:

  1. User enters some text in the combobox, say "David", and hits enter, firing the search
  2. The user performs the action in the combo that causes my client-side code to cancel the server-side TextChanged event
  3. The user then enters "David" in the combobox again and hits enter, but neither the client- or server-side TextChanged events fire.

I think that cancelling the server-side TextChanged event is keeping the text as "David" even though I'm setting the text to the empty string in the OnClientTextChange event and the combobox properly shows the empty string.  The combobox still thinks its text is "David" and is thus not re-firing the search.  If I delete the last "d", everything fires as expected.

Is this supposed to work this way, and if so, could someone suggest a workaround?

Ivan
Top achievements
Rank 1
 answered on 28 Aug 2009
1 answer
59 views
When inserting a GroupBox in Firefox (3.5), there doesn't seem to be a way to select the groupbox borders in order to "cut" it, as there is in IE. A user must highlight the entire group box. Is this expected?
Rumen
Telerik team
 answered on 28 Aug 2009
1 answer
110 views
Hi,
I used AdvancedEditTemplate and OnClientFormCreated when I clicked on Appoitmed opened edit form. I now change to webservice
<WebServiceSettings Path="SchedulerWebService.asmx" ResourcePopulationMode="ServerSide" /> and I haven't my edit form...

Please help.
Peter
Telerik team
 answered on 28 Aug 2009
2 answers
77 views


i have a set of pages in my app that i only want to be allowed to be accessed inside a radwindow , whats the best server and or client side way of limiting a page to a radwindow display


thanks
kevin
kmv
Top achievements
Rank 1
 answered on 28 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?