Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
951 views
I have a grid where I am showing a price field with 5 decimal places, but I only want to show decimal places when I need them.

e.g.
1,234.56000 >>> I would like to look like  >>>> 1,234.56

Although in the same grid I could have >>>>> 0.98765

Thanks,
Chuck
Martin
Telerik team
 answered on 15 Jun 2011
1 answer
112 views

Hi,

Currently we are using RADEDITOR control with the version of 5.3.2.0.By using this control we are adding the reports and storing in the sharepoint publishing page.So the report is storing the following format in the Sharepoint list.

<div><iframe id="iframe_1" src="http://webURL"></iframe></div>
<p>RAD EDITOR CONTROL<br>\r\n<br>\r\nRAD EDITOR CONTROL</p>

Now my requirment is i want to chage the src value from http into https under iframe control.Here i have more than
500 pages with the src value of http.So to update the value for each page,i have created separate utiltiy and getting the src value of the page.If the src value has http://,replacing with https:// under iframe control.Its updating fine in the Sharepoint List.

But the problem is when you update with <iframe> control,the <iframe> control is storing as Empty.When i fetch the item again am getting the folllowing format.

<div> </div>
<p>RAD EDITOR CONTROL<br>\r\n<br>\r\nRAD EDITOR CONTROL</p>

Content is storing (RAD EDITOR CONTROL) fine with out any issues.But am not sure Why its not updating with IFrame control in SPListItem update.Please let me know.Wating for your reply

With Regards,
Rajesh

 

Stanimir
Telerik team
 answered on 15 Jun 2011
1 answer
88 views
Hi,
I am using radgrid to display user information.( name, position, company, IsExternal, IsPreferred)
Each row will have edit button.
When user clicks edit button, if that user is external user, the all fields will be editable.
If the user is Internal user, then only Ispreferred should be editable, and all other fields should be readonly.

Any help pls,
Thanks,
pams
Princy
Top achievements
Rank 2
 answered on 15 Jun 2011
1 answer
91 views
Hi,

I want to use grouping functionality on a Enum field, so in GridGroupByField I want to put a Text instead of enum integer value, is that possible?

Regards
Mazdak
Vasil
Telerik team
 answered on 15 Jun 2011
3 answers
79 views
Hi,
I added an appointment from 3-3-11 to 25-3-11.Then i took week view.Clicking on the side arrow button it shows the next week with the event.But when i took the week view of the calendar that is last week 3/20/2011 - 3/26/2011,the appointment for the last day is displaying separately.Is there is any way to display it correctly?.I have attached a screen shot with this.Please check it.
Veronica
Telerik team
 answered on 15 Jun 2011
2 answers
45 views
I have a RadScheduler which will display the appointments.And on right clicking this appointment will show the details in a RadWindow.In order to show the radwindow i have used the OnFormCreating event where i check whether it is AdvancedEdit or Edit.If it is Edit or AdvancedEdit the details are populated in RadWindow.The problem is that after any Appointment is shown in Radwindow clicking on Day or Week or Month will display the RadWindow with the earlier selected Appointmnet's details.So what to do?

Thanks in Advance
Deepak
deepak
Top achievements
Rank 2
 answered on 15 Jun 2011
1 answer
88 views
Hi,
I am using telerik RAD Editor 5.6.0.0, when I am trying to check or uncheck auto update option in reusable content list no matter what, it is always getting reflected in the RAD Editor box, means auto update is not working. Can you please help me.

Regards
Islam
Stanimir
Telerik team
 answered on 15 Jun 2011
6 answers
303 views
HI I have problem with ajax request. On my developer server from visual studio 2008 working all ajax correctly. After upload my procjet to online server ajax not working correctly. Some ajax request is not ajax and page is reloaded example: Sorting in grid or LinkButton in Grid CommandItemTemplate. I use AjaxManager.  I add my web.config code. Thanks you for  helping.
<?xml version="1.0"?> 
<!--  
    Note: As an alternative to hand editing this file you can use the  gfdgfd fdg dgfd  dfds df sfds f 
    web admin tool to configure settings for your application. Use were rw r fgfdg sadsad dsfdsf  retr re trt re t 
    the Website->Asp.Net Configuration option in Visual Studio. d dsf dsfsf ds f jkfhjjkfds jhjk dsfsfds 
    A full list of settings and comments can be found in  sad sad reewrew  rerer dsf ds fd gdfg dsfdsfd dsfds 
    machine.config.comments usually located in  dsfdfds fdgf f  r rew 4r kokgofdgd f ds fdsds f ds 
    \Windows\Microsoft.Net\Framework\v2.x\Config  
