Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
149 views
Hi there, 

I have a problem on one of my machines when loading the xml in the treeview. 

This error is being thrown:

System.InvalidOperationException: Unable to generate a temporary class (result=1).
;error CS2001: Source file 'C:\Windows\TEMP\duyigyoo.0.cs' could not be found
;error CS2008: No inputs specified
;
;   at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence)
;   at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies)
;   at System.Xml.Serialization.XmlSerializer.GenerateTempAssembly(XmlMapping xmlMapping, Type type, String defaultNamespace)
;   at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace)
;   at Telerik.Web.UI.ControlItemContainer.LoadXml(String xml)
;   at GF.Common.Web.FEViews.Pages.Default.Page_Load(Object sender, EventArgs e)"


Any ideas?

Thanks
Nikolay Tsenkov
Telerik team
 answered on 08 Nov 2011
1 answer
103 views
Hi
I have radgrid in my application.
I have once requirement.
I have 7 cloumns of string type and one datetime column.
I'm adding only 3 filter menu items for 6 string type columns.
I want to add some date specific options for Datetime field.
I'm adding filter options as below.
protected void callogGrd_Init(object sender, EventArgs e)
   {
       int i = 0;
        
       GridFilterMenu menu = callogGrd.FilterMenu;
       while (i < menu.Items.Count)
       {
           if ((menu.Items[i].Text == "Contains") || (menu.Items[i].Text == "StartsWith") || (menu.Items[i].Text == "NoFilter"))
           {
               i++;
           }
           else
           {
               menu.Items.RemoveAt(i);
           }
       }
   }
Its not showing for datetime fileds.
What are datetime specific filters and How cloud I add to only datetime filed.
Princy
Top achievements
Rank 2
 answered on 08 Nov 2011
6 answers
152 views
the default for RadToolBarButton puts an "image" area where the background is a different color, i would like to hide this section for all toolbarbuttons.  I've seen the ImagePosition property, but there is no "none".

Any ideas?  Am I just missed something here?
Yeroon
Top achievements
Rank 2
 answered on 08 Nov 2011
1 answer
142 views
Hello,

We found the problem with displaying the input fields in Upload popup of FileExplorer which can be reproduced on your demo in IE7 browser (see attached screenshot).
Could this problem be resolved in some way?

Thanks in advance,
Oleg.

Dobromir
Telerik team
 answered on 08 Nov 2011
2 answers
140 views
I have an existing rad editor in a webpage that loads an HTML document with css markup.  The document contains links to external css files, and both the document and its css files are in a completely different place than that of the folder in which the editor webpage resides.  I programatically add the css files to the editor through the codebehind.

When I run the editor, the document loads and renders with the correct css markup in design mode.  When I move the editor's cursor over the content area, the ApplyClass toolbar button displays the correct name of any class that happens to be under the cursor's position.  But, when I expand the ApplyClass droplist, I find that it is empty with the exception of a single entry "Clear Class".  The droplist does not contain any of the classes in the css files I've programatically added to the cssfiles property.

My understanding is that if the cssclasses property is set to be empty, the editor should automatically load all the class names contained in the files specified by cssfiles.  I've done this too, but it didn't help.  Do you know what's going wrong?  I don't want to hardcode any class names as the css files are dynamically generated and will always be changing for each editing session.

I'm using Telerik RAD controls 2011.2.915.35 on windows 7 SP1 and am launching the page from inside of visual studio 2008 on the personal web browser.

The code in which I take a directory of the document folder and add all the css files found follows:

protected System.String loadCSS(System.String strFilePath,  ref RadEditor radEditor)
{
    System.String result = "OK";
    try
    {
        if (strFilePath.IndexOf(":") < 0 && strFilePath.IndexOf("//") < 0)
        {
            strFilePath = Server.MapPath(strFilePath);//its a virtual path so map it to a physical one
        }

        System.String strPublishingFolder = Path.GetDirectoryName(strFilePath);
        foreach (System.String strCSSfile in Directory.GetFiles(strPublishingFolder, "*.css"))
        {
            radEditor.CssFiles.Add(strCSSfile);
        }//EOF strCSSfile in Directory.GetFiles
        radEditor.CssClasses.Add("", "");
    }
    catch (Exception ex)
    {
        System.Object oe = (Object)ex;
        result = "loadCSS: " + et.rptError(ref oe);
    }//try
    return result;
}//EOF loadCSS


The rad editor control markup is:

