Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
333 views
Hello,

I am using Sitefinity 3.7 with RadControls (RadFilter and RadGrid).  By programmatically I am setting radfilter by giving filter string (eg. ([Val] = 2)) with the following code:

                   var eq = new RadFilterEqualToFilterExpression<string>(columnName);

                    RadFilter1.RootGroup.AddExpression(eq);
                    eq.Value = columnValue;

                    RadFilter1.RecreateControl();
                    RadFilter1.FireApplyCommand();

It's working fine when I am using this code on button clicks event and the output is like this code is set the filter (visually) in RadFilter and apply also.

The issue is when I am trying to execute this code on Page_Load under !IsPostBack block, I am getting the following exception:

Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.

Source Error: 

 Line 418:
Line 419:            //displaying the conditions while recreate the control
Line 420:            RadFilter1.RecreateControl();
Line 421:
Line 422:            RadFilter1.FireApplyCommand();

Source File: c:\Program Files\telerik\Sitefinity3.7\WebSites\MySite\App_Code\clsBAL.cs    Line: 420 

Stack Trace: 

For this I try to use Page_LoadComplete event, but no luck, because we are using the usercontrol as:

public partial class UserControl_xanc_grid : System.Web.UI.UserControl
{
}

So, can you please suggest me how can I set the filter programmatically on page_load (after page load).

Thanks,
Varinder Kumar
Iana Tsolova
Telerik team
 answered on 17 Jun 2011
1 answer
57 views
Hi,

I've got a strange problem with a colorpicker inside an advancedForm (scheduler).

There's a page called scheduler.aspx with a user control that contains the RadScheduler.
That RadScheduler uses the AdvancedForm, with a colorpicker.

Problem:
Colorpicker has no background (the icon and the pallette) on IE, but it works fine on FireFox.
Our skin is the embedded "Windows7" skin.

When I changed the overall skin to "Default" the colorpicker works fine, but changing only the skin of the colorpicker changes nothing.

Attached a screenshot of the strange colorpicker with no background.

I  have the latest version of RadControls installed. (2011.1.519)

Thanks in advance!
Niko
Telerik team
 answered on 17 Jun 2011
1 answer
86 views
I have a frustrating issue with a RadDatePicker and 2 RadTimePickers.

I have a page that loads multiple instances of a web user control which contains the above said controls.
When the controls load i populate their selected dates from code behind from a database and they show up just fine, when i click my submit button and do a post back though the 3 controls have lost their values. If i set the dates manually on the page and do a post back it works fine, its just when im setting them programmatically that the values arent sticking.

Any ideas would be appreciated.

Thanks
Radoslav
Telerik team
 answered on 17 Jun 2011
2 answers
263 views
Hi,

I need to set the language of the spellchecker to Dutch and so far I'm unsuccessful.

I've downloaded a file with translations (nl-NL.tdf) from http://www.telerik.com/community/forums/aspnet-ajax/spell/147971-radspell-dictionaries.aspx
I tried to follow the way they described it here: http://blogs.telerik.com/blogs/posts/10-04-30/localizing_the_radeditor.aspx:
  • I've planted it into the project's ~/App_Data/RadSpell/ directory.
  • I've added this in the web.config:
    		<httpHandlers>
    			<add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
    			<add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
    		</httpHandlers>

    and another one into <system.webServer>:
		<handlers>
			<add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource"/>
			<add name="Telerik.Web.UI.SpellCheckHandler" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" />
		</handlers>
  • my radEditor looks like this:
    <telerik:RadEditor ID="reEditor" runat="server" SkinID="DefaultSetOfTools" Height="400px" Width="100%" ContentAreaCssFile="~/App_Themes/_generic/RadEditorContent.css">
    	<Languages>
    		<telerik:SpellCheckerLanguage Code="nl-NL" Title="nl-NL" />
    	</Languages>
    	<Content></Content>
    </telerik:RadEditor>
Still nothing. Could you tell me what am I missing?
Chris
Top achievements
Rank 1
 answered on 17 Jun 2011
5 answers
139 views
In my project I have a RadTextBox and I am using RadSpell to check the spellings (using US english dictionary). Everything works fine in my development machine, even if I DON'T specify the DictionaryPath for RadSpell control and DON'T ADD the dictionary under RadSpell folder under App_Data folder.

