Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
102 views
I have a question about RadScheduler.
I want to display DataKeyField value in EditForm
But It doesn't work Edit and Insert  when I just insert DataKey FieldName in CustomAttributeNames
Of course exclude that, it's work very well.
Please help me

<telerik:RadScheduler ID="RadScheduler1" runat="server"  width="1280px" Height="768px"
                DataEndField="Sc_EndDate" DataKeyField="Sc_Idx"
                DataSourceID="ObjectDataSource1" DataStartField="Sc_StartDate"
                AppointmentStyleMode="Default"
                CustomAttributeNames="Sc_Idx,Sc_Type,Se_Name,Me_Name,Sc_Detail,Me_Idx,Se_Idx,Em_Name"
                DataSubjectField="Sc_Detail" Skin="Sunset" 
                SelectedView="MonthView" EnableAdvancedForm="False"
                DataDescriptionField="Sc_Type"     >

.....
.....
<InlineEditTemplate>
.....
.....
            <%#Eval("Sc_Idx")%>
......
......
</InlineEditTemplate>

</telerik:RadScheduler>

Peter
Telerik team
 answered on 11 Nov 2010
9 answers
198 views
Okay, this is what is going on and I will try to include as much detail as possible. Unfortunately, based on how our development API works I won't be able to post all the code and I realize that could make this hard to figure out. Here is the situation, we are using radajaxpanels in some places and radajaxmanager in others. In an application we create for sharepoint ajax works perfectly in webparts ajax does not work right until after a postback occurs. IE I have a group of controls in an radajaxpanel, setup to ajaxify everything in the control. When I click on a button inside the panel I get a full postback. Afterwhich, if I click on the same button the ajax portion of it works from then on. Doesn't matter if it's the radajaxpanel or the ajaxmanager, both act the sameway. However, ajax toolkit update panel works correctly. We do all of our web parts in user controls and if we add that user control to a non-webpart the ajax works fine. So, it has to be an issue between sharepoint and the ajax functionality.

We have a script manager and ajax manager being added to the page on preinit. We also have safescriptmanagers on every user control (this is what fixed the ajax toolkit update panel), but not matter what we have tried we cannot get rad ajax to fire on the first shot. However, other RAD controls that are ajaxified work fine, it's just the update panels that are not working.

Any help would be greatly appreciated.

Thanks!
Brad Bridges
Top achievements
Rank 1
 answered on 11 Nov 2010
3 answers
107 views
Hi,
We built a website using Telerik Web UI Controls 2009 Q3; using a RadScriptManager we are creating a file to hold all the js combined. The problem is that, althrough using IIS 7 compression, we are getting nearly 800 KB of Javascript. How can we reduce this size??
Thank you.
Simon
Telerik team
 answered on 11 Nov 2010
5 answers
393 views
Hi All,

I have a telerik grid and sorting works fine with it. The problem arises when I try to refresh the page when the grid is sorted. The sort icon which appears on the column header of the grid is missing , where as the grid contains the sorted data.

Someone please tell me how to manually show the arrow Mark from the code behind.

Thanks
Pavlina
Telerik team
 answered on 11 Nov 2010
1 answer
124 views
The Radeditor is apparently replacing the align attribute with the style:float attribute to comply with xhtml standards. I tried the steps given in the below link but that doesnt seem to solve the problem for me. Also, editor.get_html() is not updated at the end of the script operations. I have not set the ConvertToXHtml filter to get disabled because the link says that doesnt solve the problem entirely.

http://www.telerik.com/community/forums/aspnet-ajax/editor/editor-transforming-align-right-into-float-right.aspx


Any suggestions on how to get rid of the style:float element and preserve the align attribute are welcome !
Dobromir
Telerik team
 answered on 11 Nov 2010
2 answers
143 views
I have a horizantal tabstrip with two tabs linked to a multi page, each multi page include a virtecal tabstrip linked to a multipage,
what I need is when user select a tab from the horizantal tabstrip only linked multipage to the tabstrip in the linked page view to be dispayed.

I wrote the following code but it keep hiding the first multipage only:

<

 

script>

 

 

function OnClientTabSelected(sender, eventArgs) {

 

 

var multiPage2 = $find("<%=RadMultiPage2.ClientID %>");

 

 

var multiPage3 = $find("<%=RadMultiPage3.ClientID %>");

 

 

var tab = eventArgs.get_tab();

 

 

var text = tab.get_text();

 

 

if (text = "Daily Profile") {

 

multiPage3.set_visible(

false);

 

multiPage2.set_visible(

true);

 

}

 

else {

 

multiPage3.set_visible(

true);

 

multiPage2.set_visible(

false);

 

}

}

