Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
105 views
Hello!

I downloaded the lastest telerik for asp.net (Evaluation version for developer). and used VS 2010 for my project.

My project developed and tested in solution works fine (my computer use IIS5.1)

But it throw javascript error: 'get_postBackElement().id' is null or not an object  Telerik.Web.UI.WebResource.axd when we move to dev server.

What cause the problem? Is there anything which we didn't install on dev server or anything not in config file?

Please help to save my energy.

Thanks in advance.

Amy

I think it may be something wrong on the config file which is not suitable to IIS 7.0

Please help me to figure it out. Thanks! I use telerik.web.ui.dll Version:2011.2.712.40
<?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>
Francisco
Top achievements
Rank 1
 answered on 31 Aug 2011
4 answers
103 views
      <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2011.1.413.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" name="Telerik.Web.UI.WebResource" />

It would be nice to have.
Karl Mikesell
Top achievements
Rank 1
 answered on 31 Aug 2011
2 answers
85 views

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

 

ramireddy
Top achievements
Rank 1
 answered on 31 Aug 2011
1 answer
103 views
I have a TreeList with multiitemedit enabled as below.  Only one column 'Limit' is editable. I have two buttons placed outside the TreeList, one for edit and one for update(This is a user specification that the user doesn't want to go to each row and perform edit/update).  I have two problems here.

1. I have to click the Edit button twice to bring the TreeList  to edit mode
2. In the button click of Update button(btnUpdate_Click), I am not able to get the updated value in the edit box for 'Limit' column .

Thanks in Advance!

<

 

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;

 

 

 

    }

}

 

Gijo
Top achievements
Rank 1
 answered on 31 Aug 2011
6 answers
505 views
Hello,
I have set the empty message property for the RadTextBox but when I set the Textmode to Password the empty message does not display. Is this a bug or is this by design? Does anyone know how I can display and emptymessage within the RadTextBox control while it is using the Password Textmode?
Thank you.
Keith
Top achievements
Rank 1
 answered on 31 Aug 2011
1 answer
59 views
Hello,
    I am using the RAd Combo Box with Check Boxes. Even though the Autopostback is set to true, the postback is not occuring . This is the sample code I am uisng
In Design:

<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.

 

 


Dimitar Terziev
Telerik team
 answered on 31 Aug 2011
2 answers
79 views
Hello,
    I am using 2011 Q2 ASPNET AJAX combo box control. I am trying to display multi select check boxes. For some reason the post back is not firing when I check the check boxes. Design time code I am using is as follows.
<telerik:RadComboBox ID="rlMyGuys" runat="server" DataSourceID="SQLdsMyGuys" AutoPostBack="true" CheckBoxes="true" OnItemChecked="OnItemChecked"
DataValueField="employid" DataTextField="empname"Width="240px">
</telerik:RadComboBox>

I was wondering if Telerik team see any issue with the above content.

Vamsi
Dimitar Terziev
Telerik team
 answered on 31 Aug 2011
1 answer
92 views
Hi ,

I've built a SharePoint webpart that uses a radScheduler in Timeline view. The oddest thing Ive seen happens with the scheduler. In IE 8 it renders great and works like a charm. However in IE 7, when a user clicks the next and previous buttons and then mouses out , the scheduler simply disappears. The next and previous buttons do not make any server calls as I've bound 10 days worth of appointment data when the form initiallys loads. Any help with this would be appreciated.

Here is the aspx code for the control:
<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 />
</div


Here is the code that initialises the control through code:

private 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;
           
     }

And here are the server side events I've hooked into:
   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;
     }


Kalina
Telerik team
 answered on 31 Aug 2011
3 answers
40 views
Hi, i saw the example of AdvanceTemplate RadschedulerTemplate and also some tips about using Radschedulerrecurrence control, but always it is use from a Radscheduler control.

Can be used or fired the radschedulertemplateeditform for example from a radmenunitem without a radscheduler (so big control) present?

Also, can be radschedulerrecurence control extended to use additional fields and functionality?

Thanks.

Plamen
Telerik team
 answered on 31 Aug 2011
2 answers
102 views
Hi,

I'm using single click buttons.  What do I need to do for the client-side validators to fire before the button gets disabled?  The problem I'm having is my button is becoming disabled in the OnClientClicked, but my asp:RequiredFieldValidators are preventing the form from being submitted.  I only want the single click feature to kick in if all the client-side validation passes.

Thanks,
Mike
Slav
Telerik team
 answered on 31 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?