private void Page_Load(object sender, EventArgs e) { var dc = new takvimDataContext( "Data Source=xxx;"); var sDays = from tkvm in dc.takvims where tkvm.tarih.Year == RadCalendar1.Calendar.GetYear(RadCalendar1.CalendarView.ViewStartDate) select tkvm; foreach (var day in sDays) { var rcd = new RadCalendarDay {Date = day.tarih,TemplateID = "tatil"}; RadCalendar1.SpecialDays.Add(rcd); var cl = RadCalendar1.Calendar; } and my problem is
i cant display specials days numbers in calendar
they are all empty (In template i make red background to specials days to see are they working ?)
when i try to fill them in template
<CalendarDayTemplates> <telerik:DayTemplate ID="tatil" runat="server"> <Content> <div style="background-color:Red"> <%= RadCalendar1.????????????%> </div> </Content> </telerik:DayTemplate> </CalendarDayTemplates><telerik:RadGrid ID="RadGrid1" runat="server" Width="300" AllowPaging="True" Skin="Vista" > <MasterTableView> <PagerStyle AlwaysVisible="true" /> <CommandItemSettings ShowAddNewRecordButton="false" /> <Columns> <telerik:GridBoundColumn DataField="RefTransactionTypeID" HeaderText="Transaction Type ID" SortExpression="RefTransactionTypeID"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Wording" HeaderText="Wording" SortExpression="Wording"> </telerik:GridBoundColumn> </Columns> <NoRecordsTemplate> There are no records to display </NoRecordsTemplate> </MasterTableView> <ClientSettings EnableRowHoverStyle="true"> <DataBinding SelectMethod="GetRefTransactions" SelectCountMethod="GetRefTransactionsCount" Location="Service.asmx" SortParameterType="Linq" FilterParameterType="Linq"> </DataBinding> </ClientSettings> </telerik:RadGrid><%@ WebService Language="C#" CodeBehind="~/App_Code/Service.cs" Class="Service" %>[DataContract]public class MyRefTransactionType{ [DataMember] public byte RefTransactionTypeID { get; set; } [DataMember] public String Wording { get; set; }}[WebService(Namespace = "http://tempuri.org/")][WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)][ScriptService]public class Service : System.Web.Services.WebService{ int number = 1; [WebMethod(EnableSession = true)] public List<MyRefTransactionType> GetRefTransactions(int startRowIndex, int maximumRows, List<GridSortExpression> sortExpression, List<GridFilterExpression> filterExpression) { IQueryable LinqData = DAL.getTransactionTypes(); // LinqToSql access layer GridLinqBindingData data = RadGrid.GetBindingData(LinqData, startRowIndex, maximumRows, "", ""); var result = data.Data.OfType<DAL.RefTransactionType>().Select(t => new MyRefTransactionType() { RefTransactionTypeID = t.TransactionTypeID, Wording = t.Wording }).ToList(); number = result.Count; return result; } [WebMethod(EnableSession = true)] public int GetRefTransactionsCount() { return number; } }return new List<MyRefTransactionType>()", the grid still displays 11 emptys rows.We have master-detail grids very similar to the Telerik demo here.
<telerik:RadGrid ID="MasterGrid" runat="server" AllowAutomaticUpdates="True" AllowFilteringByColumn="True" AllowSorting="True" AutoGenerateColumns="False" DataSourceID="MasterGridDataSource" GroupPanelPosition="Top" ShowGroupPanel="True"> <ClientSettings AllowColumnsReorder="True" EnablePostBackOnRowClick="True"> <Selecting AllowRowSelect="True" EnableDragToSelectRows="False" /> <Scrolling AllowScroll="True" UseStaticHeaders="True" /> <Resizing AllowColumnResize="True" AllowResizeToFit="True" EnableRealTimeResize="True" /> </ClientSettings> <MasterTableView CommandItemDisplay="Top" DataKeyNames="OptionsID" DataSourceID="MasterGridDataSource" EditMode="InPlace" AllowMultiColumnSorting="True" ClientDataKeyNames="OptionsID" Caption="Master Grid"> <Columns> <telerik:GridEditCommandColumn ButtonType="ImageButton" Exportable="False"> <HeaderStyle Width="28px" /> </telerik:GridEditCommandColumn> . . . </Columns> </MasterTableView></telerik:RadGrid>The problem is on master row edit, the master grid SelectedItem is unselected and the child grid is cleared.
Is there any way to keep the selection when entering edit mode?
Hi Team,
I don't want to display the expand/collapse icon if the child grid doesn't contain values.
It should display only the child grid has rows.
Thanks,
Rajesh
Protected Sub Parts_DetailTableDataBind(sender As Object, e As GridDetailTableDataBindEventArgs) Handles Parts.DetailTableDataBind
<telerik:GridTemplateColumn UniqueName="gtcName" HeaderText="Title"> <ItemTemplate> <telerik:RadButton ID="rbOpen" runat="server" ButtonType="ToggleButton" ToggleType="CheckBox" Checked='<%#Bind("isOpen")%>' Height="24" Width="48" ReadOnly="true"> <ToggleStates> <telerik:RadButtonToggleState ImageUrl="iOpen.png" IsBackgroundImage="false" Value="1" Selected="true" /> <telerik:RadButtonToggleState ImageUrl="iClosed.png" IsBackgroundImage="false" Value="0" /> </ToggleStates> </ItemTemplate> <EditItemTemplate> <telerik:RadButton ID="erbOpen" runat="server" ButtonType="ToggleButton" ToggleType="CheckBox" Checked='<%#Bind("isOpen")%>' Height="24" Width="48"> <ToggleStates> <telerik:RadButtonToggleState ImageUrl="iOpen.png" IsBackgroundImage="false" Value="1" Selected="true" /> <telerik:RadButtonToggleState ImageUrl="iClosed.png" IsBackgroundImage="false" Value="0" /> </ToggleStates> </telerik:RadButton> </EditItemTemplate></telerik:GridTemplateColumn><asp:Parameter Name="isOpen" Type="Boolean"/>Hi,
We've implemented a TabStrip with multiple tabs and content residing in PageViews of Multipage control. We would like to print all content from each pageview when a button is clicked. We want each pageview to be printed in a separate page. I tried selected pageview print from this
It worked perfectly for selected views. I modified the code to append innerHMTL as shown below and i am getting 'undefined' as text in print instead of actual content. Is there a way to print multiple pages in one go irrespective of which tab is active?
function printPageView() {
var myPageView = $find('<%= RadMultiPage1.ClientID %>');
var myIframe = document.getElementById('ifrmPrint');
var pvContent = "" // myPageView.get_pageViews().innerHTML;
var multiPage = $find("<%=RadMultiPage1.ClientID %>");
var i;
for (i = 0; i < myPageView.get_pageViews().get_count() ; i++) {
// alert(multiPage.get_pageViews().getPageView(i).get_id());
pvContent += multiPage.get_pageViews().getPageView(i).innerHTML;
}
var myDoc = (myIframe.contentWindow || myIframe.contentDocument);
if (myDoc.document) myDoc = myDoc.document;
myDoc.write("<html><head><title>title</title>");
myDoc.write("</head><body onload='this.focus(); this.print();'>");
myDoc.write(pvContent + "</body></html>");
myDoc.close();
}
I have an inline edit form on a radgrid. I am using the Glow skin and usually the textbox is black and the text is white, however both the text and textbox background colour are being rendered white for the inline edit form. How can I set the skin for the textboxes while in inline edit mode? The inline edit form is not specified I am using the automatic rendering.
Cheers
Caolan
I have some combo box whose values should be shown in gridview as the user clicks on submit button. Each time after filling the form, the data should be shown in grid view after pressing the submit button. How to write logic for this in code behind page.
<telerik:RadAjaxPanel ID="mainpanel" runat="server"> <table border="0" width="100%"> <tr> <td> <telerik:RadTextBox ID="txtName" runat="server" Width="260px" TextMode="SingleLine" MaxLength="65" Style="text-transform: uppercase;"></telerik:RadTextBox> <telerik:RadTextBox ID="txtName" runat="server" Width="260px" TextMode="SingleLine" MaxLength="65" Style="text-transform: uppercase;"></telerik:RadTextBox> <telerik:RadTextBox ID="txtName" runat="server" Width="260px" TextMode="SingleLine" MaxLength="65" Style="text-transform: uppercase;"></telerik:RadTextBox> </td> </tr> <tr> <td> <telerik:RadButton ID="submit" Text="Confirm" runat="server" OnClick="confirm_Click" /> </td> </tr> </table><telerik:RadGrid ID="gridConfirmSelection" runat="server" PageSize="100" AllowSorting="false" Width="100%"AllowPaging="True" ShowGroupPanel="false" AutoGenerateColumns="false" GridLines="None" > <MasterTableView AutoGenerateColumns="false" AllowFilteringByColumn="false" ShowFooter="false" TableLayout="Fixed"> <Columns> <telerik:GridBoundColumn HeaderText="Name"></telerik:GridBoundColumn> <telerik:GridBoundColumn HeaderText="Address"></telerik:GridBoundColumn> <telerik:GridBoundColumn HeaderText="Contact No." ></telerik:GridBoundColumn> </Columns> </MasterTableView></telerik:RadGrid>
