Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
619 views
Amazing how many times this question has to get asked. With so many posts, you'd figure that after over a year of being on the market, Telerik would clearly show how to resize a grid to fill the height and width of its container. Please Telerik, stop putting together dumb examples showing us how its done by placing a grid inside of web page with virtually nothing else. Real applications are more complex and the HTML layout gets complicated and affects how the grid operates. I have just spent 3 hours reading postings here, the documentation and online demos yet I haven't found a single source of help on showing a consistent way of resolving this problem. Here is how my page is setup:

On the page is a RadTabstrip. The first PageView is used to setup criteria that the user inputs. After pressing a Radtoolbar button located outside of the tabstrip, the second tab is shown. It is ajaxfied and contains a RadGrid. The grid is not visible until that RadToolbar button is pressed and the RadAjaxManager is used to update it. And no, I don't use a RadAjaxPanel. The grid does in fact gets shown. The grid at this point is suppose to resize automatically to the size of the pageview which it doesn't.

Having read many posts, it seems that you are suppose to set the height and width of the grid's container to fixed pixel values and NOT to 100%. The problem I have here is that if I set the pageview (or whatever the parent container is) to any fixed value, the grid will end up being that height and width as well. Yes, that's what I want but how am I suppose to get the pageview to resize when the browser resizes? Any attempts I have made to read the height and width of the pageview returns either empty or 0.
Princy
Top achievements
Rank 2
 answered on 02 Jun 2014
5 answers
139 views
I have a RadGrid with AllowMultiRowSelection="true", EnablePostBackOnRowClick="false", and UseClientSelectColumnOnly="false".  I want the click-on-row behavior to be the same as the click-on-checkbox behavior; namely, clicking on the row will toggle that row on and off.

I know this isn't the intended behavior of the grid, but it ought to be possible through some client-side scripting.  Can anyone help me figure out such a script?
Venelin
Telerik team
 answered on 02 Jun 2014
5 answers
215 views
Hi,

This problem has cost me a few hours. I have a RadWindow which NavigationUrl is set to a page of my project. If I show the page in Firefox, everything is working fine. If I show the page in IE a blank page is displayed.

The reason was, that I had the following line in my CSS of my target page:
html, body
{
position: relative;
}


After deleting this line the page was displayed correct.

FYI
Princy
Top achievements
Rank 2
 answered on 02 Jun 2014
1 answer
124 views
Hi,

Moved the server to a new hosting, after moving the drop down is not working.

When viewed from firebug we are getting the below error

Server Error in '/' Application.

Cannot perform CAS Asserts in Security Transparent methods



Description: An unhandled exception occurred during
the execution of the current web request. Please review the stack trace
for more information about the error and where it originated in the
code.





Exception Details: System.InvalidOperationException: Cannot perform CAS Asserts in Security Transparent methods



Source Error:








An unhandled exception was generated during the execution of the current
web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.








Stack Trace:






[InvalidOperationException: Cannot perform CAS Asserts in Security Transparent methods]
System.Security.CodeAccessSecurityEngine.CheckNReturnSO(PermissionToken permToken, CodeAccessPermission demand, StackCrawlMark& stackMark, Int32 create) +0
System.Security.CodeAccessSecurityEngine.Assert(CodeAccessPermission cap, StackCrawlMark& stackMark) +60
System.Security.CodeAccessPermission.Assert() +28
Telerik.Web.UI.ScriptAssemblyInfo.get_ModifiedTime() +170
Telerik.Web.UI.CombinedScriptWriter.GetLastAssemblyModificationTime() +172
Telerik.Web.UI.CombinedScriptWriter.WriteCombinedScriptFile() +1230
Telerik.Web.UI.WebResource.ProcessRequest(HttpContext context) +74
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +341
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69











Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18449               
Bozhidar
Telerik team
 answered on 02 Jun 2014
