Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
135 views
Hi All,
           I am using Rad grid in order to bind the gird.
I have one Main Grid. Inside the MainGrid there two Tab Controls. One of the TabControl is having Grid and the Other TabControl is having Charts.

The first MainGrid iam binding it in the page_load. And the second Grid  which is inisde the tab, iam binding it in the MainGrid_ItemCreated Event.  It works fine like this, but the problem is the Item_created gets called for event. Because  of this it the grid is getting binded many times.

Can any one pls let me know what is the best way to bind the grid inside the tab. If i wont use Item_created event, then the tab is  not displaying the Grid.

Pls give me suggestions..
Its very very urgent

Regards,

asra
protected void CategoryGrid_ItemCreated(object sender, GridItemEventArgs e)  
    {  
 
if (e.Item is GridNestedViewItem)  
            {  
                  //Find the RadGrid  
                radProdGrid = e.Item.FindControl("radProdutsGrid"as RadGrid;  
                // Find the chart  
                rcProduct = e.Item.FindControl("RadChart2"as RadChart;  
 radProdGrid.DataSource = productInfoView;  
 
}  
Asra
Top achievements
Rank 1
 answered on 11 Jun 2009
3 answers
157 views
Hello,

I have a page that has a RadGrid in it. The grid uses the NeedDataSource to load the data.
The NeedDataSource calls a method on the page that returns a DataTable. This method is using a parameter that is retrieved from a property in a base page. Lets say that the property name is ParameterName. The value of this property is saved in the ViewState.

Most of the time everything is working fine; but sometimes the The ParameterName property is null. I have checked and saw that the NeedDataSource is called before the Page LoadViewState method. Is this normal?

How can I obtain the ViewState data before the NeedDataSource is called?

Thanks,

Oded
Tsvetoslav
Telerik team
 answered on 11 Jun 2009
1 answer
66 views
I have a server control which uses a RadGrid. It doesn't do anything particularly special but clicking on a row causes it to raise an event on the server side updating certain elements of the page. It is also inside an AJAX update panel. This has always worked fine using version 2008.1.515.20.

Recently we upgraded to 2009.1.527.20, and since we've noticed that loading up the page instantly causes a "Handler should be a function." javascript error, and upon jscript debug it appears that it's complaining about a "rowClick" handler/event belonging to the RadGrid within the AJAX generated scripts.

After the javascript error the page works fine except for the RadGrid, and nothing happens when it is clicked.

Thanks
Andy
Veli
Telerik team
 answered on 11 Jun 2009
1 answer
363 views
Here's my situation.  I have a RadToolbar, a RadComboBox, & a RadGrid on a page.  When the page loads initially, the inputbox color in the combobox is white and there is no data in the grid.  If the user selects an item from the combobox, clicks a button on the toolbar, the grid gets populated with data and everything is fine.  If the user clicks the button on the toolbar before selecting an item from the combobox, the the backgroundcolor of the inputbox needs to turn pink. 

If handled on the server side, in the Grid_NeedDatasource event, I check the selected value of the combobox and try to set the backgroundcolor if nothing is selected.  Could use some help here.

If handled no the client side, the AJAX call would need to be canceled as well as setting the color.

I'm lost.  All help is appreciated.

Thanks,
Rob
Shinu
Top achievements
Rank 2
 answered on 11 Jun 2009
5 answers
210 views
Hi,

I am developing an Mp3 Player for my site, using telerik rad ajax controls. A requirement I have is to bind the song titles and their paths (They are dictionary <TKey, TString> collection). However, I need to get the clicked row's song path title to pass to the mp3 player code to then play that song.

I have used the API quite heavily and I know how to do this (get value of a cell on clicking a row), but with the client side API, I can't pass the value of a cell to a C# function - or can I?

Thanks
Princy
Top achievements
Rank 2
 answered on 11 Jun 2009
1 answer
155 views
Hi All,

I am using the grid to display the result of searching. One problem is that when making a new search the result will display the page that viewed last time. so I think that I need to somehow to reset the page to the 1st when I have a new search programmally. I know there is function in the .NET listview control can do so. But I can not find a way to do so for radGrid.

Please help.

TIA
Jerry
   
Princy
Top achievements
Rank 2
 answered on 11 Jun 2009
2 answers
135 views

I've searched this forum, but can't find the answear.

By setiing ShowChooser="True" in SkinManager, we can choose all 12 skins.
However, Instead of all 12 skins, how can I change the skin selection items to 6?
Is this possible? or there other any turn around solution?

Please sugges.

Thanks,
Billy
Yi-Chien Chen
Top achievements
Rank 1
 answered on 11 Jun 2009
3 answers
128 views
Hello

I have a page which has several raddockzones and within those are dynamically loaded in raddocks which contain controls.
One of my controls is a radmenu - which works fines but the drop down element is also under the other raddocks.

Is there any way to make it so that it aloways appears on the top. I have amended the style sheets with

 

<style type="text/css">

 

 

.rdContent,.raddock, .raddockzone, .rdSideBorders

 

{

 

overflow:visible !important;

 

}

 

</style>
Tha change to the style sheets solves the flyout and removes the scroll bars.

But if a another raddock is below it  - how do you get the menu to appear over the top of the menu and not go behind it?
I have tried z-index but to no success.

Many thanks.

John

ajit
Top achievements
Rank 1
 answered on 10 Jun 2009
2 answers
225 views
Hi,

Im new to the MVC and to the Rad Controls for MVC. I'm trying to create a grid with the ability of editting/insterting rows through the edit template. Excatly as you provided in this example:

However in this example the Views have code behind where you have some logic implemented in the PageLoad event specially the partial view that renders the grid. The latest version of MVC 1.0 doesnt create code behind for the views or the partial views, so how can I move the logic in the code behind to the view thesmselves ( aspx). Can you provide me with updated example ?
Frank
Top achievements
Rank 1
 answered on 10 Jun 2009
2 answers
109 views
Hello

I don't find any information about place/location to just have it as a plain textfield. I'm using exchange 2003 as datasource and place is an important field wich is just plain text.

How can I add it?


I also have a question on minutes. Will there be an upgrade showing the apointments in minutes visually?
Andreas Selling
Top achievements
Rank 2
 answered on 10 Jun 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?