Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
64 views
Hi, I am using RadGrid control into my web form and editing within grid. But when click on update then i am getting old values which has been picked up from database but i need to get new values added into grid text box. Please have a look on code guid me how may i fix this.

<

 

radGrid:RadGrid ID="gdViewOrders" runat ="server" AutoGenerateColumns="false"  AllowMultiRowSelection="false" EnableAJAX="true" AllowMultiRowEdit="true" OnEditCommand="gdViewOrder_EditMode" OnUpdateCommand="gdViewOrder_UpdateMode">

 

 

<MasterTableView EditMode="InPlace" DataKeyNames="OrdID">

 

 

<Columns>

 

 

    <radGrid:GridEditCommandColumn UniqueName="EditCommandColumn"></radGrid:GridEditCommandColumn>

 

 

    <radGrid:GridBoundColumn HeaderText="Order ID" DataField="OrdID" ReadOnly="true"></radGrid:GridBoundColumn>

 

 

    <radGrid:GridBoundColumn HeaderText="Name" DataField="CustName" UniqueName="Name"></radGrid:GridBoundColumn>

 

 

</Columns>

 

 

 

</MasterTableView>

 

 

</radGrid:RadGrid>

 


Code:

protected

 

void gdViewOrder_UpdateMode(object sender, Telerik.WebControls.GridCommandEventArgs e)

 

 

{

 

 

        GridEditableItem editedItem = (GridEditableItem)e.Item;

 

 

 

        int id = Convert.ToInt32(editedItem.GetDataKeyValue("OrdID"));

 

 

 

        string objName = (editedItem["Name"].Controls[0] as TextBox).Text;

 

 

        bool response = objOrders.UpdateOrder(id, objName, objAddress.Text, objSeller.Text, Convert.ToInt32(objStatus.Text));

 

 

 

        lblMessage.Text = "Order has not been updated successfully.";

 

 

}


Thanks
Shinu
Top achievements
Rank 2
 answered on 15 Jun 2011
1 answer
177 views
I am using RadTextbox in my program as a password:

<telerik:RadAjaxPanel ID="radAjaxPanelUserManagement" runat="server">
        <telerik:RadPanelBar runat="server" ID="radPanelBarUser" Width="100%">
            <Items>
                <telerik:RadPanelItem Enabled="True" Text="Add/Edit User" runat="server" Expanded="false"
                    Visible="false" Value="userMasterPanel">
                    <Items>
                        <telerik:RadPanelItem Enabled="True" runat="server" Value="userPanel" Expanded="false">
                            <ItemTemplate>

<asp:Label ID="lblTextboxPassword" runat="server" Text="Password " CssClass="custom-label"></asp:Label>
<telerik:RadTextBox ID="txtPassword" runat="server" CssClass="custom-txtbox" Rows="1" Width="175px" MaxLength="15" ShowButton="False" SelectionOnFocus="None" TextMode="Password" CausesValidation="true" TabIndex="4" >
</telerik:RadTextBox><asp:Label ID="lblTextboxConfirmPassword" runat="server" Text="Confirm Password "
                                                        CssClass="custom-label"></asp:Label>

<telerik:RadTextBox ID="txtConfirmPassword" runat="server" TextMode="Password" Rows="1"
                                                        MaxLength="15" Width="175px" CssClass="custom-txtbox" CausesValidation="true"
                                                        TabIndex="5" >
                                                    </telerik:RadTextBox>
</ItemTemplate>
                        </telerik:RadPanelItem>
                    </Items>
                </telerik:RadPanelItem>
            </Items>
            <CollapseAnimation Duration="100" Type="None" />
            <ExpandAnimation Duration="100" Type="None" />
        </telerik:RadPanelBar>
    </telerik:RadAjaxPanel>

Issue creates when i want to fill value of this text box on .cs file. That value is not showing on the web page.

public void editUser(Object sender, EventArgs arg)
{
     RadTextBox txtPassword = ((RadTextBox)radPanelBarUser.FindItemByValue(PureAnalyzer_WebApp.UserPanel).FindControl("txtPassword"));
            RadTextBox txtConfirmPassword = RadTextBox)radPanelBarUser.FindItemByValue(PureAnalyzer_WebApp.UserPanel).FindControl("txtConfirmPassword"));

txtPassword.Text="abc#123";
txtConfirmPassword .Text="abc#123";

}

In this code i want to fill value of fill some dynamic value to radtextbox but this shows as a blank. 
Please help me in this issue.
Iana Tsolova
Telerik team
 answered on 15 Jun 2011
1 answer
980 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
128 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
102 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
112 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
100 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
56 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
106 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
328 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?