Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
40 views
We do not have row drag drop enabled (and have explicitly set the flag to false).  However, on iOS Safari, the user can still drag rows out of the grid.

Has this been fixed since Q3 2012?
Angel Petrov
Telerik team
 answered on 02 Sep 2013
3 answers
181 views
Hi,

In RadComboBox if i select or unselect items the text displayed int the box is not changed, it is changing only after some postback event happens. I have a required field validator for combobox, if i clear the complete selection also before saving the old data is displayed in the text box of radcombobox. so,validator is considering that it has value and saving it. please provide a solution
Nencho
Telerik team
 answered on 02 Sep 2013
2 answers
102 views
Hi Guys,

Im busy creating a betting application using C# asp.net.
Pretty much what happens is, at betting sites cashiers will log onto the website and may generate a voucher which is printed and given to customers.

I am using a masterPage, the RadScriptManager and AjaxManager are found on the master page.
My Sales.aspx page which has a RadAjaxPanel which holds a RadMultiPage control that has 2 tabs (scratchcards and vouchers).

My Voucher Tab has a Button (Generate) which will randomly generate a voucher PIN and is supposed to open a rad window after all the code has been executed which it fails to do.

Just as a Test i dropped a button on the page (Outside of the Panel) and was able to successfully open the rad window with that button, but the RadWindow does not open if i try open it from the Generate Button held inside of the MultiPageView Control.

Any Ideas Why?

aspx code for my Panel
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" BorderColor="Gray">
            <telerik:RadTabStrip runat="server" ID="RadTabStrip1" SelectedIndex="0"
                MultiPageID="RadMultiPage1" CssClass="HeaderClass" Skin="Glow" 
                BackColor="#DDDDDD" >
 
                <Tabs>
                    <telerik:RadTab Text="Scratchcards" SelectedIndex="0">
                    </telerik:RadTab>
                    <telerik:RadTab Text="Vouchers" >
                    </telerik:RadTab>
                </Tabs>
            </telerik:RadTabStrip>
 
            <telerik:RadMultiPage runat="server" ID="RadMultiPage1" SelectedIndex="0" Width="400px" CssClass="multiPage" >
                <telerik:RadPageView runat="server" ID="RadPageView1" >
                    <div class="CenterDiv">
                        <table style="width:400px;margin-left:25px;">
                            <tr>
                                <td>
                                    <asp:Label ID="Account" runat="server" ForeColor="#444444" Text="Product"></asp:Label>
                                </td>
                                <td>
                                    <telerik:RadComboBox ID="cboProducts" runat="server" Width="100%"></telerik:RadComboBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="lblSerial" runat="server" ForeColor="#444444" Text="Serial Number"></asp:Label>
                                </td>
                                <td>
                                    <telerik:RadMaskedTextBox ID="tbSerial" runat="server"
                                        AutoCompleteType="Disabled" CssClass="txtBox" DisplayPromptChar=" "
                                        Mask="#########" MaxLength="9" oncopy="return false" oncut="return false"
                                        onpaste="return false" PromptChar=" ">
                                    </telerik:RadMaskedTextBox>
                                </td>
                            </tr>
                        </table>
                        <br />
                        <table style="width:400px;margin-left:25px;">
                            <tr>
                                <td colspan="3">
                                    <asp:Label ID="lblInfo" runat="server" Font-Bold="true" Font-Size="14px" Text=""></asp:Label>
                                    <br />
                                </td>
                            </tr>
                        </table>
 
                        <div class="scratchcardSave">
                            <br />
                            <asp:Button ID="btnCheck" runat="server" onclick="btnCheck_Click"
                                Text="Activate" />
                            <asp:Button ID="btnClear" runat="server" onclick="btnClear_Click"
                                Text="Clear" />
                            <asp:Button ID="btnNewScratchcard" runat="server"
                                onclick="btnNewScratchcard_Click" Text="Sell Another" />
                        </div>
                    </div>
            </telerik:RadPageView>
             
 
            <telerik:RadPageView runat="server" ID="RadPageView2" >
                <div class="CenterDiv">
                    <table style="width:400px;margin-left:25px;">
                        <tr>
                            <td>
                                <asp:Label ID="Label1" runat="server" ForeColor="#444444" Text="Product"></asp:Label>
                            </td>
                            <td>
                                <telerik:RadComboBox ID="cboProductType" runat="server" Width="100%"></telerik:RadComboBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblVoucherAmount" runat="server" ForeColor="#444444" Text="Amount"></asp:Label>
                            </td>
                            <td>
                                <telerik:RadMaskedTextBox ID="tbGeneratePIN" runat="server"
                                    AutoCompleteType="Disabled" CssClass="txtBox" DisplayPromptChar=" "
                                    Mask="#########" MaxLength="9" oncopy="return false" oncut="return false"
                                    onpaste="return false" PromptChar=" ">
                                            </telerik:RadMaskedTextBox>
                            </td>
                        </tr>
                    </table>
                    <br />
                     
                    <table style="width:400px;margin-left:25px;">
                        <tr>
                            <td colspan="3">
                                <asp:Label ID="lblVoucherPIN" runat="server" Font-Bold="True" Font-Size="14px"></asp:Label>
                                <br />
                            </td>
                        </tr>
                    </table>
 
                    <div class="scratchcardSave">
                        <br />
                        <asp:Button ID="btnVoucherGenerate" runat="server" onclick="btnVoucherGenerate_Click" Text="Generate" />
                        <asp:Button ID="btnVoucherClear" runat="server" onclick="btnVoucherClear_Click" Text="Clear" />
                    </div>
                </div>
            </telerik:RadPageView>
        </telerik:RadMultiPage>
 
        </telerik:RadAjaxPanel>