<telerik:RadEditor ID="telerikeditor" Runat="server" 
                   OnClientLoad="onClientLoad"
                   OnClientCommandExecuting="OnClientCommandExecuting">
    <Tools>
        <telerik:EditorToolGroup Tag="grpInputOutput">
            <telerik:EditorTool ImageUrl="Images/radeditorSave.gif" 
                Name="Save" ShowText="False" 
                Text="Save" />
            <telerik:EditorTool ImageUrl="Images/radeditorSaveAs.gif" 
                Name="SaveAs" ShowText="False" 
                Text="Save As" />
            <telerik:EditorSeparator />    
            <telerik:EditorTool Name="PageProperties" />
            <telerik:EditorTool Name="Print" />  
        </telerik:EditorToolGroup>    
        <telerik:EditorToolGroup Tag="grpAids"> 
            <telerik:EditorTool Name="Help" />
            <telerik:EditorDropDown Name="Zoom"></telerik:EditorDropDown>
        </telerik:EditorToolGroup>
        <telerik:EditorToolGroup Tag="grpCheckers">
             <telerik:EditorTool Name="AjaxSpellCheck" />
         </telerik:EditorToolGroup>
         <telerik:EditorToolGroup Tag="grpFind">
             <telerik:EditorTool Name="FindAndReplace" />
             <telerik:EditorTool Name="SelectAll" />
         </telerik:EditorToolGroup>
         <telerik:EditorToolGroup Tag="grpRecover">
          <telerik:EditorSplitButton Name="Undo"></telerik:EditorSplitButton>
          <telerik:EditorSplitButton Name="Redo"></telerik:EditorSplitButton>
         </telerik:EditorToolGroup>
         <telerik:EditorToolGroup Tag="grpCutNpaste">
           <telerik:EditorTool Name="Cut" />
           <telerik:EditorTool Name="Copy" />
           <telerik:EditorTool Name="Paste" ShortCut="CTRL+V" />
           <telerik:EditorSeparator />
           <telerik:EditorTool Name="PasteFromWord" />
           <telerik:EditorTool Name="StripWord" />
         </telerik:EditorToolGroup>
         <telerik:EditorToolGroup Tag="grpInsert">
            <telerik:EditorTool Name="InsertParagraph" />
            <telerik:EditorSplitButton Name="InsertSymbol"></telerik:EditorSplitButton>
         </telerik:EditorToolGroup>
         <telerik:EditorToolGroup Tag="grpTextFont">
             <telerik:EditorDropDown Name="FormatBlock"></telerik:EditorDropDown>
             <telerik:EditorDropDown Name="FontName"></telerik:EditorDropDown>
             <telerik:EditorDropDown Name="RealFontSize"></telerik:EditorDropDown>
         </telerik:EditorToolGroup>
         <telerik:EditorToolGroup Tag="grpMarkup">
              <telerik:EditorTool Name="ApplyClass"></telerik:EditorTool>
              <telerik:EditorTool Name="Bold" />
              <telerik:EditorTool Name="Italic" />
              <telerik:EditorTool Name="Underline" />
              <telerik:EditorTool Name="ConvertToLower" />
              <telerik:EditorTool Name="ConvertToUpper" />
               <telerik:EditorTool Name="InsertHorizontalRule" />
          </telerik:EditorToolGroup>
          <telerik:EditorToolGroup Tag="grpAlignment">
              <telerik:EditorTool Name="JustifyLeft" />
              <telerik:EditorTool Name="JustifyCenter" />
              <telerik:EditorTool Name="JustifyRight" />
              <telerik:EditorTool Name="JustifyFull" />
          </telerik:EditorToolGroup>
          <telerik:EditorToolGroup Tag="grpLists">
              <telerik:EditorTool Name="InsertOrderedList" />
              <telerik:EditorTool Name="InsertUnorderedList" />
              <telerik:EditorSeparator />
              <telerik:EditorTool Name="Indent" />
              <telerik:EditorTool Name="Outdent" />
          </telerik:EditorToolGroup>
            <telerik:EditorToolGroup Tag="grpImages">
                <telerik:EditorTool Name="InsertImage" />
                <telerik:EditorTool Name="ImageManager" ShortCut="CTRL+M" />
            </telerik:EditorToolGroup>
            <telerik:EditorToolGroup Tag="grpCalendar">
                <telerik:EditorTool Name="InsertDate" />
                <telerik:EditorTool Name="InsertTime" />                
            </telerik:EditorToolGroup>
     </Tools>
     <Content>
     </Content>
</telerik:RadEditor>
Rumen
Telerik team
 answered on 08 Nov 2011
1 answer
428 views
Hi,
 I am getting the exception message during Clear the control information.
Actually we have a panel that contain search criteria with clear button. If I serch any thing and related information getting into grid.
after editing this grid information when I clicked to clear button a exception message showing. as below

"Sys.WebForms.PageRequestManagerServerErrorException: Script control 'Ddxyz' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors(). Parameter name: scriptControl" Please try again

Please help me How can I short out this exception message.

Thanks
Jaichand
Jayesh Goyani
Top achievements
Rank 2
 answered on 08 Nov 2011
2 answers
142 views
I have been given a page where all the colums are defined in the front end code. I have always built my tables up in the code behind and never had a problem extracting values from the table. Here is an example of a column that i am having difficulty getting a value from:
<telerik:GridTemplateColumn HeaderText="Effective From" UniqueName="EffectiveFromEdit" Visible="false">
<ItemTemplate>
<telerik:RadDatePicker ID="rdpMinDateEdit" runat="server" Width="140px" DateInput-EmptyMessage='<%#DataBinder.Eval(Container.DataItem,"EffectiveFrom") %>'
 MaxDate="01/01/3000" EnableEmbeddedSkins="false" Skin="247">
