Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
163 views
I have a radgrid with 2 GridTableViews in the detailtable. The mastertableview is bound to a dataview at runtime on a button click event, I also setup the OnNeedDataSource event to make sure the datasource of the grid is always present. At runtime everything works fine and i can expand all records no problem. However once I set HierarchyDefaultExpanded = true and click on the button again I receive an error:

Line: 4723
Error: Sys.WebForms.PageRequestManagerServerErrorException: There was a problem extracting DataKeyValues from the DataSource. Please ensure that DataKeyNames are specified correctly and all fields specified exist in the DataSource.

so if a radgrid has a detailtable which contains multiple GridTableViews the HierarchyDefaultExpanded will not work, am I right?
Iana Tsolova
Telerik team
 answered on 19 Apr 2010
2 answers
124 views
hi, i don't speak in english but i going to try. well, i'm looking for a default web.config, i use rad controls version 1.5.0.0, asp.net 2.0 and iis 7.0


Thanks
Ernesto Castelo
Top achievements
Rank 1
 answered on 19 Apr 2010
1 answer
75 views
Ok so I have the code to send a param over to eh grids webservice

//Send the parameters 
            function OnDataBinding(sender, args) { 
                var methodArguments = args.get_methodArguments(); 
 
                var myMethodArguments = methodArguments; 
                myMethodArguments.someParameter = "test"
 
                args.set_methodArguments(myMethodArguments); 
            } 

How though, do I consume this on the webservice?
(here's my definition)
    [WebMethod(EnableSession = true)] 
    [ScriptMethod] 
    public Dictionary<stringobject> GetOutstandingApprovalsData(int startRowIndex, int maximumRows, List<GridSortExpression> sortExpression, List<GridFilterExpression> filterExpression) { 
        Dictionary<stringobject> data = new Dictionary<stringobject>(); 




Nikolay Rusev
Telerik team
 answered on 19 Apr 2010
1 answer
238 views
Can anyone tell me a setting to use that will cause the information in a grid column to word wrap when it is exported to PDF?
Right now when we export a grid of data and a colum is extra long it over lays the ajacent column.

One more thing.  How do you get a hyperlink to export when 

ExportSettings.ExportOnlyData = True

I have to set 

 

ExportSettings.ExportOnlyData =

False
to get the hyperlink data to show up on the reports.

Thanks

 

Daniel
Telerik team
 answered on 19 Apr 2010
1 answer
96 views
Hi,

I was testing my web application for cross-site scripting. To simplify things, I have a web form using a RadAjaxPanel, textbox, regular expression validator checking for a valid e-mail address, submit and a cancel button. When I placed the <script> tags on the textbox, the regular expression validator flags it and I can't proceed with the submit, however, I see a javascript error on the page. When I hit cancel, which I set to causesvalidation to false, I also get a 'Error on page' on my browser and doesn't redirect me to the home page until I clear the <script> tags on the textbox. Most of my web forms do use the ajaxpanel but the errors are misleading from the browser, since the validator controls would have prevented the cross-site scripting. Is there a way around this? Thanks.
Iana Tsolova
Telerik team
 answered on 19 Apr 2010
4 answers
90 views
I am working on implementing a custom filter for my editor. Has the GetPreviewContent call been removed? When I'm moving to Preview, it seems to be calling my GetDesignContent filter.

If it has been removed, is there a workaround so I can tell the difference between Design and Preview?

Thanks in advance,

Trent
Rumen
Telerik team
 answered on 19 Apr 2010
2 answers
85 views
Hey

A client of ours has requested us to supply him with a grid using Excell style filtering. This would require multiple filter criteria for each column using the OR operator.
Basically this means I need multi-select dropdownlists (which would be drop down checkboxlists or something) above the columns instead of single select dropdowns.
I was just wondering if your grid can facilitate this functionality and how?

Greetz,

Kevin
Kevin Van Puyvelde
Top achievements
Rank 1
 answered on 19 Apr 2010
1 answer
121 views
Hi,
I followed the example at:
http://demos.telerik.com/aspnet-ajax/panelbar/examples/applicationscenarios/outlooknavigation/defaultcs.aspx

I am wondering if this is the only way to have this effect (panels at the button and content changing at the top). With this approach, we lose the capability to use RadPanelItem, forcing us to implement the items on each RadPageView.

 

Thanks.
Teodorico
Top achievements
Rank 1
 answered on 19 Apr 2010
4 answers
125 views
Hi,

We have one RadGrid which contains long text as a single record.
Everything displaying fine, but when mouse hover on it, then it displays not properly and display different color's line.
In short it does not display in specified skin.
Image is attached.
Please suggest for resolving the issue.

Thanks in Advance,
Naresh

Naresh Goradara
Top achievements
Rank 2
 answered on 19 Apr 2010
3 answers
190 views

Hello there, I'm trying to conditionally hide a row on the server side.  My code looks like this:

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)  
{  
    if (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem)  
    {  
        if (e.Item.OwnerTableView.Name == "Customer")  
        {  
 
        }  
 
        if (e.Item.OwnerTableView.Name == "CustomerDetail")  
        {  
            CustomerDetail detail = (CustomerDetail)e.Item.DataItem;  
            if (detail.IsCancelled)  
            {  
                // Hide the row, e.Item.Visible = false  doesn't seem to work
            }  
        }  
    }  

The good news is the code gets hit during debugging, and at that point, I'd like to hide the row.  The row does reside inside of a DetailTable/GridTableView.  Do I need to do this inside of another server side event?  Or should I filter my results when the detailtable gets databound?

I've searched these forums for quite a while but no luck . Any help is greatly appreciated.

-- Mike
Mike
Top achievements
Rank 2
 answered on 19 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?