C# code for the Generate Button inside the PageView control

protected void btnVoucherGenerate_Click(object sender, EventArgs e)
        {
            if (tbGeneratePIN.Text == string.Empty)
            {
                lblVoucherPIN.ForeColor = System.Drawing.Color.Red;
                lblVoucherPIN.Text = "Please insert voucher amount";
            }
            else
            {
                iThNkContext.Prepaid pre = new iThNkContext.Prepaid();
 
                String newID = "";
                newID = Guid.NewGuid().ToString().Replace("-", "");
                newID = newID.Substring(newID.Length - 16);
                newID = newID.ToUpper();
 
                // Add PIN to Prepaid DB
                var userInfo = (from c in db.Currencies
                                from a in db.Accounts
                                from s in db.Sites
                                from u in db.Users
                                where c.CurrencyID == a.CurrencyID &&
                                        a.AccountID == u.AccountID &&
                                        s.SiteID == u.SiteID &&
                                        u.UserID == LoggedUserID)
                                select new
                                {
                                    AccountID = a.AccountID,
                                    CurrencyID = c.CurrencyID,
                                    CurrencySymbol = c.CurrencySymbol,
                                    SiteName = s.SiteName,
                                    AccountName = a.AccountName
                                }).FirstOrDefault();
 
                if (userInfo != null)
                {
                    AccountID = userInfo.AccountID;
                    CurrencyID = userInfo.CurrencyID;
                    CurrencySymbol = userInfo.CurrencySymbol;
                }
 
                try
                {
                    pre.CurrencyID = CurrencyID;
                    pre.AccountID = AccountID;
                    pre.Amount = Convert.ToDecimal(tbGeneratePIN.Text);
                    pre.SerialNumber = ("_");
                    pre.Pin = newID;
                    pre.TransactionTypeID = 2;
                    pre.SalesUserID = LoggedUserID);
                    pre.SalesDate = DateTime.Now;
                    pre.IsActivated = true;
                    pre.IsActive = true;
 
                    db.Prepaids.InsertOnSubmit(pre);
                    db.SubmitChanges();
 
                    pre.SerialNumber = Convert.ToString(pre.PrepaidID).PadLeft(9, '0');
                    db.SubmitChanges();
 
                    Amount = pre.Amount;
                    SerialNumber = pre.SerialNumber;
                    PinNumber = pre.Pin;
                    SiteName = userInfo.SiteName;
                    accountID = userInfo.AccountID;
                    AccountName = userInfo.AccountName;
 
                    // update the database and set isPrinted = 1
                    pre.IsPrinted = true;
                    db.SubmitChanges();
                    tbGeneratePIN.Text = string.Empty;
 
                    RadWindow newWindow = new RadWindow();
                    newWindow.NavigateUrl = "Vouchers.aspx";
                    newWindow.Top = Unit.Pixel(22);
                    newWindow.VisibleOnPageLoad = true;
                    newWindow.Left = Unit.Pixel(0);
                    RadWindowManager1.Windows.Add(newWindow);  
                }
                catch (Exception ex)
                {
                    lblVoucherPIN.ForeColor = System.Drawing.Color.Red;
                    lblVoucherPIN.Text = ex.Message;
                }
            }
        }

Code i am using to open the RadWindow on the button outside of the PageView (This code works only if it is not inside of the PageView)

