Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
283 views
I have setup several radgrid webparts and am running into an issue. At first the webparts work fine but after the server restarts on the weekend the webparts cause an error. If I do a repair install of the Telerik webparts, it solves the issue until the next server reboot (or IISReset) What can I do to solve this issue?

Thanks


Error:
System.InvalidOperationException: Telerik.Web.UI.RadWindow with ID='g_78be1aeb_3a1d_4490_9f07_c51834a37899_BindingWindow' was unable to find an embedded skin with the name 'Windows7'. Please, make sure that the skin name is spelled correctly and that you have added a reference to the Telerik.Web.UI.Skins.dll assembly in your project. If you want to use a custom skin, set EnableEmbeddedSkins=false.
at Telerik.Web.SkinRegistrar.GetEmbeddedSkinAttributes(ISkinnableControl control, Type controlType, Boolean designTime)
at Telerik.Web.SkinRegistrar.RegisterCssReferences(ISkinnableControl control)
at Telerik.Web.UI.RadWindow.ControlPreRender()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Maria Ilieva
Telerik team
 answered on 18 Aug 2015
1 answer
207 views

I'm getting a warning on any date before 1980.  There are no validators attached in the HTML, and nothing in the code behind.  Is there anyway around this.

 

<telerik:RadDatePicker ID="dtRetailIndusOfficeRentRollLeaseStartDate" TabIndex="4" runat="server"></telerik:RadDatePicker>

Maria Ilieva
Telerik team
 answered on 18 Aug 2015
13 answers
1.5K+ views
Hi,
How to get list of  id of selected checkbox in radgrid on button click?

Source:
<telerik:RadGrid ID="gv1" runat="server">
            <MasterTableView DataKeyNames="UserId">
                <Columns>
                    <telerik:GridTemplateColumn>
                        <ItemTemplate>
                            <asp:CheckBox ID="CheckBox1" runat="server" />
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>

What will be the code on save button click to get the list of UserID releted to the checked checkbox row?
Thanks
Eyup
Telerik team
 answered on 18 Aug 2015
3 answers
322 views

Hi,

Telerik UI for ASP.NET AJAX 2015.2.623

IE10

Visual Studion 2013

 

 I am new to the PivotGrid and can't seem to figure out this simple thing.  My SQLDataSource returns a list of valves.  2 of the columns are "Valve Size" and "Valve Type".  I have a sinple PivotGrid with a row field of "Valve Size" and a column field of "Valve Type":

    <telerik:RadPivotGrid ID="RadPivotGrid1" runat="server" DataSourceID="sds_ValvesBuiltByDay">
        <Fields>
            <telerik:PivotGridColumnField DataField="Valve Type"></telerik:PivotGridColumnField>
            <telerik:PivotGridRowField DataField="Valve Size"></telerik:PivotGridRowField>
        </Fields>
    </telerik:RadPivotGrid>

When the page loads, there are rows for each size returned and columns for tech type but the individual cells in the grid are empty.

(See attached screenshot.  The RadGrid below the PivotGrid displays the same data from the same SQL data source)

I want each cell to show the count of records for that size and type combination.

This is probably very simple but I have not found a way to do it.

Please tell me what I am doing wrong. 

 

 

Eyup
Telerik team
 answered on 18 Aug 2015
8 answers
174 views
 I am trying to set focus to a textbox within the edit template and when it runs I get the following error:

A first chance exception of type 'System.NullReferenceException' occurred in NgeDataEntry.dll

 {"Object reference not set to an instance of an object."}

 

Not sure what I have wrong here. Can anyone spot the mistake.

 
protected void RadGrid1_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e)
       {
           if (e.Item is GridEditFormItem && e.Item.IsInEditMode)
           {
               UserControl myUserControl = e.Item.FindControl(GridEditFormItem.EditFormUserControlID) as UserControl;
               string script = String.Format("$get('{0}').focus(); $get('{0}').select();", myUserControl.FindControl("RadTextBox2").ClientID);
               ScriptManager.RegisterStartupScript(Page, typeof(Page), "myscript", script, true);
           }
       }
Eyup
Telerik team
 answered on 18 Aug 2015
1 answer
103 views

