| <CalendarDayTemplates> | |
| <telerik:DayTemplate ID="OvertimeTemplate"> | |
| <Content> | |
| <asp:TextBox ID="tbDayShift" Width="30px" MaxLength="1" Style="color: #0000FF; font-weight: bold;" Text="0" runat="server" /> | |
| <asp:TextBox ID="tbNightShift" Width="30px" MaxLength="1" Style="color: #FF0000; font-weight: bold;" Text="0" runat="server" /> | |
| </Content> | |
| </telerik:DayTemplate> | |
| </CalendarDayTemplates> |
| protected override void OnLoad(EventArgs e) | |
| { | |
| if (!IsPostBack) | |
| { | |
| base.OnLoad(e); | |
| DateTime startDate = new DateTime(base.Yil, base.Donem, 1); | |
| TimeSpan monthSpan = startDate.AddMonths(1) - startDate; | |
| for (int i = 0; i < monthSpan.Days; i++) | |
| { | |
| RadCalendarDay day = new RadCalendarDay(); | |
| day.Date = startDate.AddDays(i); | |
| day.TemplateID = "tmp1"; | |
| cal.SpecialDays.Add(day); | |
| } | |
| } | |
| } |
| function selectNode(text, TreeID) |
| { |
| var treeView = $find(TreeID); |
| var node = treeView.findNodeByText(text); |
| if (node != null) |
| { |
| node.select(); |
| } |
| } |
| protected void Tree_NodeClick(object sender, Telerik.Web.UI.RadTreeNodeEventArgs e) |
| { |
| TreeNode_Click(sender, e); |
| Tree_NodeExpand(sender, e); |
| e.Node.ExpandChildNodes(); |
| e.Node.Expanded = true; |
| //e.Node.Toggle(); |
| } |
Hello,
I am experiencing a weird bug right now with the RadUpload + RadProgressManager controls (.Net35 Q3 2008).
When I try to upload large files (50 Mb+), the file name displayed in the progressbar changes after a few minutes.
Apparently, it's some file uploaded by another user that is displayed.
But the upload process still manages to finish completely.
For info, my site is using the default session state and a form authentication.
Anyone has any idea of what's wrong in my web application?
Here is the declaration code of the upload controls:
| <telerik:RadUpload ID="RadUpload1" runat="server" ControlObjectsVisibility="RemoveButtons, AddButton" |
| InitialFileInputsCount="1" InputSize="30" Skin="Vista" Width="840px" OnClientAdded="addDescription"> |
| <Localization Add="Select another file" Select="Browse..." /> |
| </telerik:RadUpload> |
| <telerik:RadProgressManager ID="RadProgressManager1" runat="server" EnableEmbeddedBaseStylesheet="False" EnableEmbeddedSkins="False" UniquePageIdentifier="349f6d15-ebfd-4ddc-8e99-e123a51d8646" /> <telerik:RadProgressArea ID="RadProgressArea1" runat="server" DisplayCancelButton="True" |
| Skin="Vista" Width="640px"> |
| <Localization Uploaded="Uploaded"></Localization> |
| </telerik:RadProgressArea> |
| <system.web> |
| <sessionState timeout="1440" /> |
| <trust level="Full" /> |
| <webServices> |
| <protocols> |
| <add name="HttpPost" /> |
| <add name="HttpGet" /> |
| </protocols> |
| </webServices> |
| <httpRuntime executionTimeout="86399" maxRequestLength="2097150" /> |
| <httpModules> |
| <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> |
| <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" /> |
| </httpModules> |
| <compilation defaultLanguage="c#" debug="false" tempDirectory="F:\TempFileFolder"> |
| <assemblies> |
| <add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> |
| <add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> |
| <add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> |
| <add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /> |
| <add assembly="System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /> |
| <add assembly="System.DirectoryServices.Protocols, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /> |
| <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /> |
| <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.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> |
| <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> |
| </assemblies> |
| </compilation> |
| <authentication mode="Windows" /> |
| <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" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> |
| <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" /> |
| </httpHandlers> |
| <pages maintainScrollPositionOnPostBack="true"> |
| <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" /> |
| </controls> |
| </pages> |
| </system.web> |
| <location path="UploadFile.aspx"> |
| <system.web> |
| <httpRuntime maxRequestLength="2097151" executionTimeout="86399" /> |
| </system.web> |
| </location> |
| <location path="Telerik.RadUploadProgressHandler.aspx"> |
| <system.web> |
| <authorization> |
| <allow users="*" /> |
| </authorization> |
| </system.web> |
| </location> |
| <telerik:RadDatePicker ID="dateFrom" runat="server" |
| SharedCalendarID="RadCalendar1" AutoPostBack="True" |
| Culture="English (United Kingdom)"> |
| <DateInput runat="Server" AutoPostBack="True"> |
| </DateInput> |
| <Calendar runat="server" UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" |
| ViewSelectorText="x"> |
| </Calendar> |
| <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton> |
| </telerik:RadDatePicker> |
| dateFrom.Clear() |
| dateTo.Clear() |
In the SelectedIndexChanged event of my page I use code to grab information the selected row, store it in a session and present the data in textboxes below the grid:
For Each item As GridDataItem In MyGrid.SelectedItems
Dim sCode As String = Trim(item("sCode").Text.ToString())
Session("sCode") = sValidationId
Next
txtCode.Text = Session("sCode")
I'd like to be able to have the first set of data already loaded into the textboxes once the page is loaded, so the user does not need to make a selection to fill the textboxes on load.
As the title states, how can I have the first row of my grid already selected when the page loads?