Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
73 views
I have a problem when using your example with a detailTable.
I dblclick an item in the detailTable to edit the data and i get an js error, seems like the item is not found.

The example i am talking bout is here.
http://www.telerik.com/help/aspnet-ajax/grdgoingintoeditmodewithajaxdoubleclick.html

My example with bug can be downloaded here:  http://80.166.206.186/Screendump/

Love the OnRowDblClick functionality and hope it is easily fixable. :)

Regards

Morten Bomholt
Princy
Top achievements
Rank 2
 answered on 26 Feb 2009
0 answers
101 views
Hi,
Thanks for Telerik team for making such wonderful tree control.
Where you can bind hierarchical data easily.
But I observed that the value for DataField Parent Id should be atleast one null value if the datatype is varchar.
Can I give 0 or any other value?
I don't want null values.
Thanks in advance.
-Mahesh
Mahesh
Top achievements
Rank 1
 asked on 26 Feb 2009
1 answer
164 views
halo,

how can i refresh/update the tree view example:
http://demos.telerik.com/aspnet-ajax/treeview/examples/applicationscenarios/directorystructure/defaultcs.aspx

every time that user upload the file ?

thanx in advance,
Stev



Shinu
Top achievements
Rank 2
 answered on 26 Feb 2009
1 answer
82 views
I am trying to develop an employee overtime input from Telerik's RadCalendar object. To accomplish this task I am using the DayTemplate property of the RadCalendar. My aspx code looks like:

<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> 
And the codebehind cs code is:

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); 
        } 
    } 
When the page is rendered everything seems OK.
Also when I navigate through the TextBoxes with the TAB key, still everything seems OK.
But when I try to select a spesific shift by clicking on it TextBox loses focus almost immediately. And even if I am quick enough to type a number into the textbox after losing the focus the text of the TextBox returns back to original value "0".

But again if I navigate to the day with the TAB key and change the value, the new value is kept.

So what am I doing wrong and what should I do to fix this error?

Regards.
Tsvetoslav
Telerik team
 answered on 26 Feb 2009
5 answers
223 views
hi,

i got a problem with expanding a node.

I am fireing the onclicknode event by javascript node.select()

    function selectNode(text, TreeID) 
    { 
        var treeView = $find(TreeID); 
 
        var node = treeView.findNodeByText(text); 
         
        if (node != null
        {         
            node.select();         
        } 
 
    } 

In my serverside on click event i fire the Tree_NodeExpand event to add the childnodes to the selectednode and the i expand the node.
        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(); 
                   
        } 

The node is expanded now, but the expandimage is the collapsed image and the treeview thinks the node is collapsed, so i have to click twice on the collapseimage, to get the expandimage

why does the treeview thinks the node is collapsed?

Thanks for your help

Veselin Vasilev
Telerik team
 answered on 26 Feb 2009
3 answers
127 views

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> 
 

And an extract of my web.config:
  <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> 


Thanks,
Sam
Genady Sergeev
Telerik team
 answered on 26 Feb 2009
1 answer
142 views
Hi,

I have two RadDatePickers on a form, using a shared Calendar, and all works OK expect I want to clear then down on a button click (server side, because other controls are also being cleared).  It does clear the datepickers OK, but afterwards the shared Calendar does not appear when I click on the calendar button on either date.  Any idea why?

Definition in aspx:
<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> 

Code used on button_click:
dateFrom.Clear()  
dateTo.Clear() 

Before I run this code the datepicker button works.  After running the code the datepicker button does not work.  I have also tried adding: dateFrom.SharedCalendar = RadCalendar1 afterwards and still no Calendar being displayed.

David Penny
Shinu
Top achievements
Rank 2
 answered on 26 Feb 2009
2 answers
205 views

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?

 

 

 

Megan
Top achievements
Rank 1
 answered on 26 Feb 2009
1 answer
60 views
On the initial page display, how come upload control gets rendered last?    I'd get a flicker because the upload control within the DIV then appears and pushes everything else down.

I have
                        ControlObjectsVisibility="RemoveButtons"
                        EnableFileInputSkinning ="true"
Veselin Vasilev
Telerik team
 answered on 26 Feb 2009
1 answer
155 views
Hi,

I am trying to export data from my rad gris to excel in ExcelMl format. If I set ExportOnlyData to true it works but when i set it to false it throws an error. I have tried adding in a title to the exported document via the caption or the command item but even if I do neither the export still fails unless I set exportonlydata to true.
Daniel
Telerik team
 answered on 26 Feb 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?