Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
65 views
I have made a totally custom scheduler control which I have also created a custom recurrence for them. They are saved differently in the database there is two table there is the recurrence rule table and the appointment table. I was wondering is there a way that I can make the scheduler think that an appointment is recurring so that when you click edit it will pop up the recurrence edit prompt window?
Kalina
Telerik team
 answered on 29 Aug 2012
3 answers
310 views

Hi,

the tittle name is that radgrid export csv contains   the character of &nbsp cannot be shown on title. 

I have a radgrid in which I'm binding the data. 
After I export data using export to CSV, In the CSV file,I find blank cells are replaced by  I don't want that.
Could you please help me achieve what I want.

Thanks,

Sandy

Daniel
Telerik team
 answered on 29 Aug 2012
1 answer
97 views
Hi all

I am trying to use telerik RadScheduler & in the implementation i want to display Hours from Rows side to column wise.

I am not sure if this is possible?

I have attached along sample which i am trying to achieve.

Please let me know if any one have any idea.

Thanks
Rohit
Kalina
Telerik team
 answered on 29 Aug 2012
2 answers
71 views
I have an ajax enabled grid with custom CommandItemTemplate buttons.  Three of the buttons are set up to use the built-in export functionality for CSV, Excel and Word exports.  

I have included the javascript functionality to disable ajax for the built-in export buttons and have verified the code is being executed. Exports work as expected, however my problem is after a successful export, any attempt to utilize other grid functionality causes the command bar and pager to disappear.  This behavior appears to be similar to an attempted export without a full postback.

The grid is contained within a RadSplitter.  The grid resides on a default.aspx page within a Site.Master page.

Any suggestions you might have would be greatly appreciated.
Daniel
Telerik team
 answered on 29 Aug 2012
1 answer
80 views

Page is taking almost 15 seconds to save data.
When I Upload the site eventually it takes almost unlimited time to save the data.
By doing enableviewstate="false" at page level, it saves the record very fast but obviously it didn't update the records because of enableviewstate="false".
Then I do enableviewstate="true" in Grid. But it is not working.
Can you help me please ?? Is there a solution like only changed values save in viewstate otherwise it will be enableviewstate="true"
Following is my HTML Code:

<%@ OutputCache Duration="10" VaryByParam="none" %>
<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPages/AdminMaster.master"
    EnableEventValidation="false" AutoEventWireup="false" CodeFile="EmployeeDeductions.aspx.vb"
    Inherits="Admin_EmployeeDeductions" %>
 
