Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
135 views
I have a question that I hope has  good answer.

We have a lot pages using the radeditor for web parts and it works perfectly.  However, we are currently moving servers.  We have done two test moves and everything moves fine except for the radeditor content.

We moved the sites the first time without installing the web part and deploying the solution and I thought that was the problem, but after that mistake. I wiped that out and then installed the solution and deployed it. We then restored the data to the new site and moved again and it wiped out all our changes

IS there a way we can move this from one server to another without having to redo everything!!

Thanks,
Mike
Maxim Integrated Products
Mike
Top achievements
Rank 1
 answered on 22 Jan 2009
0 answers
107 views
delete
bo
Top achievements
Rank 1
 asked on 22 Jan 2009
3 answers
159 views
It seems somewhere between the 2008 Q2 and the 2008 Q3 SP2 bits, the slider has changed the way the steps and handle are rendered.

Previously, the size of the slider track (when set with length) would keep the handle image within it's bounds, but when doing the upgrade to the SP2 bits today, the handle is now centering around the step point. This means the left or right half of my image is no longer within the bounds of the slider.

So, is there a way to get the old behavior back (with a property or something similar) or, is there a way to specifically set the step width (and set an initial position to start from).

Thanks
Sean
jenkmeister
Top achievements
Rank 1
 answered on 22 Jan 2009
6 answers
116 views
The new build breaks the confirmtemplates (custom) and just throws errors now, also all of a sudden i cannot page on a grid past page 2, if i roll back to previous build it works fine. (grid is basic using needdatasource with paging) nothing fancy.

            <ConfirmTemplate> 
                 <div style="height:10px;"></div> 
                 <div style="float:left; padding-right:20px;">  
                    <img src="../im/sw.png" alt="" title="" /> 
                 </div>   
                 <div class="windowpopup radconfirm">     
                   <div class="DFont"> {1} </div>   
                   <div style="height:20px;"></div>       
                   <div> 
                     <div style="float:left; padding-right:18px;"></div> 
                     <div style="float:left;width:100px;">  
                         <class="DFont" onclick="$find('{0}').callBack(true);" href="javascript:void(0);" > 
                           <div class="CButtons DFont" style="cursor:pointer; width:90px; text-align:center;">  
                             <div id="okBtn" class="DFont" style="width:90px; text-align:center;">Yes, Delete</div> 
                           </div> 
                         </a> 
                     </div> 
                     <div style="float:left;width:70px;">  
                         <class="DFont" onclick="$find('{0}').callBack(false);" href="javascript:void(0);">  
                           <div class="CButtons DFont" style="cursor:pointer; width:60px; text-align:center;">  
                             <div class="DFont" style="width:60px; text-align:center;">Cancel</div> 
                           </div> 
                         </a> 
                    </div> 
                    <div style="clear:both;"></div> 
                   </div> 
                 </div>    
                 <div style="height:10px;"></div> 
            </ConfirmTemplate> 
Christopher Bishop
Top achievements
Rank 2
 answered on 22 Jan 2009
3 answers
202 views
Hi,

here i face some problem relataed to the date between Filter in RadGrid.

radG:RadGrid ID="dgRequest" runat="server" AllowSorting="True" AllowPaging="true"

 

 

 

EnableAJAX="False" AllowFilteringByColumn="True" ShowGroupPanel="True" ExportSettings-ExportOnlyData="true"

 

 

 

ExportSettings-IgnorePaging="true" ExportSettings-OpenInNewWindow="true" ShowFooter="false"

 

 

 

Skin="Monochrome" BorderStyle="None" MasterTableView-CellPadding="0" MasterTableView-AutoGenerateColumns="false"

 

 

 

Style="width: 100%;" CellPadding="0" EnableAJAXLoadingTemplate="False" Width="100%"

 

 

 

ClientSettings-ApplyStylesOnClient="true" PageSize="19">

 

 

 

 

 

<MasterTableView AutoGenerateColumns="False" CommandItemDisplay="None" GroupLoadMode="Client"

 

EnableColumnsViewState="true" Style="width: 100%;" DataKeyNames="Request_ID">

 

 

<ExpandCollapseColumn Visible="False">

 

<HeaderStyle Width="19px" />

 

</ExpandCollapseColumn>

 

 

<RowIndicatorColumn Visible="False">

 

 

 

<HeaderStyle Width="20px" />

 

 

 

</RowIndicatorColumn>

 

 

 

<Columns>

 

 

    <radG:GridBoundColumn Visible="False" DataField="Request_ID" HeaderText="RequestID">

 

     

</radG:GridBoundColumn>

 

 

 

<radG:GridButtonColumn Visible="false" HeaderText="select">

 

 

 

</radG:GridButtonColumn>

 

 

 

<radG:GridBoundColumn DataField="date_modified" DataType="System.DateTime" SortExpression="date_modified"

 

 

 

HeaderText="Date Created" AllowFiltering="true" ItemStyle-HorizontalAlign="Right">

 

 

 

</radG:GridBoundColumn>

 

 

 