</

 

script>

 

<

 

table cellpadding="0" cellspacing="0" width="970px">

 

 

<tr>

 

 

<td width="150">

 

 

&nbsp;

 

 

</td>

 

 

<td width="820">

 

 

<telerik:RadTabStrip ID="RadTabStrip1" runat="server" SelectedIndex="0" Skin="Windows7"

 

 

MultiPageID="RadMultiPage1" OnClientTabSelected="OnClientTabSelected">

 

 

<Tabs>

 

 

<telerik:RadTab runat="server" Text="Daily Profile" Width="410px">

 

 

</telerik:RadTab>

 

 

<telerik:RadTab runat="server" Text="Immediate Profile" Width="410px">

 

 

</telerik:RadTab>

 

 

</Tabs>

 

 

</telerik:RadTabStrip>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

 

<telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0">

 

 

<telerik:RadPageView ID="RadPageView1" runat="server" Selected="True">

 

 

<telerik:RadTabStrip ID="RadTabStrip2" runat="server" Orientation="VerticalLeft"

 

 

SelectedIndex="0" Skin="Windows7" Width="150px" MultiPageID="RadMultiPage2">

 

 

<Tabs>

 

 

<telerik:RadTab runat="server" Text="tab 1">

 

 

</telerik:RadTab>

 

 

<telerik:RadTab runat="server" Text="tab 2">

 

 

</telerik:RadTab>

 

 

<telerik:RadTab runat="server" Text="tab 3">

 

 

</telerik:RadTab>

 

 

<telerik:RadTab runat="server" Text="tab 4">

 

 

</telerik:RadTab>

 

 

<telerik:RadTab runat="server" Text="tab 5">

 

 

</telerik:RadTab>

 

 

</Tabs>

 

 

</telerik:RadTabStrip>

 

Daily

 

</telerik:RadPageView>

 

 

<telerik:RadPageView ID="RadPageView2" runat="server">

 

 

<telerik:RadTabStrip ID="RadTabStrip3" runat="server" Orientation="VerticalLeft"

 

 

SelectedIndex="0" Skin="Windows7" Width="150px" MultiPageID="RadMultiPage3">

 

 

<Tabs>

 

 

<telerik:RadTab runat="server" Selected="True" Text="tab 6">

 

 

</telerik:RadTab>

 

 

<telerik:RadTab runat="server" Text="tab 7">

 

 

</telerik:RadTab>

 

 

<telerik:RadTab runat="server" Text="tab 8">

 

 

</telerik:RadTab>

 

 

<telerik:RadTab runat="server" Text="tab 9">

 

 

</telerik:RadTab>

 

 

<telerik:RadTab runat="server" Text="tab 10">

 

 

</telerik:RadTab>

 

 

</Tabs>

 

 

</telerik:RadTabStrip>

 

Immediate

 

</telerik:RadPageView>

 

 

</telerik:RadMultiPage>

 

 

</td>

 

 

<td>

 

 

<telerik:RadMultiPage ID="RadMultiPage2" runat="server">

 

 

<telerik:RadPageView ID="RadPageView3" runat="server" Selected="true">

 

1

 

</telerik:RadPageView>

 

 

<telerik:RadPageView ID="RadPageView4" runat="server">

 

2

 

</telerik:RadPageView>

 

 

<telerik:RadPageView ID="RadPageView5" runat="server">

 

3

 

</telerik:RadPageView>

 

 

<telerik:RadPageView ID="RadPageView6" runat="server">

 

4

 

</telerik:RadPageView>

 

 

<telerik:RadPageView ID="RadPageView7" runat="server">

 

5

 

</telerik:RadPageView>

 

 

</telerik:RadMultiPage>

 

 

<telerik:RadMultiPage ID="RadMultiPage3" runat="server">

 

 

<telerik:RadPageView ID="RadPageView8" runat="server" Selected="true">

 

6

 

</telerik:RadPageView>

 

 

<telerik:RadPageView ID="RadPageView9" runat="server">

 

7

 

</telerik:RadPageView>

 

 

<telerik:RadPageView ID="RadPageView10" runat="server">

 

8

 

</telerik:RadPageView>

 

 

<telerik:RadPageView ID="RadPageView11" runat="server">

 

9

 

</telerik:RadPageView>

 

 

<telerik:RadPageView ID="RadPageView12" runat="server">

 

10

 

</telerik:RadPageView>

 

 

</telerik:RadMultiPage>

 

 

</td>

 

 

</tr>

 

</

 

table>