<%@ Register Src="~/ECZ_FooterMessage.ascx" TagName="FooterMessage" TagPrefix="Ecz" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <Ecz:FooterMessage ID="msg" runat="server" />
            <table width="378" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td width="30" align="left" valign="top">
                        <img src="../images/top_left.jpg" width="30" height="43" />
                    </td>
                    <td align="left" valign="middle" id="top_bg">
                        <asp:Label ID="lblHeading" runat="server" Text="     Employee Deductions" CssClass="heading"></asp:Label>
                    </td>
                    <td width="30" align="right" valign="top">
                        <img src="../images/top_right.jpg" width="30" height="43" />
                    </td>
                </tr>
                <tr>
                    <td align="left" valign="top">
                          
                    </td>
                    <td align="left" valign="top">
                        <img src="../images/top_shadow.jpg" width="322" height="16" />
                    </td>
                    <td align="right" valign="top">
                          
                    </td>
                </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td align="right">
                        Date:
                    </td>
                    <td>
                        <telerik:RadDatePicker ID="radDate_cr" runat="server">
                        </telerik:RadDatePicker>
                        <asp:Button ID="btnSearch" runat="server" Text="Search" />
                        
                    </td>
                    <td>
                        <asp:Button ID="btnPost" runat="server" Text="Post" />
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td align="center">
                        <br />
                        <br />
                    </td>
                </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td>
                        <telerik:RadGrid ID="grdEmployeeDeductions" AllowSorting="True" runat="server" AllowFilteringByColumn="True"
                            ShowStatusBar="True" GridLines="None" AutoGenerateColumns="False" Visible="false"
                            Width="100%">
                            <MasterTableView DataKeyNames="E_EmployeeContract_ID_PK" ClientDataKeyNames="E_EmployeeContract_ID_PK">
                                <Columns>
                                    <telerik:GridTemplateColumn DataField="E_EmployeeContract_ID_FK" HeaderText="Employee">
                                        <ItemTemplate>
                                            <asp:Label ID="lblE_EmployeeContract_ID_FK" runat="server" Text='<%# Eval("E_EmployeeContract_ID_PK") %>'
                                                Visible="false"></asp:Label>
                                            <asp:Label ID="lblEmployeeName" runat="server" Text='<%# Eval("E_EmployeeName") %>'></asp:Label>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn DataField="Company" HeaderText="Company">
                                        <ItemTemplate>
                                            <asp:Label ID="lblCompanyID" runat="server" Text='<%# Eval("E_Company_ID_FK") %>'
                                                Visible="false"></asp:Label>
                                            <asp:Label ID="lblCompany" runat="server" Text='<%# Eval("CompanyName") %>'></asp:Label>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn DataField="Department" HeaderText="Department" UniqueName="Department">
                                        <ItemTemplate>
                                            <asp:Label ID="lblDepartmentID" runat="server" Text='<%# Eval("E_Department_ID_FK") %>'
                                                Visible="false"></asp:Label>
                                            <asp:Label ID="lblDepartment" runat="server" Text='<%# Eval("DepartmentName") %>'></asp:Label>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn DataField="GOSI" HeaderText="GOSI" UniqueName="GOSI"
                                        FilterControlWidth="50px">
                                        <ItemTemplate>
                                            <asp:TextBox ID="txtGOSI" runat="server" Text='<%# Eval("gosi") %>' Width="50px"></asp:TextBox>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn HeaderText="GOSI Account">
                                        <ItemTemplate>
                                            <telerik:RadComboBox ID="cmbGOSIAccount" runat="server" OnDataBound="CmbAccountDataBound1"
                                                Filter="Contains">
                                            </telerik:RadComboBox>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn DataField="Social" HeaderText="Social" FilterControlWidth="50px">
                                        <ItemTemplate>
                                            <asp:TextBox ID="txtSocial_Deduction" runat="server" Width="50px" Text='<%# Eval("Social_deduction") %>'></asp:TextBox>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn HeaderText="Social Account">
                                        <ItemTemplate>
                                            <telerik:RadComboBox ID="cmbSocialAccount" runat="server" OnDataBound="CmbAccountDataBound1"
                                                Filter="Contains">
                                            </telerik:RadComboBox>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn DataField="Advance" HeaderText="Advance" FilterControlWidth="50px">
                                        <ItemTemplate>
                                            <asp:TextBox ID="txtAdvance" runat="server" Width="50px" Text='<%# Eval("Advance") %>'></asp:TextBox>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn HeaderText="advance account">
                                        <ItemTemplate>
                                            <telerik:RadComboBox ID="RadComboAdv" runat="server" OnDataBound="CmbAccountDataBound1">
                                            </telerik:RadComboBox>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn DataField="Absent" HeaderText="Absent" FilterControlWidth="50px">
                                        <ItemTemplate>
                                            <asp:TextBox ID="txtAbsent" runat="server" Width="50px" Text='<%# Eval("Absent") %>'></asp:TextBox>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn HeaderText="absent account">
                                        <ItemTemplate>
                                            <telerik:RadComboBox ID="RadComboBoxAbsnt" runat="server" OnDataBound="CmbAccountDataBound1">
                                            </telerik:RadComboBox>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                </Columns>
                            </MasterTableView>
                        </telerik:RadGrid>
                    </td>
                </tr>
                <tr>
                    <td>
                        <br>
                    </td>
                </tr>
                <tr>
                    <td align="center">
                     <asp:Button ID="btnSave" runat="server" Text="Save"  Visible="false"/>
                        <%--<asp:Button ID="btnSave" runat="server" Text="Save" Visible="False" OnClientClick="return verify_form('form',0)" />
                        --%>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:UpdateProgress ID="UpdateProgress1" runat="server">
                            <ProgressTemplate>
                                <img src="../images/wait.gif" alt="dd" />
                            </ProgressTemplate>
                        </asp:UpdateProgress>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

Marin
Telerik team
 answered on 29 Aug 2012
0 answers
104 views
I'm currently using web service binding and have an advanced insert/update form. I would like to validate 'client side' if newly added appointment resources conflict with existing appointment resources before proceeding with the insert. I have this working, however NOT for recurring appointments,

The problem I have is that to query appointments in the range to be booked. I am using 

scheduler.get_appointments().getAppointmentsInRange(start, end); 

but this only returns a collection of all currently loaded appointments.
http://www.telerik.com/help/aspnet-ajax/scheduler-object.html. As the appointment being added could run beyond the currently loaded appointments this means that I cannot rely on the above method.

Is there a method for getting a list of appointments from the server without going through the scheduler so that I can query on an unrestricted range? Or is there a suggested technique for doing this? 
William
Top achievements
Rank 1
 asked on 29 Aug 2012
0 answers
90 views
Hi,
I have used RadAsyncUpload control to upload file But now i want  to show the link of of uploaded file at the time of Editing the record. but unable to thing in that direction from where I can get the file name which I have uploaded as Ihave not stored it in the DB.


Thanks 
Santosh
Top achievements
Rank 1
 asked on 29 Aug 2012