<radG:GridBoundColumn DataField="vendor_co_name" SortExpression="vendor_co_name"

 

 

 

HeaderText="Vendor Company" AllowFiltering="true">

 

 

 

</radG:GridBoundColumn>

 

 

 

 

 

</Columns>

 

 

 

</MasterTableView>

 

<ClientSettings EnableClientKeyValues="True" ReorderColumnsOnClient="True" AllowColumnsReorder="True"

 

 

 

AllowGroupExpandCollapse="True" AllowDragToGroup="True">

 

 

 

<Resizing AllowColumnResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="False" />

 

 

 

<Selecting AllowRowSelect="true" />

 

 

 

<Scrolling AllowScroll="False" UseStaticHeaders="False" SaveScrollPosition="True"></Scrolling>

 

 

 

<ClientEvents OnRowDblClick="RowDblClick" OnRowSelected="RowSelected" />

 

 

 

</ClientSettings>

 

 

 

<PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true"></PagerStyle

 

 

</radG:RadGrid>

 

And in the Code File 

Dim

ds As DataSet

 

 'function that bring the Data and fill the dataset

 

ds = Company.GetVendorRequests(Ds_Security.GetUserID, VendorCoName, vendorUserName, ReqClientCompany, reqStatus, quickSearch)

 

Me.dgRequest.DataSource = ds
ViewState("VendorUsers") = ds

 

 

 

 

 

 

 

And 

Protected

Sub dgRequest_NeedDataSource(ByVal source As Object, ByVal e As Telerik.WebControls.GridNeedDataSourceEventArgs) Handles dgRequest.NeedDataSource

 

 

  

 

 

If IsPostBack Then

 

dgRequest.DataSource = ViewState("VendorUsers")
End If

 

 

 

End Sub

 

 

 

 

 


when i filter the data with the Search Criteria

12/18/2008 5/18/2009
it Filter the Result but while i entered the Search Criteria
12/18/2008 11/18/2009 or 12/18/2008 10/18/2009 or 12/18/2008 1/18/2009 it will not showing any reults it such strange.

please give me the solution.

Thanks and Regards
Manoj
Daniel
Telerik team
 answered on 22 Jan 2009
1 answer
106 views
Hi

I'm trying to combine external edit in RadDock with context menu. I can not get the edit form displayed from the context menu. I guess the following in the code-behind has to be changed:
RadScheduler1.ShowInlineEditForm(apt, editSeries);
RadScheduler1.ShowInlineInsertForm(timeSlot);

But change to what? I have tried ShowAdvancedEditForm and ShowAdvancedInsertForm without luck.

Regards,

Kasper Bergmann
Peter
Telerik team
 answered on 22 Jan 2009
0 answers
206 views
Hi I am working on a webpart in sharepoint which uses Ajax controls and I was wondering what the best type of storage to use would be so that I can store user independent variables, in my case it is string variables. I have tried using static variables but they are generic throughout all the users. I have also used session variables although they reduce the performance of the server. Is there any other ways to store variables?

Below is the source code for a sample webpart which I have created. In this webpart I am retrieving the value that the user enters in the textbox and storing it in the variable (input). The value of this variable gets stored even if the user refreshes the page. Is there any other method I can use to do this without session variables or static variables?

Thank You,
Alex

public

class SessionVariable_WP : System.Web.UI.WebControls.WebParts.WebPart

 

{

 

RadTextBox box;

 

 

Button alex;

 

 

protected RadAjaxPanel _mainUpdatePanel = null;

 

 

protected UserControl _loadingPanelControl = null;

 

 

protected const string _templateURL = @"/_layouts/1033/tdsb_aw/controltemplates/";

 

 

string input;

 

 

public SessionVariable_WP()

 

{

 

this.ExportMode = WebPartExportMode.All;

 

}

 

protected override void Render(HtmlTextWriter writer)

 

{

writer.Write(input);

RenderChildren(writer);

}

 

 

 

protected override void CreateChildControls()

 

{

 

try

 

{

Controls.Clear();

 

base.CreateChildControls();

 

box =

new RadTextBox();

 

box.Visible =

true;

 

box.ID =

"box";

 

box.Text = (

string)Page.Session["box"];

 

alex =

new Button();

 

alex.ID =

"button";

 

alex.Text =

"Click Me";

 

alex.Click +=

new EventHandler(alex_Click);

 

_mainUpdatePanel.Controls.Add(alex);

_mainUpdatePanel.Controls.Add(box);

 

ChildControlsCreated =

true;

 

}

 

catch (Exception ex)

 

{

 

string strMsg = "EX in CreateChildControls: " + ex.Message;

 

}

}

 

void alex_Click(object sender, EventArgs e)

 

{

Page.Session[

"box"] = box.Text;

 

input = box.Text;

input = (

string)Page.Session["box"];

 

}

 

protected override void OnInit(EventArgs e)

 

{

 

try

 

{

 

base.OnInit(e);

 

 

ScriptManager scriptManager = ScriptManager.GetCurrent(this.Page);

 

_mainUpdatePanel =

new RadAjaxPanel();

 

_mainUpdatePanel.ID =

"MainUpdatePanel";

 

_mainUpdatePanel.LoadingPanelID =

"MainLoadingPanel";

 

_mainUpdatePanel.EnableAJAX =

true;

 

 

if (scriptManager == null)

 

{

scriptManager =

new RadScriptManager();

 

scriptManager.ID =

"ScriptManager";

 

Controls.AddAt(0, scriptManager);

}

 

//Register the loadingpanel control

 

_loadingPanelControl = (

UserControl)this.Page.LoadControl(_templateURL + "Loading.ascx");

 

_loadingPanelControl.ID =

"MainLoadingPanelControl";

 

 

this.Controls.Add(_mainUpdatePanel);

 

 

this.Controls.Add(_loadingPanelControl);

 

 

if ((string)Page.Session["box"] != null)

 

{

input = (

string)Page.Session["box"];

 

}

EnsurePanelFix();

}

 

catch (Exception ex) { }

 

}

 

private void EnsurePanelFix()

 

{

 

try

 

{

 

ScriptManager.RegisterStartupScript(this, typeof(SessionVariable_WP), "UpdatePanelFixup", "_spOriginalFormAction = document.forms[0].action; _spSuppressFormOnSubmitWrapper=true", true);

 

}

 

catch (Exception ex) { }

 

}

 

protected override void RenderChildren(HtmlTextWriter writer)

 

{

 

try

 

{

 

if (HasControls())

 

{

 

foreach (Control curControl in Controls)

 

{

curControl.RenderControl(writer);

}

}

}

 

catch (Exception ex)

 

{

}

}

}

