<?xml version="1.0"?> <configuration> <configSections> <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <section name="SLSCommunicationPortal.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/> </sectionGroup> </configSections> <connectionStrings> <add name="CommonLogconnectionString" connectionString="Data Source=xxxxx;Initial Catalog=xxxx;Integrated Security=SSPI;Connect Timeout=120;Pooling=true; Min Pool Size=5;" providerName="System.Data.SqlClient" /> <add name="xxxx" connectionString="Data Source=xxxxx;Initial Catalog=xxxxx;Integrated Security=SSPI;Connect Timeout=120;Pooling=true; Min Pool Size=5;" providerName="System.Data.SqlClient" /> </connectionStrings> <appSettings> <add key="xxxxx" value="xxxxx"/> <add key="xxxxx" value="xxxxx" /> <add key="LogDir" value="xxxxx"/> <add key="Telerik.Skin" value="Office2010Blue"/> <add key="Telerik.ScriptManager.TelerikCdn" value="Disabled"/> <add key="Telerik.StyleSheetManager.TelerikCdn" value="Disabled"/> </appSettings> <system.web> <compilation debug="true" targetFramework="4.0"> <assemblies> <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> <add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> </assemblies> </compilation> <pages> <controls> <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/> </controls> </pages> <httpHandlers> <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false"/> <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/> <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/> <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false"/> <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/> </httpHandlers> <httpModules> <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule"/> <add name="RadCompression" type="Telerik.Web.UI.RadCompression"/> </httpModules> </system.web> <system.webServer> <validation validateIntegratedModeConfiguration="false"/> <modules runAllManagedModulesForAllRequests="true"> <remove name="RadUploadModule"/> <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode"/> <remove name="RadCompression"/> <add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode"/> </modules> <handlers> <remove name="ChartImage_axd"/> <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode"/> <remove name="Telerik_Web_UI_SpellCheckHandler_axd"/> <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode"/> <remove name="Telerik_Web_UI_DialogHandler_aspx"/> <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode"/> <remove name="Telerik_RadUploadProgressHandler_ashx"/> <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode"/> <remove name="Telerik_Web_UI_WebResource_axd"/> <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode"/> </handlers> </system.webServer> <applicationSettings> <SLSCommunicationPortal.Properties.Settings> <setting name="xxxxxx" serializeAs="String"> <value>xxxxx</value> </setting> </SLSCommunicationPortal.Properties.Settings> </applicationSettings> </configuration>Hi,
I was watching the following video on File Uploaded in Silverlight for SharEPoint 2010. I have few queries on that:
http://tv.telerik.com/watch/silverlight/video/telerik-silverlight-controls-and-sharepoint-2010-part-5
1. It is mentioned in the video that the ScratchArea folder is not required to chunk the files if we have enabled RBS.
How it differs, where does the chunk data of the large file goes if we are not using / creating the folder.
2. If i have a scenario where i am using the RBS feature of SharePoint 2010 only for files more than 10MB, in such a scenario how can i or where to put the if condition that if the file is less than 10 MB use the ScracthArea folder to chunk the large file . How we can achieve such a scenario?
3. In the video there is a mention about the this.Request.Form["RadUAG_fileName"]. Now if the file is uploaded from 3-4 browsers by different users, how the file names will be?
4. If we are enabling the RBS , whether the uploadhandler.ashx is required. How different the project (Server Project-SharePoint Empty Project) will be in structure if we are using of have a facility to switch RBS and non-RBS implementation depending upon the size of the file.
5. this video shows the silverlight webpart which is deployed to the SharePoint Page to upload the file. What if i have a silverlight application which is out of SharePoint environment, hosted in some other server. I want to upload a huge file from the silverlight application to the SharePoint Document Library.
Thanks in advance.
Veena R
<
telerik:RadTreeList ID="RadTreeList1" runat="server" DataKeyNames="ID" ParentDataKeyNames="PID"
OnNeedDataSource="RadTreeList1_NeedDataSource" AutoGenerateColumns="false" HeaderStyle-Font-Bold="true" AllowMultiItemEdit= "true" EditMode="InPlace">
<Columns>
<telerik:TreeListBoundColumn DataField="ID" HeaderText="ID" UniqueName="ID" Visible="false" ReadOnly="true">
</telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn DataField="PID" HeaderText="PID" UniqueName="PID" Visible="false" ReadOnly="true">
</telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn DataField="Name" HeaderText="Name" UniqueName="Name" ItemStyle-Width="150px" HeaderStyle-Width="150px" ReadOnly="true">
</telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn DataField="Limit" HeaderText="Limit" UniqueName="Limit" ItemStyle-Width="150px" HeaderStyle-Width="150px">
</telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn DataField="Expense" HeaderText="Expense" UniqueName="Expense" ItemStyle-Width="150px" HeaderStyle-Width="150px" ReadOnly="true">
</telerik:TreeListBoundColumn>
</Columns>
</telerik:RadTreeList>
protected void RadTreeList1_NeedDataSource(object sender, TreeListNeedDataSourceEventArgs e)
{
tbl =
new CounterPartyHierarchy.CounterPartyHierachyTableDataTable();
tbl.ReadXml(
@"..\hierarchy.xml");
RadTreeList1.DataSource = tbl;
}
protected void btnEdit_Click(object sender, EventArgs e)
{
foreach (TreeListDataItem item in RadTreeList1.Items)
{
item.Edit =
true;
}
}
protected void btnUpdate_Click(object sender, EventArgs e)
{
Hashtable table = new Hashtable();
foreach (TreeListDataItem item in RadTreeList1.EditItems)
{
string limit= (item.GetColumnEditor("Limit") as TreeListTextBoxColumnEditor).TextBoxControl.Text;
}
}
<telerik:RadComboBox ID="rlMyGuys" runat="server" DataSourceID="SQLdsMyGuys" AutoPostBack="True" CheckBoxes="true" onitemchecked="OnItemChecked"
DataValueField="employid" DataTextField="empname" Width="240px">
</telerik:RadComboBox>
In Code:
Protected Sub OnItemChecked(ByVal sender As Object, ByVal e As RadComboBoxItemEventArgs)
BindEmployeeAssignments()
End Sub
I am not sure where the issue is.
<br /> <style type="text/css"> .rsTimelineView .rsAllDayRow { height:32px !important; } .rsContentScrollArea { /*overflow-x: scroll;*/ } .rhs table tbody tr td iframe { z-index: 9000000!important; } .rsAllDayTable ,.rsHorizontalHeaderTable { width:100%!Important; } .RadScheduler, .rsHeader { /*Z-index:0!important;*/ } .rsHeader { /*z-index:1; */ /*z-index:0!Important; */ } .rsContent { position:relative; /*top:-8px;*/ top:0px; /*z-index:-1!important;*/ } .rsAptRecurrenceException { display:none!important; } .ms-inputuserfield { border-style:solid; border-color:Gray; border-width:1px; } /*.rsAptOut*/ .overrideRsAptOut { width: inherit !important; } .placeholder { /*border-color:Teal; border-width:1px; border-style:solid;*/ } .clear { float:none; clear: both; } .lhs { position:relative; float:left; width: 150px; } .rhs { position:relative; float:left; width:300px; margin-right:10px; margin-left:5px; } #divResourcePicker { padding-top:10px!important; } #divDisplayMissingResources, .errors { padding-top:10px; color:Red; } #divDisplayAvailability { margin:0px auto 0px auto; padding-top:10px; } #divGetAvailability, #divDisplayMissingResources, #divDisplayAvailability { position:relative; top:40px; } </style> <script type="text/javascript" src="~/_layouts/Amp.AvailabilityViewer.SharePoint/jquery-1.6.2.min.js"></script> <script type="text/javascript"> </script> <div id="divWebPartContainer" > <div id= "divStartDateTime"> <div class="lhs placeholder"> Start Date & Time </div> <div class="rhs placeholder"> <SharePoint:DateTimeControl ID="dtcStartingDateTime" runat="server" /> </div> </div> <div class="clear"></div> <div id= "divResourcePicker"> <div class="lhs placeholder"> Names</div> <div class="rhs placeholder" style="height:26px;"> <SharePoint:PeopleEditor id="peopleEditor" runat="server" IsValid="true" AllowEmpty="true" Height="20px" Width="290px" AllowTypeIn="true" MultiSelect="true" /> </div> </div> <div class="clear"></div> <div id= "divGetAvailability"> <div class="lhs placeholder"> <asp:Button ID="btnCheckAvailability" runat="server" Text="Check Availability" onclick="btnCheckAvailability_Click" /> </div> <div class="rhs placeholder"> </div> </div> <div class="clear"></div> <asp:Panel ID="pnlDisplayMissingResources" runat="server" visible="false"> <div id= "divDisplayMissingResources"> <div class="lhs placeholder"></div> <div class="rhs placeholder"> <asp:Literal ID="litInaccableCalendars" runat="server" ></asp:Literal></div> </div> </asp:Panel> <div class="clear"></div> <div id= "divDisplayAvailability" class="placeholder"> <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional"> <ContentTemplate> <div class="lhs placeholder"></div> <div class="rhs placeholder"><asp:Label ID="RadSchedulerError" runat="server" Text="" Visible="false" CssClass="errors"></asp:Label></div> <div class="clear"></div> <telerik:RadScheduler ID="RadScheduler1" runat="server" AllowEdit="false" AllowInsert="false" ShowViewTabs="false" OnAppointmentCreated="RadScheduler1_AppointmentCreated" ShowNavigationPane="true" EnableExactTimeRendering="true" OnNavigationCommand = "RadScheduler1_NavigationCommand" EnableDatePicker="false" visible="true" > <AdvancedForm Modal="true" /> <TimelineView GroupingDirection="Vertical" /> <MonthView UserSelectable="false" /> <DayView UserSelectable="false" /> <WeekView UserSelectable="false" /> </telerik:RadScheduler> </ContentTemplate> </asp:UpdatePanel> </div> <br /> </divprivate void initialiseSchedulerUI() { RadScheduler1.SelectedView = Telerik.Web.UI.SchedulerViewType.TimelineView; RadScheduler1.DayStartTime= TimeSpan.Parse("08:00:00") ; RadScheduler1.DayEndTime=TimeSpan.Parse("19:00:00") ; RadScheduler1.Skin= "Office2007" ; RadScheduler1.TimelineView.UserSelectable = false; RadScheduler1.TimelineView.GroupBy = "User"; RadScheduler1.TimelineView.ShowInsertArea = false; //Timescales scale = Timescales.Hours; //RadScheduler1.TimelineView.ShowTimescale(scale); RadScheduler1.DataKeyField = "ID"; RadScheduler1.DataStartField = "Start"; RadScheduler1.DataDescriptionField = "Subject"; RadScheduler1.DataEndField = "End"; RadScheduler1.DataSubjectField = "Subject"; RadScheduler1.DataRecurrenceField = "RecurrenceRule"; RadScheduler1.DataRecurrenceParentKeyField = "RecurrenceParentID"; //RadScheduler1.OverflowBehavior="Expand" ; RadScheduler1.TimelineView.SlotDuration = TimeSpan.Parse("00:15:00"); RadScheduler1.TimelineView.TimeLabelSpan = 4; RadScheduler1.TimelineView.ColumnHeaderDateFormat = "h tt"; RadScheduler1.TimelineView.NumberOfSlots = 64; RadScheduler1.TimelineView.StartTime = TimeSpan.Parse("08:00:00"); RadScheduler1.TimelineView.HeaderDateFormat = "dddd, dd MMMM yyyy"; RadScheduler1.RowHeight = Unit.Pixel(32); RadScheduler1.ReadOnly = true; } protected void RadScheduler1_NavigationCommand(object sender, SchedulerNavigationCommandEventArgs e) { string radDate; // = startDate.ToShortDateString(); string dtcDate; DateTime convertedRadDate; //= DateTime.Parse(sDate); DateTime converteddtcDate; radDate = RadScheduler1.SelectedDate.ToShortDateString(); dtcDate = dtcStartingDateTime.SelectedDate.ToShortDateString(); convertedRadDate = DateTime.Parse(radDate); converteddtcDate = DateTime.Parse(dtcDate); if (RadScheduler1.SelectedView == SchedulerViewType.TimelineView) { if (e.Command == SchedulerNavigationCommand.NavigateToNextPeriod) { RadScheduler1.SelectedDate = RadScheduler1.SelectedDate.AddHours(8); RemoveRadEditorError(); //if (RadScheduler1.SelectedDate > dtcStartingDateTime.SelectedDate.AddDays(5)) if (convertedRadDate > converteddtcDate.AddDays(5)) { DisplayRadEditorError("You can only browse five days in Advance!"); RadScheduler1.SelectedDate = RadScheduler1.SelectedDate.AddHours(-8); e.Cancel = true; UpdatePanel1.Update(); } } else if (e.Command == SchedulerNavigationCommand.NavigateToPreviousPeriod) { RadScheduler1.SelectedDate = RadScheduler1.SelectedDate.AddHours(-8); RemoveRadEditorError(); //if (RadScheduler1.SelectedDate < dtcStartingDateTime.SelectedDate) if (convertedRadDate <= converteddtcDate) { DisplayRadEditorError("You cannot browse before the selected date!"); RadScheduler1.SelectedDate = RadScheduler1.SelectedDate.AddHours(8); e.Cancel = true; UpdatePanel1.Update(); } } } } protected void RemoveRadEditorError() { RadSchedulerError.Text = ""; //RadScheduler1.Visible = true; RadSchedulerError.Visible = false; } 