<Calendar ID="Calendar1" runat="server" EnableEmbeddedSkins="false" Skin="247" UseColumnHeadersAsSelectors="False"
  UseRowHeadersAsSelectors="False" ViewSelectorText="x">
 </Calendar>
<DateInput ID="DateInput1" runat="server" DateFormat="dd/MM/yyyy" DisplayDateFormat="dd/MM/yyyy"
EmptyMessage="">
</DateInput>
<DatePopupButton HoverImageUrl="" ImageUrl="" />
</telerik:RadDatePicker>
 </ItemTemplate>
 </telerik:GridTemplateColumn>

In the code behind, here is the code i am attempting to use, this works on pages where i have defined the columns in the code behind:
GridEditableItem UpdateItem = (GridEditableItem)e.Item;
fmsdupdate.EffectiveTo = Convert.ToDateTime((UpdateItem["EffectiveToEdit"].Controls[0] as RadDatePicker).SelectedDate);

I have also tried to explicity accces the control (this works for other controls on this page):

fmsdupdate.EffectiveFrom = Convert.ToDateTime (((RadDatePicker)UpdateItem.FindControl("rdpMinDateEdit")).SelectedDate);

The date always comes back as 00/00/0001 or null despite a date being picked in the control. Any help on this would be greatly appreciated
Jayesh Goyani
Top achievements
Rank 2
 answered on 08 Nov 2011
3 answers
267 views
every time I paste a table from MS word the formatting gets all screwed up.  either the width is too much or the font is wrong.  In one particular case, it was adding the <p class = "tlbBody"> to certain cells.  I have found no way to get rid of that using the edit buttons.  I can manually delete the <p class> statement but that is so much work; it would be easier to recreate the table from scratch.

I can paste in text that has a font is not included with Radeditor.  so how does that work? is the recommendation to only use the built in fonts that Radeditor has?  because if I ever accidently switch fonts I can no longer type in that font.

is there a preferred web browser to edit with?
Rumen
Telerik team
 answered on 08 Nov 2011
2 answers
207 views
Hi There,

I had the thought today that it would be nice to have a button in the title bar of my RadDocks which would "pop" them out of their DockZone and make them freely draggable around the screen.  I see that there is an undock() function, but is there a way to add this functionality to the title bar?

It looks as if I would have to create a custom template for the title bar, but I am not sure how to go about that.

Thanks for any help,

Daniel
Slav
Telerik team
 answered on 08 Nov 2011
9 answers
318 views
Hi all,

Have a question about multiple RadWindows on one page that I try to open client-side.

These are my windows defined on my page:
<telerik:RadWindowManager ID="windowManager" runat="server"> 
        <Windows> 
            <telerik:RadWindow Skin="Sitefinity" InitialBehaviors="None" VisibleStatusbar="false" 
                Width="650px" Height="725px" Behaviors="Close" ID="wdKitchenSetup" runat="server" 
                Modal="true" Overlay="false"> 
            </telerik:RadWindow> 
            <telerik:RadWindow Skin="Sitefinity" InitialBehaviors="None" Visible="false" Width="400px" 
                Height="400px" Behaviors="Close" ID="wdWashupSetup" runat="server" Modal="true" Overlay="false"> 
            </telerik:RadWindow> 
        </Windows> 
    </telerik:RadWindowManager> 

These are the js functions I use.
The ShowKitchenSetup is working okay. It shows a popup with the content of the referred url.
The ShowWashupSetup gives an error. (see thread title)

function ShowWashupSetup(id) { 
 
                // Define the ajaxManager 
                var ajaxPanel = $find("<%= ajaxPanel.ClientID %>"); 
 
                // Concat the arguments 
                var arguments = "Washup, " + id; 
 
                // Execute the ajax request 
                ajaxPanel.ajaxRequest(arguments); 
 
                // Define the window manager 
                var manager = GetRadWindowManager(); 
 
                // Define the url with parameters 
                var url = "ConfigWashup.aspx?id=" + id; 
 
                // Get the window 
                var wnd = manager.getWindowByName("wdWashupSetup"); 
 
                // Set the url 
                wnd.setUrl(url); 
 
                // Show the window 
                wnd.show(); 
 
            } 
 
            function ShowKitchenSetup(id) { 
 
                // Define the ajaxManager 
                var ajaxPanel = $find("<%= ajaxPanel.ClientID %>"); 
 
                // Concat the arguments 
                var arguments = "KitchenSetup, " + id; 
 
                // Execute the ajax request 
                ajaxPanel.ajaxRequest(arguments); 
 
                // Define the window manager 
                var manager = GetRadWindowManager(); 
 
                // Define the url with parameters 
                var url = "ConfigKitchen.aspx?id=" + id; 
 
                // Get the window 
                var wnd = manager.getWindowByName("wdKitchenSetup"); 
 
                // Set the url 
                wnd.setUrl(url); 
 
                // Show the window 
                wnd.show(); 
            } 

Anyone has an idea why this won't work?

Thanks,
Daniel
Subhash
Top achievements
Rank 1
 answered on 08 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?