Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
229 views

Hi,

Have a smiley day...

I using telerik radgrid and listbox in my application. I need to perform a drag and drop from listbox to a radgrid and vice versa. Please give me any ideas and coding snippet or a sample to do this.

Thanks in advance.

Regards,
Maha
maha raja
Top achievements
Rank 1
 answered on 29 Aug 2009
1 answer
126 views
Hi,

I have a radGrid which has links generated by GridButtonColumn. Customer can click on these links which posts back to the same page. Now, I want to know which row, link click is happend so that by using that RowID I can go to DataTable( datasource for radGrid) and fetch that row data to perform some business logic.

Please help.

Mahesh
Shinu
Top achievements
Rank 2
 answered on 29 Aug 2009
1 answer
98 views
Hi All, I'm hoping to impliment a bulk edit grid the way Matt Dodson has done with the asp.net gridview as explained Here.
Has anyone been able to make the Telerik Grid perform bulk edits?
Shinu
Top achievements
Rank 2
 answered on 29 Aug 2009
2 answers
115 views
I have a funny problem in using the smart tag of radgrid .... as it is very long and i could not see the template section at the bottom of the tag....
is there a way to customize this smart tag??
Mick
Top achievements
Rank 1
 answered on 29 Aug 2009
0 answers
120 views
Hi there,

I have a site with a set width of 900px, this is then auto centered in the page automatically depending on size of browser window/resolutoin. This site has a horizontal menu that is 900px wide with drop downs that are set to 200px wide. What I would like is for the drop downs to adjust their position on the right menu items so that they don't go outside the 900px width. I can achieve this by setting EnableScreenBoundaryDetection to true and then making my browser window the width of the 900px site. This of course only shows an example of how I want the menu to behave as I have no control over a users window size. However since it's possible to achive this based on screen boundaries I thought someone might know of an easy way to somehow override this or pass in a div to use as co-ordinates and size instead of the browser window.

Any help is greatly appreciated!
Cheers,
Phill
Phill Hodgkinson
Top achievements
Rank 1
 asked on 28 Aug 2009
4 answers
178 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
56 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
132 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
109 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
115 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
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
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?