one thing more, I need to hide multipage3 on page load.

Thank you in advanced

 

Saeid Kdaimati
Top achievements
Rank 2
 answered on 11 Nov 2010
1 answer
101 views
I have a grid with column 'Balance' on which aggregate function is set as sum.
The result to be shown on the footer.

Its working fine in normal case.
But after grouping a particular field the value is shown as zero on the footer.

Can anyone help me??
Vasil
Telerik team
 answered on 11 Nov 2010
5 answers
232 views
Hello,
Newbie here...  Using AJAX RadControls with VS 2010.

I want to display a "Data Saved" info message box from the server side when a "Save" button is pressed.

I did this by adding the appropriate javascript to display a RadAlert in the onload() event for the page.
The good news is that the message does show up in the RadAlert in the onload. But.... the
problem is that if the user navigates away from the page & then returns ( via the Back button),
the onload() fires again and the RadAlert is displayed.

This isn't a Telerik problem, but thought you may have come across this problem before.
Any recommendations as to how this RadAlert will only be shown once
( displayed when user press button but NOT on Browser BACK).

here is my code snippet below.

Thank in advance,
bruce

-----------------------------------------------------------------
            string message = "Data saved";
            string script1 = "<script language='javascript'> window.onload = function(){radalert('";
      string script2 = "', 300, 120);}</script>";
      string script = script1 + message + script2;

            ClientScriptManager cs = p.ClientScript;
            String csname1 = "PopupScript";
            Type cstype = p.GetType();

            cs.RegisterStartupScript(cstype, csname1, script);
Georgi Tunev
Telerik team
 answered on 11 Nov 2010
3 answers
206 views
We are an E.S.P. (Email Service Provider) and user the Editor in a web application where the clients can design their newsletters themselves before sending. So our potential rendering platforms also include email clients i.e. Outlook etc...
The following text comes from an un-named tech doc.
"The Float: right property does not render correctly in Outlook 2007 because Outlook 2007 uses the Word 2007 HTML parsing and rendering engine to display HTML emails. Float and position are just two of several CSS properties that the Word 2007 engine considers 'unknown properties."
Our Problem:
When a user tries to insert an image into a message and chooses align right. The editor inserts a style element into the image tag. "style= FLOAT: right;"
 
This also happens when a user copies an older message and tries to replace the image and align it.
As a matter of fact the editor will add "style= FLOAT: right;" just by selecting the image and clicking on the Alignment drop down box and choosing Right.
Original HTML Code:
<IMG style="WIDTH: 240px; HEIGHT: 180px" border=0 hspace=15 alt="" vspace=12 align=right src="http://pages.nxtbook.com/nxtbooks/newbay/dv0610/assets/icon.gif" complete="complete">

HTML code after aligning right:
<IMG style="BORDER-BOTTOM: 0px solid; BORDER-LEFT: 0px solid; FLOAT: right; BORDER-TOP: 0px solid; BORDER-RIGHT: 0px solid" hspace=15 vspace=12 src="http://pages.nxtbook.com/nxtbooks/newbay/dv0610/assets/icon.gif" complete="complete">

Is their a way to prevent the edit image dialog box from turning the align right dropdown into the float style tag?

Sincerely,

Dana Cobb
Dobromir
Telerik team
 answered on 11 Nov 2010
3 answers
204 views
I am developing a custom control and am trying to use RadStylesheetManager to embed the stylesheets in the assembly. This is what I have done so far:

1. developed the custom control which registers the stylesheet to the stylesheetmanager in OnPreRender of the control like this

RadStyleSheetManager.GetCurrent(Page).StyleSheets.Add(
   new StyleSheetReference("customstylesheet.css",
   System.Reflection.Assembly.GetAssembly(this.GetType()).FullName));

2. added the stylesheet to the assembly

[assembly: WebResource("MyCustomControl.customstylesheet.css", "text/css")]

3. set the build action to Embedded Resource