--> 
<configuration> 
    <configSections> 
        <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" requirePermission="false"/> 
        <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
            <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
                <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/> 
                <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
                    <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/> 
                    <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/> 
                    <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/> 
                    <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/> 
                </sectionGroup> 
            </sectionGroup> 
        </sectionGroup> 
        <sectionGroup name="telerik.web.ui"
        </sectionGroup> 
    </configSections> 
    <telerik.web.ui> 
    </telerik.web.ui> 
    <log4net> 
        <appender name="InfoAppender" type="log4net.Appender.FileAppender"
            <file value="Logs\\Log4net.txt"/> 
            <appendToFile value="true"/> 
            <layout type="log4net.Layout.PatternLayout"
                <conversionPattern value="%d [%t] %-5p %c [%x] - %m%n"/> 
            </layout> 
        </appender> 
        <appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender"
            <file value="Logs\\log"/> 
            <appendToFile value="true"/> 
            <rollingStyle value="Date"/> 
            <datePattern value="yyyyMMdd"/> 
            <layout type="log4net.Layout.PatternLayout"
                <conversionPattern value="[%date] %-5level - %message%newline"/> 
            </layout> 
        </appender> 
        <logger name="_Default"
            <level value="NONE"/> 
            <appender-ref ref="RollingLogFileAppender"/> 
        </logger> 
    </log4net> 
    <appSettings> 
        <add key="ApplicationName" value="BezKauce"/> 
        <add key="log4net.Internal.Debug" value="true"/> 
        <add key="log4net.Internal.Quiet=" value="false="/> 
        <add key="Telerik.Skin" value="Sunset"/> 
    </appSettings> 
    <connectionStrings> 
        <add name="sql_conn" .....  /> 
    </connectionStrings> 
    <location path="App_Themes"
        <system.web> 
            <authorization> 
                <allow users="*"/> 
            </authorization> 
        </system.web> 
    </location> 
    <location path="Default.aspx"
        <system.web> 
            <authorization> 
                <allow users="*"/> 
            </authorization> 
        </system.web> 
    </location> 
    <system.web> 
        <httpRuntime maxRequestLength="102400" executionTimeout="3600"/> 
        <customErrors defaultRedirect="Error.aspx" mode="Off"></customErrors> 
        <!--AUTHENTIFIKACE--> 
        <authentication mode="Forms"
            <forms name=".ASPXAUTH" protection="All" timeout="1200" path="/" requireSSL="false" slidingExpiration="true" cookieless="UseCookies" loginUrl="Default.aspx"/> 
        </authentication> 
        <membership defaultProvider="SqlProvider" userIsOnlineTimeWindow="15"
            <providers> 
                <add name="SqlProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="sql_conn" applicationName="BezKauce" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="true" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" passwordAttemptWindow="10"/> 
            </providers> 
        </membership> 
        <roleManager defaultProvider="SqlProvider" enabled="true" cacheRolesInCookie="true" cookieName=".ASPROLES" cookieTimeout="30" cookiePath="/" cookieRequireSSL="true" cookieSlidingExpiration="true" cookieProtection="All"
            <providers> 
                <add name="SqlProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="sql_conn" applicationName="BezKauce"/> 
            </providers> 
        </roleManager> 
        <!--AUTHENTIFIKACE--> 
        <!--  
            Set compilation debug="true" to insert debugging  
            symbols into the compiled page. Because this  
            affects performance, set this value to true only  
            during development. 
        --> 
        <compilation debug="true"
            <assemblies> 
                <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> 
                <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
                <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> 
                <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> 
                <add assembly="System.Data.OracleClient, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> 
                <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> 
                <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> 
                <add assembly="System.Drawing.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> 
                <!--<add assembly="CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/> 
                <add assembly="CrystalDecisions.ReportSource, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/> 
                <add assembly="CrystalDecisions.Shared, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/> 
                <add assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/> 
                <add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/> 
                <add assembly="CrystalDecisions.Enterprise.Framework, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/> 
                <add assembly="CrystalDecisions.Enterprise.InfoStore, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/> 
                <add assembly="Microsoft.Office.Interop.Excel, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"/>--> 
                <add assembly="System.Web.Extensions.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies> 
        </compilation> 
        <!-- 
    <add assembly="Microsoft.Office.Interop.Outlook, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"/> 
    <add assembly="Microsoft.Office.Interop.Outlook, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"/> 
            The <authentication> section enables configuration  
            of the security authentication mode used by  
            ASP.NET to identify an incoming user.  
        --> 
        <sessionState mode="InProc" cookieless="false" timeout="30"/> 
        <browserCaps> 
            <case>RequiresControlStateInSession=true</case
        </browserCaps> 
        <pages> 
            <controls> 
                <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
                <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
                <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI, Version=2010.1.316.35"/> 
                <add tagPrefix="mycontrol" namespace="MyControls"/> 
            </controls> 
        </pages> 
        <httpHandlers> 
            <remove verb="*" path="*.asmx"/> 
            <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
            <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
            <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/> 
            <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/> 
            <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false"/> 
            <add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2010.1.309.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/> 
        </httpHandlers> 
        <httpModules> 
            <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
        </httpModules> 
    </system.web> 
    <system.codedom> 
        <compilers> 
            <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
                <providerOption name="CompilerVersion" value="v3.5"/> 
                <providerOption name="WarnAsError" value="false"/> 
            </compiler> 
            <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
                <providerOption name="CompilerVersion" value="v3.5"/> 
                <providerOption name="OptionInfer" value="true"/> 
                <providerOption name="WarnAsError" value="false"/> 
            </compiler> 
        </compilers> 
    </system.codedom> 
    <!--  
        The system.webServer section is required for running ASP.NET AJAX under Internet 
        Information Services 7.0.  It is not necessary for previous version of IIS. 
    --> 
    <system.webServer> 
        <validation validateIntegratedModeConfiguration="false"/> 
        <modules> 
            <remove name="ScriptModule"/> 
            <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
            <add name="RadUploadModule" preCondition="integratedMode" type="Telerik.Web.UI.RadUploadHttpModule"/> 
        </modules> 
        <handlers> 
            <remove name="WebServiceHandlerFactory-Integrated"/> 
            <remove name="ScriptHandlerFactory"/> 
            <remove name="ScriptHandlerFactoryAppServices"/> 
            <remove name="ScriptResource"/> 
            <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
            <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
            <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
            <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource"/> 
            <add name="Telerik_RadUploadProgressHandler_ashx" verb="*" preCondition="integratedMode" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler"/> 
        </handlers> 
    </system.webServer> 