I have WorkDayStartTime and WorkDayEndTime set to 07:00 and 20:00 respectively but the calendar / scheduler is fixed at 8:00-5:00, no expansion, no scroll bars. Am I missing something?

<telerik:RadScheduler ID="RadScheduler1" runat="server"  DataDescriptionField="Description" DataEndField="End" DataKeyField="ID" DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentID" DataReminderField="Reminder" DataSourceID="SqlDataSource1" DataStartField="Start" DataSubjectField="Subject" Height="900px" SelectedView="WeekView" Width="990px" WorkDayEndTime="20:00:00"  WorkDayStartTime="07:00:00"
    EnableCustomAttributeEditing="True" TimeZoneOffset="-06:00:00"
    StartInsertingInAdvancedForm="false"
    OnClientAppointmentEditing="AppointmentEditing"
    OnClientAppointmentInserting="AppointmentInserting"
    OnAppointmentDataBound="RadScheduler1_AppointmentDataBound"
    OnAppointmentCreated="RadScheduler1_AppointmentCreated"
    OnAppointmentCommand="RadScheduler1_AppointmentCommand" >
    <ExportSettings FileName="CalendarExport" OpenInNewWindow="True">

Ivan Danchev
Telerik team
 answered on 18 Aug 2015
1 answer
123 views
There doesn't appear to be a scheduler header template, is there some way to put controls (buttons) in the header ?
Nencho
Telerik team
 answered on 18 Aug 2015
7 answers
151 views
Hello,

A Question regarding RadFileExplorer and Sharepoint 2010:

I have added a simple RadFileExplorer in an empty Visual Webpart for Sharepoint 2010. On my site there is one normal document library called testlib. I use the custom SPContentProvider class provided in this blog.

protected void Page_Load(object sender, EventArgs e)       
{          
 FileExplorer.Configuration.ContentProviderTypeName =
typeof(SPContentProvider).AssemblyQualifiedName;
 Page.ClientScript.RegisterStartupScript(Page.GetType(),
"AjaxUpdatePanelFix", "_spOriginalFormAction = document.forms[0].action; _spSuppressFormOnSubmitWrapper=true;", true);
 FileExplorer.Style.Add(
"overflow", "hidden");
 SetFileExplorerPaths();
}

I then call this function to add all the libraries to the paths. (It will add 4 libraries total: siteassets, sitepages, shared documents as well as testlib)

 private void SetFileExplorerPaths()
{
  List<String> paths =
new List<String>();
  SPListCollection docLibraries = RetrieveDocumentLibraries(SPContext.Current.Web);           

 foreach
(SPList list in docLibraries)        
  {          
   
if (SPContentProvider.IsNotSystemFolder(list.RootFolder)) {paths.Add(list.RootFolder.ServerRelativeUrl);}          
  }          

 
string[] convertedPaths = paths.ToArray();
 FileExplorer.Configuration.ViewPaths = convertedPaths;
 FileExplorer.Configuration.UploadPaths = FileExplorer.Configuration.ViewPaths;
 FileExplorer.Configuration.DeletePaths = FileExplorer.Configuration.ViewPaths;
}


It will then give me an exception in SPContentProvider GetPermissions
 
private PathPermissions GetPermissions(Guid listId, SPWeb web)

saying the list does not exist. 

If i manually add a "testlib" as a path (removing the "site/") it will load up however all buttons are disabled and I cannot do anything in the Fileexplorer itself (see attached Image)

Any idea what could be going wrong here?




Vessy
Telerik team
 answered on 18 Aug 2015
4 answers
143 views
How to add label to timeslot and assign some text to it ?

Thanks
Raju
Plamen
Telerik team
 answered on 18 Aug 2015
5 answers
413 views
The Grid is placed within an ascx file that is loaded within a Sharepoint webpart.
There are 2 webparts on the page. One is for the navigation and the other one contains the grid.
When you select an item on the navigation webpart, we are redirected to the page using window.location.href.
The first time the page is loaded and you press on the arrow in the radgrid to get to the next page, you get an "invalid postback or callback argument exception". if we click on the numbers itself, we don't get the invalid postback exception.

Also the first time we click a control in the radgrid that does a postback, the first postback is always a full postback, from the second one we have partial postbacks.