As far as I know that and should be all I need to do and so far everything seems to be looking fine and is working fine and dandy when I use the control in a web project. The resources are nicely retrieved via the WebResource.axd handler. The problem tough is that it ONLY works when I add my control design time. When I add the controls at runtime (in the page's init cycle), then the WebResource.axd handler reports a http error 500, specifically (curtosy of fiddler):

<html>
    <head>
        <title>String cannot have zero length.</title>
        <style>
         body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
         p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
         b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
         H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
         H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
         pre {font-family:"Lucida Console";font-size: .9em}
         .marker {font-weight: bold; color: black;text-decoration: none;}
         .version {color: gray;}
         .error {margin-bottom: 10px;}
         .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
        </style>
    </head>
 
    <body bgcolor="white">
 
            <span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1>
 
            <h2> <i>String cannot have zero length.</i> </h2></span>
 
            <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
 
            <b> Description: </b>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.
 
            <br><br>
 
            <b> Exception Details: </b>System.ArgumentException: String cannot have zero length.<br><br>
 
            <b>Source Error:</b> <br><br>
 
            <table width=100% bgcolor="#ffffcc">
               <tr>
                  <td>
                      <code>
 
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.</code>
 
                  </td>
               </tr>
            </table>
 
            <br>
 
            <b>Stack Trace:</b> <br><br>
 
            <table width=100% bgcolor="#ffffcc">
               <tr>
                  <td>
                      <code><pre>
 
[ArgumentException: String cannot have zero length.]
   System.Reflection.RuntimeAssembly.GetManifestResourceInfo(RuntimeAssembly assembly, String resourceName, ObjectHandleOnStack assemblyRef, StringHandleOnStack retFileName, StackCrawlMarkHandle stackMark) +0
   System.Reflection.RuntimeAssembly.GetManifestResourceInfo(String resourceName) +79
   Telerik.Web.UI.ScriptAssemblyInfo.get_AssemblyType() +64
   Telerik.Web.UI.<>c__DisplayClass2.<WriteScripts>b__0(Match match) +21
   System.Text.RegularExpressions.RegexReplacement.Replace(MatchEvaluator evaluator, Regex regex, String input, Int32 count, Int32 startat) +198
   System.Text.RegularExpressions.Regex.Replace(String input, MatchEvaluator evaluator, Int32 count, Int32 startat) +33
   System.Text.RegularExpressions.Regex.Replace(String input, MatchEvaluator evaluator) +38
   Telerik.Web.UI.CombinedScriptWriter.WriteScripts(List`1 scriptEntries, TextWriter outputWriter) +265
   Telerik.Web.UI.CombinedScriptWriter.WriteCombinedScriptFile() +1070
   Telerik.Web.UI.WebResource.ProcessRequest(HttpContext context) +74
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
</pre></code>
 
                  </td>
               </tr>
            </table>
 
            <br>
 
            <hr width=100% size=1 color=silver>
 
            <b>Version Information:</b> Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
 
            </font>
 
    </body>
</html>
<!--
[ArgumentException]: String cannot have zero length.
   at System.Reflection.RuntimeAssembly.GetManifestResourceInfo(RuntimeAssembly assembly, String resourceName, ObjectHandleOnStack assemblyRef, StringHandleOnStack retFileName, StackCrawlMarkHandle stackMark)
   at System.Reflection.RuntimeAssembly.GetManifestResourceInfo(String resourceName)
   at Telerik.Web.UI.CombinedScriptWriter.ScriptAssemblyInfo.get_AssemblyType()
   at Telerik.Web.UI.CombinedScriptWriter.<>c__DisplayClass2.<WriteScripts>b__0(Match match)
   at System.Text.RegularExpressions.RegexReplacement.Replace(MatchEvaluator evaluator, Regex regex, String input, Int32 count, Int32 startat)
   at System.Text.RegularExpressions.Regex.Replace(String input, MatchEvaluator evaluator, Int32 count, Int32 startat)
   at System.Text.RegularExpressions.Regex.Replace(String input, MatchEvaluator evaluator)
   at Telerik.Web.UI.CombinedScriptWriter.WriteScripts(List`1 scriptEntries, TextWriter outputWriter)
   at Telerik.Web.UI.CombinedScriptWriter.WriteCombinedScriptFile()
   at Telerik.Web.UI.WebResource.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
-->

I have been banging into this for a couple of days now but can't seem to find the solution, so help is really appreciated. For the record, I have stepped throught the code and in the OnPreRender of my custom control the stylesheet reference looks to be added to the stylesheetmanager's stylesheet collection succesfully. A WebResource.axd link is generated indeed, so the manager 'thinks'  that something is registered indeed. But when retrieving the content of the resource it doesnt seem to find what it should be retrieving. 
/*                    RadStyleSheetManager styleSheetManager = RadStyleSheetManager.GetCurrent(Page);
                    if (styleSheetManager == null) throw new HttpException("A styleSheetManager control must exist on the current page.");
                    styleSheetManager.StyleSheets.Add(
                        new StyleSheetReference("Inception.Web.RibbonBar.Skins." + this.SkinID + ".RibbonTabStrip.css",
                                                System.Reflection.Assembly.GetAssembly(this.GetType()).FullName)); *
Simon
Telerik team
 answered on 11 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?