2 answers
141 views
Hi . 
I have 3 control in a form , 
2  Radcombobox and a button . 
the first radcombobox binded to webservice and the second bind in server side code .
both radcomboboxes have AutoPostback="true" attribute . 
when I choose an item from the first combo the second bind with item that selected from the first combo . 
but I have problem when I choose an item from the second combo and do post back . after post back it seems that the first combo box dose not have any item selected. 
I write a custome validation in clientside code that checked the value of first combo . after second combobox post back the customevalidator return null .
function ClientValidate_<%= this.ClientID %>(source, args) {
            var combo = $find("<%= ExComboControl.ClientID %>");
            if (combo.get_enabled()) {
                args.IsValid = false;
                var text = combo.get_text();
                if (text.length < 1) {
                    args.IsValid = false;
                    combo.set_emptyMessage("Please choose an Item");
                }
                else {
                    combo.trackChanges();
                    console.log(text);
                    var node = combo.findItemByText(text);
                    console.log(node);
                    var inputElement = combo.get_inputDomElement();
                    console.log(inputElement);
                    if (node) {
                        args.IsValid = true
                        args.IsValid = false;
                        inputElement.style.color = "black";
                    }
                    else {
                        args.IsValid = false;
                        inputElement.style.color = "#FF0000";
                    }
                }
            }
        }
 
Shinu
Top achievements
Rank 2
 answered on 02 Jun 2014
5 answers
208 views
Hello,

I've set up an HTMLChart Column Chart.  The tooltips appear on the right of each column when hovering over the column.  For the columns at the far right side of the chart, this means the tooltips are squished and unreadable.  Is there a way to change the position of the tooltips so the ones on the right side of the chart can be fully seen?

Thanks.
Phuong
Top achievements
Rank 2
 answered on 02 Jun 2014
1 answer
65 views
Hi,

I have a combo with check boxes.
When I select only one item and close the combo, I get the name of the item on the combo. Works good.
When I select few items in the combo I get the text "x items checked". Works good.

But... If I select only one item, close the combo (and get the item's name on the combo), then open it again and check few more items, and close the combo, now I still have the name of the first checked one. The text doesn't change to "x items checked".

An image with the steps to reproduce is attached.

Is this a known issue?
Is there a workaround?

Thanks,
Guy.
Princy
Top achievements
Rank 2
 answered on 02 Jun 2014
1 answer
450 views
I have a Radgrid with auto generated columns = "True" and I would like to change the header text programmatically at the Detail table levels when the radgrid loads at page load.  How would I accomplish this?  I figured simply utilizing the code shown below would work, but it doesn't do anything.  The page just loads with no errors, and the text does not change on the header.  However, when I change the text programmatically in the root level of the radgrid it works, but does not work at the detail levels.  Please Help!

'''I tried this code in the PreRender and ItemDataBound Events.  But it does not work. Text does not change.... 

Radgrid_CRGList.MasterTableView.DetailTables(1).DetailTables(0).GetColumn("UniqueName").HeaderText = "Custom Header Text"

Princy
Top achievements
Rank 2
 answered on 02 Jun 2014
3 answers
114 views
When a user selects an item from the drop down, I want to call a method that gets details from a database for the selected item (using the DataValueField).  I have this code

 protected void RadAutoCompleteBox1_EntryAdded(object sender, AutoCompleteEntryEventArgs e)
        {
                AutoCompleteBoxEntry entry = e.Entry;
                
        }

but it never gets fired, I also have this set

AutoPostBack="True"

The dropdown list appears (after typing the first 2 characters)  but I cant trap the selection event, has anyone managed to do this ?
Shinu
Top achievements
Rank 2
 answered on 02 Jun 2014
10 answers
434 views
Is there a way, I can hide the X button when I do Add/Edit in RadGrid in PopUp edit mode? For normal RadWindow, we can customize the behaviours(close, maximize, minimize, resize etc.), same way do we have any control over the behaviours in RadGrid edit mode PopUp window?

Thanks
venu
Top achievements
Rank 1
 answered on 31 May 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?