LEWINA
Top achievements
Rank 1
 asked on 22 Jan 2009
3 answers
132 views
Hi,
when i update or insert a new item in a Detailtableview i need to refresh the parent item, but if i use a RadGrid.Rebind() the detailview is not closed (althought make the insert or the update) and don't refresh the grid. What i do wrong?
Sebastian
Telerik team
 answered on 22 Jan 2009
1 answer
167 views
Hello everyone,

I would like to know how i can resize the title bar of a rad window component? I have one window which i open maximized and modal, so it's a popup that covers the whole screen, but the thing is that the title bar is too big. i would like to shrink it to a defined size, 25px for example.
How can i do that?

Thank you,
Adrian.
Georgi Tunev
Telerik team
 answered on 22 Jan 2009
0 answers
149 views
When I click on Update below the grid in the edit mode, the grid throws this error...

Message
: DotNetNuke.Services.Exceptions.PageLoadException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Data.SqlTypes.SqlTypeException: SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM. at System.Data.SqlTypes.SqlDateTime.FromTimeSpan(TimeSpan value) at System.Data.SqlTypes.SqlDateTime.FromDateTime(DateTime value) at System.Data.SqlClient.MetaType.FromDateTime(DateTime dateTime, Byte cb) at System.Data.SqlClient.TdsParser.WriteValue(Object value, MetaType type, Byte scale, Int32 actualLength, Int32 encodingByteSize, Int32 offset, TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.TdsExecuteRPC(_SqlRPC[] rpcArray, Int32 timeout, Boolean inSchema, SqlNotificationRequest notificationRequest, TdsParserStateObject stateObj, Boolean isCommandProc) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at Inova.MSF.PF.OrdersAcceptance.DS.OrdersAcceptanceTableAdapters.MSF_BOOKINGTableAdapter.Update(String BOOKING_ID_FROM_USER, String CUSTOMER, String AGENCY, String CAMPAIGN, String CONTACT, String FLIGHT_DATES, Boolean IS_RESERVATION, Nullable`1 NEAREST_PRODUCTION_ACTION, Nullable`1 REVERSAL, Nullable`1 REVERSAL_LAST_EDITOR_ID, Nullable`1 REVERSAL_LAST_EDITED, Int32 LAST_EDITOR_ID, DateTime LAST_EDITED, Int32 Original_BOOKING_ID) in C:\Inetpub\wwwroot\developer\Avinash\Source\inovaweb\DesktopModules\InovaStudioPortal\OrdersAcceptance\DS\OrdersAcceptance.Designer.cs:line 9583 --- End of inner exception stack trace --- at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod method, Boolean disposeInstance, Object& instance) at System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod method) at System.Web.UI.WebControls.ObjectDataSourceView.ExecuteUpdate(IDictionary keys, IDictionary values, IDictionary oldValues) at System.Web.UI.DataSourceView.Update(IDictionary keys, IDictionary values, IDictionary oldValues, DataSourceViewOperationCallback callback) at Telerik.Web.UI.GridTableView.PerformUpdate(GridEditableItem editedItem, Boolean suppressRebind) at Telerik.Web.UI.GridCommandEventArgs.ExecuteCommand(Object source) at Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e) at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) at Telerik.Web.UI.GridEditFormItem.OnBubbleEvent(Object source, EventArgs e) at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) at System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
bhavesh
Top achievements
Rank 1
 asked on 22 Jan 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?