protected void RadButton1_Click(object sender, EventArgs e)
    {
        RadWindow newWindow = new RadWindow();
        newWindow.NavigateUrl = "http://www.google.com";
        newWindow.Top = Unit.Pixel(22);
        newWindow.VisibleOnPageLoad = true;
        newWindow.Left = Unit.Pixel(0);
        RadWindowManager1.Windows.Add(newWindow);
    }


Thanx in advance
newguy
Top achievements
Rank 1
 answered on 02 Sep 2013
4 answers
650 views
I am using Radgrid Template column button click i show the confirmation.
I need to show yes/no buttion. i using following code.


<ConfirmTemplate>
                <div class="rwDialogPopup radconfirm">
                    <div class="rwDialogText">
                        {1}
                    </div>
                    <div>
                        <a onclick="$find('{0}').close(true);" class="rwPopupButton" href="javascript:void(0);">
                            <span class="rwOuterSpan"><span class="rwInnerSpan">##LOC[Yes]##</span></span></a>
                        <a onclick="$find('{0}').close(false);" class="rwPopupButton" href="javascript:void(0);">
                            <span class="rwOuterSpan"><span class="rwInnerSpan">##LOC[No]##</span></span></a>
                    </div>
                </div>
 </ConfirmTemplate>


and javascript i use

function ConfirmReply(sender, args) {

                var callBackFunction = Function.createDelegate(sender, function(shouldSubmit) {
                    if (shouldSubmit) {
                        this.click();
                    }
                });

                var text = "Do you want to close the message?";
                var ss = radconfirm(text, callBackFunction, 300, 160, null, "Issue Bucket");
args.set_cancel(true);
            }

I get error message

 Object doesn't support property or method 'set_cancel'

 Here:args.set_cancel(true);

if i call outside of grid it is working. Only call from grid template column button getting error.
Please any one help me.

Jayesh Goyani
Top achievements
Rank 2
 answered on 02 Sep 2013
4 answers
138 views
Hello Telerik,

We have a RadGrid and a Gantt in a RadPageView.
The issue is when the RadGrid is set Visible="true" Gantt is no longer display. And when the RadGrid is set Visible="false", the Gantt appears this time.

On screen attached "issue1.png", the RadGrid ist set to Visible = true, so no gantt
On "issue2.png", the RadGrid is set to Visible = false, Gantt appears.

For information, this problem didn't exist before and it does not appear with Chrome and Firefox.
On "issue3.png", see the expected result (from Chrome).

Thanks .

D
Top achievements
Rank 1
 answered on 02 Sep 2013
2 answers
84 views
Hi,

I have RadCaptcha inside panel which is ajaxified with RadAjaxLoadingPanel. When page is loaded, captcha image is displayed properly, but when I click on link to generate new captcha image (EnableRefreshImage=True), no image is shown.

If I move captcha outside of panel, everything works Ok, but this brakes page design.

Best regards
Sid
Sebastian
Top achievements
Rank 1
 answered on 02 Sep 2013
1 answer
81 views
I have found that a grid field cannot be sorted by anything other than "EqualTo" method if the data type is Number. This is an issue for me so I am attempting to create a custom filter for this column. The filter control must be a text box only, no button so that it behaves just like the built in filter for a radgrid. I have tried to find some example but have not been able to. Below is the client side code for the column but i am stuck as to what to do next


<telerik:GridBoundColumn DataField="INPUT_BY" UniqueName="INPUT_BY" HeaderText="Input By"
         AllowFiltering="True" AutoPostBackOnFilter="true" ShowFilterIcon="false">
<FilterTemplate>
  <telerik:RadTextBox runat="server" ></telerik:RadTextBox>
 </FilterTemplate>
</telerik:GridBoundColumn>


Again the desired functionality is to replicate the built in filter functionality but it MUST be able to filter using the contains filter method on a Number data type. Any ideas on how to code that up? Thanks in advance
Princy
Top achievements
Rank 2
 answered on 02 Sep 2013
2 answers
112 views
I am using a telerik radScheduler into my major project. and it is working fine on Local system.
But on live it is not working fine.
I can only view my scheduled activity, drag & drop activity, increase or decrease time span only.
But when i try to create or edit an recurrence activity it open the edit mode but nothing work on it.
Even insert and cancel buttons are also not working on edit mode.
I am showing you simple example of my code over here, please have a look.
 Remember that it is working fine on local machine but on live it is not working.