3 answers
155 views
I would like the input to originally appear empty, and only show the mask if the user begins entering a value.  If the user removes the value, the mask will again disappear.

Is this functionality possible with this control?
Vasil
Telerik team
 answered on 29 Aug 2012
1 answer
45 views
Hi all i have written a code to set selected row to edit mode when user selects yes from the radwindow. Here is my code

protected void rdbtnYes_Click(object sender, EventArgs e)
    {
        foreach (GridDataItem item in RadGrid2.MasterTableView.Items)
        {
            if (item.IsInEditMode && item is GridEditableItem)
            {
                if (item.OwnerTableView.IsItemInserted)
                {
                    item.Edit = true;
                }
            }
            //item.Edit = true;
        }
        RadGrid2.Rebind();
        rdwmdw1.Windows[0].VisibleOnPageLoad = false;
    }

This is my code for ItemDatabound event where I will show radiwnodw when necessary

protected void RadGrid2_ItemDataBound(object sender, GridItemEventArgs e)
    {
        int iPagecount = RadGrid2.MasterTableView.CurrentPageIndex;
        if (e.Item is GridDataItem)
        {
            if (iPagecount == 0)
            {
                if (e.Item.ItemIndex != 0)
                {
                    GridDataItem item = (GridDataItem)e.Item;
                    ImageButton imageButton = (ImageButton)item["imgEdit"].Controls[0];
                    imageButton.Visible = false;
                    //imageButton.ImageUrl = "images/MailOk.png";
                }
                else
                {
                    GridDataItem item = (GridDataItem)e.Item;
                    ImageButton imageButton = (ImageButton)item["imgEdit"].Controls[0];
                    imageButton.Visible = true;
                }
            }
            else
            {
                GridDataItem item = (GridDataItem)e.Item;
                ImageButton imageButton = (ImageButton)item["imgEdit"].Controls[0];
                imageButton.Visible = false;
 
            }
        }
 
        if (e.Item is GridEditableItem && e.Item.IsInEditMode)
        {
            GridEditableItem item = e.Item as GridEditableItem;
            mlocal_strStoredProcName = StoredProcNames.Gender_uspGenderGetList;
            oEmployeePersonalData.Select(out mlocal_ds, mlocal_strStoredProcName);
            Label lblStatus = (Label)item.FindControl("lblApprovalStatus1");
            if (lblStatus.Text == "Y")
            {
                if (!e.Item.OwnerTableView.IsItemInserted)
                {
                    Label LBL1 = (Label)item.FindControl("lblMaritalStatus");
                    RadComboBox rdcmbGender = (RadComboBox)item.FindControl("rdcbGender");
                    rdcmbGender.DataSource = mlocal_ds;
                    rdcmbGender.DataTextField = TablesAndColumns.tblGender_GenderDesc;
                    rdcmbGender.DataValueField = TablesAndColumns.tblGender_GenderTypeID;
                    rdcmbGender.SelectedValue = (string)DataBinder.Eval(e.Item.DataItem, "MaritalTypeID").ToString();
                    //rdcmbGender.SelectedValue = LBL1.Text;
                    rdcmbGender.DataBind();
 
                    mlocal_strStoredProcName = USADAO.StoredProcNames.PayFrequency_uspPayFrequencySelect;
                    oEmployee.FedTaxID = Session["FedTaxID"].ToString();
                    oEmployee.Select(out mlocal_ds, mlocal_strStoredProcName);
                    RadComboBox ddlPayFrequencytype = (RadComboBox)item.FindControl("rdcbPayFrequency");
                    ddlPayFrequencytype.DataSource = mlocal_ds;
                    ddlPayFrequencytype.DataTextField = "PayFrequencyDesc";
                    ddlPayFrequencytype.DataValueField = "PayFrequencyType";
                    ddlPayFrequencytype.DataBind();
                    ddlPayFrequencytype.Enabled = false;
                    mlocal_ds.Clear();
                    RadDatePicker radDtStartDate = item.FindControl("radDtStartDate") as RadDatePicker;
                    RadDatePicker radDtEndDate = item.FindControl("radDtEndDate") as RadDatePicker;
 
                    strDate = radDtStartDate.SelectedDate.Value;
                    EndDt = radDtEndDate.SelectedDate.Value;
                }
            }
            else
            {
                e.Item.Edit = false;
                rdwmdw1.Windows[0].VisibleOnPageLoad = true;
            }
        }
    }
Eyup
Telerik team
 answered on 29 Aug 2012
2 answers
73 views
We have been working to integrate with our client's Team Foundation Server source control. I am not familiar with this process but they believed that there should be a way to build the projects for deployment on a build machine without having to own a license themselves since they do not do the development. Is this possible?
Vasil
Telerik team
 answered on 29 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?