Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
83 views
Good day.Is there a way that i can change the current Delete Appointment Button ( shown as X ) in the radscheduler into a html / asp.net button?
Our clients sometimes click this x button accidentally, so we would like to show a button which is more presentable.

Hoping for your reply.
Thank you very much.

Yours faithfully,
Rommel Sudan
Boyan Dimitrov
Telerik team
 answered on 05 Dec 2014
1 answer
67 views
Hello Telerik, 

this is probably just a little something I forgot to put in my code but I can't seem to find it.

Basically I have this RadGrid and when I sort any column there's a postback but after that, the RadGrid is empty.

1) Allow sorting is set at true for the RadGrid AND for the Columns
2) The sorting expressions are the same as the DataField and Unique ID. (and for the Template column the sorting expression is the same value as I put in the link button or other controls with DataBinder.Eval(Container.DataItem, ''theSortingExpression'')

Right now, the data binding occurs only if its not a postback.
If I don't put the data binding in the postback, it just says invalid postback argument (because the Unique ID will not be the same anymore, which is normal)

How am I supposed to use the sorting properly with DataBinding in the code behind

Thanks !
Mark
Top achievements
Rank 1
 answered on 05 Dec 2014
1 answer
89 views
Hi Telerik Team,

Do you have any examples you can provide where a "Radlive" Tile is used in a visual webpart for SharePoint 2010.

I tried the using the demo examples that were provided in the links below but that does not work for me . The radlive tile does not get populated.

http://demos.telerik.com/aspnet-ajax/tilelist/examples/livetiles/defaultcs.aspx
http://www.telerik.com/help/aspnet-ajax/tilelist-tiles-livetile-loading-data.html
http://blogs.msmvps.com/windsor/2011/11/04/walkthrough-creating-a-custom-asp-net-asmx-web-service-in-sharepoint-2010/

I have tried both page methods and webservices. Neither has worked for me. Any help at this point would be greatly appreciated.



Here is the markup and server side code:

 

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="TileMe.aspx.vb" Inherits="Starter.TileMe" %>

 

<!DOCTYPE html>

 

<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">

   
<title></title>

   
<link href="styles.css" rel="stylesheet" type="text/css" />

 

   
<script type="text/javascript">

 

       
//The dataLoadingError client side event
occurs after the data request returns an error.

 

       
function
tileDataLoadingError(sender, args) {

 

           
var data =
args.set_cancelErrorAlert(true);

 

       
}

 

       
//The dataLoaded client side event occurs
after the data request returns the data successfully.

 

       
function
tileDataLoaded(sender, args) {

 

           
var data =
args.get_data();

           
//format the received date property

 

       
}

 

       
//The templateDataBound client-side event
occurs after the client template is data bound.

 

       
function
tileClientTemplateDataBound(sender, args) {

 

       
}

 

   
</script>

</head>

<body>

   
<form id="form1" runat="server">

   
<div>

       
<telerik:RadScriptManager ID="rsmTileMe" runat="server" EnablePageMethods="true" />

 

       
<telerik:RadLiveTile ID="rltTileMe" runat="server" UpdateInterval="6000" Value="TILEME" Shape="Wide" />

   
</div>

   
</form>

</body>

</html>

 

Imports Telerik.Web.UI

Imports System.Runtime.Serialization

'Imports
System.ServiceModel

 

Public Class TileMe

   
Inherits
System.Web.UI.Page

 

   
<DataContract> _

   
Public Class TileMeSilly

       
<DataMember>
_

       
Public ReadOnly Property CurrentDateTime As String

           
Get

               
Return
Now.ToString

           
End Get

       
End Property

 

       
<DataMember>
_

       
Public ReadOnly Property TomorrowDateTime As String

           
Get

               
Return
Now.AddDays(1).ToString

           
End Get

       
End Property

   
End Class

 

   
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

       
InitTileMe(rltTileMe)

   
End Sub

 

   
Protected Sub InitTileMe(ByVal tile As RadLiveTile)

       
tile.Target = "_blank"

       
tile.ClientTemplate = "<div
class=""tileClientTemplate"">" & _

               
"<div><strong>Current:</strong>
#= CurrentDateTime #</div>" & _

               
"<div><strong>Tomorrow:</strong>
#= TomorrowDateTime #</div>" & _

              
"</div>"

 

       
tile.WebServiceSettings.Path = "TileMe.aspx"

       
tile.WebServiceSettings.Method = "TileMeMeth"

 

       
tile.OnClientDataLoaded = "tileDataLoaded"

       
tile.OnClientDataLoadingError = "tileDataLoadingError"

       
tile.OnClientTemplateDataBound = "tileClientTemplateDataBound"

   
End Sub

 

   
<System.Web.Services.WebMethod()> _

   
Public Shared Function TileMeMeth() As TileMeSilly

       
Return New TileMeSilly

   
End Function

End Class

Marin Bratanov
Telerik team
 answered on 05 Dec 2014
1 answer
138 views
Hi,

          Please tell me how to customize the RadGrid Filter i.e., I just want to Change the Filter names
          such as NoFilter to No Filter just i need a space between two words.

          Waiting for your reply.




Thanks in Advance.
        
Pavlina
Telerik team
 answered on 05 Dec 2014
1 answer
128 views
Hello,

Yesterday I upgraded from RadControls for .NET Q1 2010 to the UI for ASP.NET AJAX Q3 2014.  I have three solutions which utilize the RadGrid extensively.  In my development environment (VS 2010) all of my projects work great.  However, when they are deployed to a Windows 2003 IIS 6 server, I am receiving the following errors when I try to sort any RadGrid in my project:

System.InvalidCastException: Unable to cast object of type 'Telerik.Web.UI.RadGrid' to type 'Telerik.Web.UI.GridTableView'. at Telerik.Web.UI.RadGrid.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Other basic functions appear to be working properly including rendering of the grid as well as pagination.

Two of the solutions share an application pool on my web server so I though perhaps that might be an issue (even though I know they have their own memory spaces) so I set up a brand new Windows Server 2003 machine patched fully as of this morning.  I am still having the error there.

I have verified that I am sending out the correct version of the DLL and verified that my web.config file has the correct entries per the online demos folder installed on my development machine.

Can you please suggest a solution?

Thank you!

Viktor Tachev
Telerik team
 answered on 05 Dec 2014
5 answers
810 views
I am new to Telerik and am struggling with grasping how the styling works with regard to my project.  

I have a project using master pages, themes and skins for the various controls (including RadButton).  I tried the example on 'Creating a Custom Skin for RadButton' and still found that not all my changes had overridden the Default styles - as I checked it with Firfox's  Firebug tool and kept seeing WebResource.axd at the top.  How does the WebResource.axd file manage to override some of the styles if I am already got my own custom skin file?  Any help would be appreciated.  

Thanks

Alexander
Danail Vasilev
Telerik team
 answered on 05 Dec 2014
1 answer
98 views
string returnmessage = (new WEAU020()).UpdateDetail();
 
        if (returnmessage.Length > 0)
        {
            RadWindowManager1.RadAlert(returnmessage, 330, 180, "Message", "alertCallBackFn");
        }
 
 
 
 
 
 
 
 
 
 
public string UpdateDetail()
        {
                    return ex.Message;
            }



it work is normarlly. user do check a message in screen

but grid is fired postback, insert data(not updated data) is loss because rebind.

display a message in BatchEditCommand without rebind?

Angel Petrov
Telerik team
 answered on 05 Dec 2014
14 answers
295 views
Hi all,

im having a very big problem, when i have my IE browsers in compatible mode the grids all, crush in height.
What it can be, nedd urgent help.

Best regards.
Viktor Tachev
Telerik team
 answered on 05 Dec 2014
7 answers
686 views
I have the following code (to find) the raddatepicker control within the radgrid, so that I can attach a onblur event to it. I am getting object reference exception within the c# code. Can someone please tell me what am I doing wrong ? these statements always return null -   RadDatePicker StartDate = (RadDatePicker)e.Item.FindControl("radBillPeriodStartDate1");  
     <telerik:RadGrid ID="gridInvLines" AllowPaging="False" Skin="Office2007"   
        runat="server" AutoGenerateColumns="False" DataSourceID="odsInvLines"   
        GridLines="None"  OnItemCommand="gridInvLines_ItemCommand" OnItemDataBound="gridInvLines_ItemDataBound" ShowFooter="True">  
        <ClientSettings > 
         <ClientEvents OnKeyPress="disableEnterKey" OnPopUpShowing="PopUpShowing" /> 
        </ClientSettings> 
        <MasterTableView DataKeyNames="LINE_NUMBER" DataSourceID="odsInvLines" EditMode="PopUp" InsertItemDisplay="Top"  AllowAutomaticInserts="true" AllowAutomaticUpdates="true" AllowAutomaticDeletes="true"  CommandItemDisplay="Top" CommandItemSettings-AddNewRecordText="Add New Line">  
            <Columns> 
                
                        <telerik:GridTemplateColumn HeaderText="Billing Period Start Date" UniqueName="BEGIN_BILLING_PERIOD_COLUMN" 
                    EditFormColumnIndex="1">  
                    <HeaderStyle Width="62px" HorizontalAlign="Center"  /> 
                    <ItemTemplate> 
                        <asp:Label runat="server" ID="lblBillingPeriodStartDate" Text='<%# Eval("BEGIN_BILLING_PERIOD", "{0:D}") %>'></asp:Label> 
                    </ItemTemplate> 
                    <EditItemTemplate> 
                        <telerik:RadDatePicker  ID="radBillPeriodStartDate1" Skin="Office2007" Style="vertical-align: middle;" 
                            runat="server"   
                            DbSelectedDate='<%# Bind("BEGIN_BILLING_PERIOD", "{0:d}") %>' 
                            MinDate='<%# DateTime.Now.AddMonths(Convert.ToInt32(ConfigurationManager.AppSettings["BillingMin"].ToString()))%>' 
                            MaxDate='<%# DateTime.Now.AddMonths(Convert.ToInt32(ConfigurationManager.AppSettings["BillingMax"].ToString()))%>' 
                                
                            > 
                            <Calendar ShowRowHeaders="false">  
                                <OutOfRangeDayStyle Font-Strikeout="true" ForeColor="red" /> 
                            </Calendar> 
                            <DateInput ID="DateInput1" runat="server" InvalidStyle-BorderColor="red" InvalidStyle-ForeColor="red" EmptyMessageStyle-BorderColor="red" EmptyMessage="  ">  
                                <ClientEvents OnKeyPress="disableEnterKey"    /> 
                            </DateInput> 
                        </telerik:RadDatePicker> 
                        <asp:RequiredFieldValidator ID="rfvBillPeriodstartDate" runat="server" ControlToValidate="radBillPeriodStartDate1" 
                            ErrorMessage="Billing Period Start Date must be within the range of 18 months in the past or 2 months in the future">*</asp:RequiredFieldValidator> 
                    </EditItemTemplate> 
                </telerik:GridTemplateColumn> 
                  
                <telerik:GridTemplateColumn HeaderText="Billing Period End Date" UniqueName="END_BILLING_PERIOD_COLUMN" 
                    EditFormColumnIndex="1">  
                    <HeaderStyle Width="62px" HorizontalAlign="Center"  /> 
                    <ItemTemplate> 
                        <asp:Label runat="server" ID="lblBillingPeriodEndDate" Text='<%# Eval("END_BILLING_PERIOD", "{0:D}") %>'></asp:Label> 
                    </ItemTemplate> 
                    <EditItemTemplate> 
                        <asp:TextBox ID="txtDate1" runat="server"></asp:TextBox> 
                        <telerik:RadDatePicker ID="radBillPeriodEndDate1"  Skin="Office2007" Style="vertical-align: middle;" 
                            runat="server" DbSelectedDate='<%# Bind("END_BILLING_PERIOD", "{0:d}") %>' 
                            MinDate='<%# DateTime.Now.AddMonths(Convert.ToInt32(ConfigurationManager.AppSettings["BillingMin"].ToString()))%>' 
                            MaxDate='<%# DateTime.Now.AddMonths(Convert.ToInt32(ConfigurationManager.AppSettings["BillingMax"].ToString()))%>' 
                            > 
                            <Calendar ShowRowHeaders="false">  
                                <OutOfRangeDayStyle Font-Strikeout="true" ForeColor="red" /> 
                            </Calendar> 
                            <DateInput ID="DateInput2" runat="server" InvalidStyle-BorderColor="red" InvalidStyle-ForeColor="red" EmptyMessageStyle-BorderColor="red" EmptyMessage="  ">  
                                <ClientEvents OnKeyPress="disableEnterKey" /> 
                            </DateInput> 
                        </telerik:RadDatePicker> 
                        <asp:RequiredFieldValidator ID="rfvBillPeriodEndDate" runat="server" ControlToValidate="radBillPeriodEndDate1" 
                            ErrorMessage="Billing Period End Date must be within the range of 18 months in the past or 2 months in the future">*</asp:RequiredFieldValidator> 
                        <asp:CompareValidator ID="cvEndDate" runat="server" ControlToValidate="radBillPeriodEndDate1" 
                            ControlToCompare="radBillPeriodStartDate1" Display="None" Operator="GreaterThanEqual" 
                            Type="Date" ErrorMessage="Billing Periond End Date must be great than or equal to Billing Period Start Date">*</asp:CompareValidator> 
                    </EditItemTemplate> 
                </telerik:GridTemplateColumn> 
                
                       </Columns> 
        
       <PopUpSettings  Modal="true" Width="600"  /> 
       </EditFormSettings> 
        </MasterTableView> 
        <ValidationSettings CommandsToValidate="PerformInsert,Update"  /> 
                    
    </telerik:RadGrid> 
 
    protected void gridInvLines_ItemDataBound(object sender, GridItemEventArgs e)  
    {  
          
 
            if (e.Item is GridDataItem)  
            {  
             
 
 
        //both these controls return null  
         RadDatePicker StartDate = (RadDatePicker)e.Item.FindControl("radBillPeriodStartDate1");  
                RadDatePicker EndDate   = (RadDatePicker)e.Item.FindControl("radBillPeriodEndDate1");  
 
                  StartDate.DateInput.Attributes.Add("onblur"string.Format("changeEndDate('{0}','{1}');", StartDate.ClientID, EndDate.ClientID));  
                   
            }  
    }  
 
 
Eyup
Telerik team
 answered on 05 Dec 2014
3 answers
58 views
Hi,

I've been trying to create a webpart that inherits from TelerikSPRadGridWebPart.  I created an Empty SharePoint 2010 project in Visual Studio and reference Telerik.Ajax.SharePoint from the GAC : C:\Windows\assembly\GAC_MSIL\Telerik.Ajax.SharePoint\2014.3.1024.35__aa9e5f693af67c7b\Telerik.Ajax.SharePoint.dll

I also referenced Telerik.Web.UI (C:\Windows\assembly\GAC_MSIL\Telerik.Web.UI\2014.3.1024.35__121fae78165ba3d4\Telerik.Web.UI.dll)

When trying to build the project, I get this error and this warning :

Error 3 The base class or interface 'Microsoft.SharePoint.WebPartPages.WebPart' in assembly 'Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' referenced by type 'Telerik.Ajax.SharePoint.TelerikWebPart' could not be resolved c:\Windows\assembly\GAC_MSIL\Telerik.Ajax.SharePoint\2014.3.1024.35__aa9e5f693af67c7b\Telerik.Ajax.SharePoint.dll CrossSiteCollectionListViewer

Warning 4 Reference to type 'Microsoft.SharePoint.WebPartPages.WebPart' claims it is defined in 'c:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\SharePointTools\ReferenceAssemblies\Microsoft.SharePoint.dll', but it could not be found c:\Windows\assembly\GAC_MSIL\Telerik.Ajax.SharePoint\2014.3.1024.35__aa9e5f693af67c7b\Telerik.Ajax.SharePoint.dll CrossSiteCollectionListViewer

It seems like a version problem between the Microsoft assembly and the Telerik assembly but I am really not sure.  I installed SharePoint (ASP.NET AJAX) with the Telerik Control Panel but I can't find the dll somewhere else than in the GAC.

Maybe someone can help me out here.

Regards,

Martin L. 
Maria Ilieva
Telerik team
 answered on 05 Dec 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?