//on aspx page
 
    <div class="clear"></div>
        <telerik:RadScheduler ID="RadScheduler1" runat="server">
            <AppointmentContextMenus>
                <telerik:RadSchedulerContextMenu runat="server" ID="SchedulerAppointmentContextMenu">
                    <Items>
                        <telerik:RadMenuItem Text="Completed / Re-Initiate" ImageUrl="../Images/right-img.png" Value="complete"/>
                        <telerik:RadMenuItem Text="Notified" ImageUrl="../Images/calender_icon.gif"/>
                    </Items>
                </telerik:RadSchedulerContextMenu>
            </AppointmentContextMenus>
            <TimeSlotContextMenus>
                <telerik:RadSchedulerContextMenu runat="server" ID="SchedulerTimeSlotContextMenu">
                    <Items>
                        <telerik:RadMenuItem Text="New Appointment" ImageUrl="../Images/plus.png" Value="CommandAddAppointment"></telerik:RadMenuItem>
                        <telerik:RadMenuItem Text="New Recurring Appointment" ImageUrl="../Images/refresh-icon.gif" Value="CommandAddRecurringAppointment"></telerik:RadMenuItem>
                        <telerik:RadMenuItem IsSeparator="true"></telerik:RadMenuItem>
                        <telerik:RadMenuItem Text="Go to today" Value="CommandGoToToday"></telerik:RadMenuItem>
                    </Items>
                </telerik:RadSchedulerContextMenu>
            </TimeSlotContextMenus>
        </telerik:RadScheduler>

//on aspx.cs page
 
    protected void bindCalendar(DataTable dtSchedule)
    {
        RadScheduler1.DataSource = dtSchedule;
        //RadScheduler1.DataSourceID = "schedule_id";
        RadScheduler1.DataKeyField = "schedule_id";
        RadScheduler1.DataStartField = "schedule_from";
        RadScheduler1.DataEndField = "schedule_to";
        RadScheduler1.DataRecurrenceField = "schedule_record_data";
        RadScheduler1.DataDescriptionField = "schedule_description";
        RadScheduler1.DataRecurrenceParentKeyField = "schedule_record_key";
        RadScheduler1.DataSubjectField = "schedule_title";
        RadScheduler1.DataBind();
    }

--table structure
CREATE TABLE [ref].[scheduler](
    [schedule_id] [int] IDENTITY(1,1) NOT NULL,
    [schedule_title] [nvarchar](max) NULL,
    [schedule_from] [datetime] NULL,
    [schedule_to] [datetime] NULL,
    [schedule_record_key] [int] NULL,
    [schedule_record_data] [nvarchar](max) NULL,
    [schedule_description] [nvarchar](max) NULL,
    [activity_type] [nvarchar](max) NULL,
    [schedule_users] [nvarchar](max) NULL,
    [schedule_group] [nvarchar](max) NULL,
    [schedule_sop] [int] NULL,
    [schedule_days] [nvarchar](max) NULL,
    [schedule_occurence] [nvarchar](max) NULL,
    [schedule_by] [int] NULL,
    [schedule_date] [datetime] NULL,
    [schedule_modify_by] [int] NULL,
    [schedule_modify_date] [datetime] NULL,
    [schedule_is_completed] [bit] NULL,
    [schedule_completed_users] [nvarchar](max) NULL,
    [schedule_completed_group] [nvarchar](max) NULL,
    [schedule_is_delete] [bit] NULL,
    [schedule_form] [int] NULL,
    [schedule_division_fkid] [int] NULL,
    [schedule_company_fkid] [int] NULL,
    [schedule_sop_for] [int] NULL,
 CONSTRAINT [PK_scheduler] PRIMARY KEY CLUSTERED
(
    [schedule_id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

Prashant
Top achievements
Rank 2
 answered on 02 Sep 2013
1 answer
250 views
Hi,
I am experiencing some problem with the filename of some document.

The users print out articles from internet and upload them as they are using the upload button of the attachmentcolumn. The problem comes when in the file name there are chars like < > ' which in our case cause exceptions.
To avoid the problem I would like to filter (strip out those special chars from the filename) before uploading.
To do so I need to get access to the filename of the file before it gets uploaded, manage it and pass it back to the attachmentcolumn control.
How can I achieve that?

Jayesh Goyani
Top achievements
Rank 2
 answered on 02 Sep 2013
1 answer
128 views
Hello Team,


        I have a paid dll of telerik controls so i have to use Rad Search Box in my project but in my dll i dont have searchbox control so how can i update my dll please tell me and how can i use search box control in my project with my current dll

Thanks & Regrads
Sunny
Shinu
Top achievements
Rank 2
 answered on 02 Sep 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?