Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
120 views
Hi

I attached image , in web page i am getting background colour for all cells, but when i print whole page via File->Print , it is not picking background color , if i enable Background Colours and Image in Browser Page setting, then it is picking cell color

I set color like below
 TreeListDataItem item = (TreeListDataItem)e.Item;
item[month.ToString()].BackColor = System.Drawing.Color.Red;
 item[month.ToString()].ForeColor = System.Drawing.Color.Red;

Please guide me,
Karthik.K
Konstantin Dikov
Telerik team
 answered on 02 Jun 2014
1 answer
130 views
I have a form with a number of fields before a RadMaskedTextBox and a number of fields after. In Chrome or Opera, when the focus is placed on the RadMaksedTextBox, the validation must pass, or you cannot tab or click out of the field, which is not the expected behavior. Here is an example exhibiting this behavior.

<!DOCTYPE html>
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
             <telerik:RadScriptManager ID="RadScriptManager1" AjaxFrameworkMode="Enabled" runat="server" CompositeScript-ScriptMode="Auto" EnableEmbeddedjQuery="False" LoadScriptsBeforeUI="False" OutputCompression="AutoDetect"></telerik:RadScriptManager>
         
             <telerik:RadMaskedTextBox ID="txtSSN4" class="numeric" PromptChar="" SelectionOnFocus="SelectAll" runat="server" Width="44px" MaxLength="4" Mask="####" DisplayMask="****" DisplayText=""
                                                TabIndex="4" meta:resourcekey="txtSSN4Resource1" HideOnBlur="True" AutoCompleteType="Disabled">
                                            </telerik:RadMaskedTextBox
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" Text="*" ForeColor="Red"
                                                        ControlToValidate="txtSSN4" ErrorMessage="SSN4 is required." meta:resourcekey="RequiredFieldValidator3Resource1" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator runat="server" meta:resourcekey="SSN4RangeValidatorResource1" ID="SSN4RangeValidator" ForeColor="Red" ControlToValidate="txtSSN4" Text="Format is incorrect." ErrorMessage="SSN4 format is incorrect." ValidationExpression="[0-9]{4}" SetFocusOnError="True"></asp:RegularExpressionValidator>               
            <asp:TextBox runat="server" ID="abc"></asp:TextBox>
        </div>
    </form>
 
</body>
</html>
Viktor Tachev
Telerik team
 answered on 02 Jun 2014
2 answers
170 views
Hello,

I'm currently working on a project with RadGrid.

It is possible to add to the list of the columns, "select all/none" checkbox?

Thanks,
Daniel



Konstantin Dikov
Telerik team
 answered on 02 Jun 2014
3 answers
205 views
I am wondering if FindControl on the NodeDataBound is an upcoming feature? Or is it has been replaced with something else that I am missing?  I expected to be able to do e.Node.FindControl to find a control in my ItemTemplate but have not been able to do so yet.  A simple reasoning behind the need for this could be tied to the Soccer/Football example.  Say you wanted an image in the ItemTemplate of a Star that was only visible if the player was a team captain or something along that line.
Shinu
Top achievements
Rank 2
 answered on 02 Jun 2014
1 answer
222 views
Currently the predefined buttons like Add new record, Refresh etc. are rendered in 2 elements:
1. an input button displaying an icon only
2. a link displaying a text

In some skins (e.g. Silk) such buttons are not prominent enough so a rad button with an icon would work much better. E.g. to Add & Refresh buttons on this page to be replaced with corresponding buttons from here .
For sure, it can be done by using CommandItem Template but it seems to be much re-work required. 
I wonder is there an easy way to achieve it by using built-in radGrid settings or css?
Viktor Tachev
Telerik team
 answered on 02 Jun 2014
3 answers
750 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
202 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
266 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
158 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
187 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?