However when I deploy the project to RC or PRODUCTION server (over HTTPS) , as soon as I click on the "Spell Check" button, it throws me a 404 error. I added the DictionaryPath to the RadSpell control ("~/App_Data/RadSpell") and created the path under App_Data folder and placed the dictionary there. But I still get 404 error.

This problem occurs in IE8 and below versions only. It works fine on IE9 and other browsers like Chrome, Firefox.

I tried using Fiddler and it shows javascript error in older versions of IE.

In IE9 when I click the Spell Check button I get a HTTP 302 and then a HTTP 200 OK response. But in IE8 (and previous versions of IE), I get a HTTP 302, then a HTTP 200 OK and then again a HTTP 302 and it errors out. Why does it returns a HTTP 302 after HTTP 200 OK response in IE8 or IE7 or IE6? Let me know ASAP. My release deadline is approaching and I have wasted two days trying to figure out the root cause.

I am using Telerik.Web.UI.dll version 2010.3.1317.35.

-mss
Rumen
Telerik team
 answered on 17 Jun 2011
1 answer
86 views
Hi ,
I have one issue in Grid , What is the concept is My Grid Having Total (Decimal) Column and One Checkbox Round Total above Grid. If Check box is clicked the total should be round off ,if i unchecked total as actual. While page loading it's Rounding off , that is workng,
when i am unchecking the total is not getting actual value. and also i m using ajax for the grid.  Here is my code. how can i refersh for rebind the grid


$("#<%=chkRoundSale.ClientID%>").change(function() {
                   var thisCheck = $(this);
                   if (thisCheck.is(':checked')) {
                       $("#<%= gvEnqMixes.ClientID%> tr").each(function() {
                           var tr = this;
                           var cells = tr.cells;
                           var len = $('td', this).length
                           var txt = $(this).find("td:eq(7)").html();
                           $(this).find("td:eq(7)").html(Math.round(txt));
                       });
                   }
                   else {
                       $("#<%=gvEnqMixes.ClientID%> tr").each(function() {
                           var tr = this;
                           var cells = tr.cells;
                           var len = $('td', this).length
                           var txt = $(this).find('input:submit[id$=RefreshButton]');
                           txt.click()
                       });
                   }
               });
Iana Tsolova
Telerik team
 answered on 17 Jun 2011
1 answer
192 views
Hi,

I have export to excel in my app where exporting the data present in Grid.

The problem here is entire excel sheet is getting formatted (Ex: header background color, borders etc).

I want to format only the columns which are exported from the grid to excel.

Please find the attachment for more information.

Thanks in advance.

Regards,
Hemaraju
Daniel
Telerik team
 answered on 17 Jun 2011
1 answer
128 views
Hello,
Am trying to remove the tabs from the tabstrip. 
But am getting the following exception:
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

int count = RadTabStrip1.Tabs.Count();
if (count > 0)
      {
          for (int i = 0; i < count;i++ )
                {
                    RadTabStrip1.Tabs.RemoveAt(i);
                }
       }

Any advise?

Thanks,
Mani

Shinu
Top achievements
Rank 2
 answered on 17 Jun 2011
1 answer
75 views
Hi guys i´m working with the rad grid im my application and I have a doubt, I have  set the generate delete and edit column at runtime so that I can modify data of the selected row. My question is how can I put the row in edit mode when I click the edit column to update the data and the delete column to eliminate the data?
 Hope your help 
Tsvetina
Telerik team
 answered on 17 Jun 2011
4 answers
90 views
Hy,
we are experiencing a strange problem. We have a RadToolBar on in a WebPart used in Sharepoint 2010. We usually use the Outlook 2007 Skin, which has white Forcolor Text (when not MouseOver).
During Design in Visual Studio, all the Colors appear as they should be. However, If we deploy it to the server and run the webpart. the Color of the RadToolBarButton Text is not as it should be. If we place the mouse on the button, the now changed Text Color is as it should be at this state.

We found out, that the color attribute of the corresponding css-style is overwritten by Sharepoint:
.ms-WPBody a:link {
    color: #0072BC;
    text-decoration: none;
}
.RadToolBar_Outlook .rtbWrap, .RadToolBar_Outlook .rtbTemplate {
    color: #FFFFFF;
    font: 12px/20px "Segoe UI",Arial,sans-serif;
}

while on the other hand in the Stylesheet used when Mousever, the Telerik-CSS overwrites the Sharepoint style.

Could somebody verify this? (and maybe give a possible Solution to overcome this?)

Regards

Kalina
Telerik team
 answered on 17 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?