</configuration> 

Travis
Top achievements
Rank 1
 answered on 15 Jun 2011
2 answers
62 views
I custom set my scheduler to display 4 weeks (day by day) from current date. e.g. today is June 14 2011, when i open the scheduler page the scheduler automatically shows 4 weeks from June 14 2011, ends on July 13 2011.

I setup an appointment to start from July 12 2011 till July 15 2011, which is cross 2 period. It shows fine when  June-July period is shown. However if I change to next period which starts from July 14 2011, the date July 14 and July 15 shows no appointment......

Is there any settings to quickly fix this issue?

thanks in advance
sf
Top achievements
Rank 1
 answered on 15 Jun 2011
6 answers
208 views
Hi,

I need help regarding my scenario. I have a link button inside the Radgrid that opens a RadWindow. At first I have problem regarding the passing of value (primarykey) of the selected row to the new page inside the RadWindow but I manage to fix it. But now my Radwindow is immediately closing after poping out.
Here's my code:

HTML
<telerik:GridTemplateColumn>
                    <ItemTemplate>
                        <asp:LinkButton ID="lnkEdit" runat="server" CssClass="styleMain" OnClientClick='<%#Eval("BillingID", "return editbilling({0})") %>'>Edit</asp:LinkButton>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>

<telerik:RadWindowManager ID="Singleton" runat="server"
        Behavior="Close, Reload" Height="250px" InitialBehavior="None"
        KeepInScreenBounds="true" Modal="true" Skin="Outlook" VisibleStatusbar="False"
        Width="450px">
        <Windows>
            <telerik:RadWindow ID="frm2" runat="server" InitialBehavior="None"
                OnClientClose="closeRadwindow" Title="Edit Billing">
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>

JAVASCRIPT

function editbilling(BillingID) {
            var oWnd
            oWnd = radopen("addbilling.aspx?je=" + BillingID, "frm2");
            //oWnd.center();
            //response.redirect in javascript
            //window.open("addbilling.aspx?je=" + BillingID, "frm2");
            
        }
Samantha
Top achievements
Rank 1
 answered on 15 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?