[ArgumentException: Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.]System.Web.UI.ClientScriptManager.ValidateEvent(String uniqueId, String argument) +2132728System.Web.UI.Control.ValidateEvent(String uniqueID, String eventArgument) +108System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +32System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746

When you first have a full page postback, you don't get the error. For example when you first sort a column or select a page number.
After that the paging works fine, but the outlining of the columns isn't right anymore.
So my questions are:

- How can I fix the postback or callback argument exception?
- How to make sure the layout isn't broken after using the paging?

Note that we performed the fix for Sharepoint in the init.js related to Ajax submits.

Thanks in advance.

<%@ Register TagPrefix="ajax" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %> 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI, Version=2009.1.402.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" %> 
<ajax:ScriptManagerProxy ID="sm" runat="server"
    <Scripts> 
        <ajax:ScriptReference Path="/_layouts/VMMA.Intranet/js/ProgramSheet.js" /> 
    </Scripts> 
</ajax:ScriptManagerProxy> 
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"  
    DefaultLoadingPanelID="RadAjaxLoadingPanel1"
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="RadGridActualsPlanning"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="pnlActualsPlanning"  
                    LoadingPanelID="RadAjaxLoadingPanel1" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="rgInvoice"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="pnlActualsPlanning"  
                    LoadingPanelID="RadAjaxLoadingPanel1" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings> 
</telerik:RadAjaxManager> 

<asp:Panel ID="pnlActualsPlanning" runat="server" Visible="false"
                <h3> 
                    <asp:Label ID="lblActualsPlanning" runat="server"></asp:Label></h3
                <telerik:RadGrid ID="RadGridActualsPlanning" runat="server" AllowFilteringByColumn="true" 
                    AllowPaging="true" Width="760px" AllowSorting="true" AllowColumnsReorder="True" 
                    PagerStyle-AlwaysVisible="true"
                    <ClientSettings Scrolling-AllowScroll="true" Scrolling-ScrollHeight="100%" Scrolling-UseStaticHeaders="true" 
                        Scrolling-FrozenColumnsCount="2" Resizing-AllowColumnResize="True"
                    </ClientSettings> 
                    <ExportSettings Pdf-PaperSize="A4" Pdf-PageWidth="21cm" Pdf-PageHeight="29cm"
                    </ExportSettings> 
                    <PagerStyle LastPageToolTip="Laatste Pagina" NextPagesToolTip="Volgende Pagina's" 
                        NextPageToolTip="Volgende Pagina" PrevPagesToolTip="Vorige Pagina's" PrevPageToolTip="Vorige Pagina" 
                        PagerTextFormat="{4} &nbsp;Pagina <strong>{0}</strong> van <strong>{1}</strong>, item <strong>{2}</strong> tot <strong>{3}</strong> van de <strong>{5}</strong>." 
                        FirstPageToolTip="Eerste Pagina" /> 
                    <StatusBarSettings LoadingText="Wordt geladen..." ReadyText="Klaar" /> 
                    <MasterTableView AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
                        <Columns> 
                            <telerik:GridBoundColumn DataField="ProductRightsID" SortExpression="ProductRightsID" 
                                HeaderText="BillieID" /> 
                            <telerik:GridBoundColumn DataField="programmatitel" SortExpression="programmatitel" 
                                HeaderText="programmatitel" /> 
                            <telerik:GridBoundColumn DataField="productiejaar" SortExpression="productiejaar" 
                                HeaderText="productiejaar" /> 
                            <telerik:GridBoundColumn DataField="jaargang" SortExpression="jaargang" HeaderText="jaargang" /> 
                            <telerik:GridBoundColumn DataField="episodeTitel" SortExpression="episodeTitel" HeaderText="episodeTitel" /> 
                            <telerik:GridBoundColumn DataField="zender" SortExpression="zender" HeaderText="zender" /> 
                            <telerik:GridBoundColumn DataField="uitzenddag" SortExpression="uitzenddag" HeaderText="uitzenddag" /> 
                            <telerik:GridBoundColumn DataField="uitzenduur" HeaderText="uitzenduur" /> 
                        </Columns> 
                    </MasterTableView> 
                </telerik:RadGrid> 
            </asp:Panel> 




Eyup
Telerik team
 answered on 18 Aug 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?