Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
222 views

Hi,

I am using RadCaptcha in sharepoint 2013.

I used the following code in the ascx WP:

<div class="divCaptcha">         
    <telerik:RadCaptcha ID="RadCaptcha1" runat="server" ValidatedTextBoxID="rcTextBox1" EnableRefreshImage="true"  >
        <CaptchaImage EnableCaptchaAudio="true" RenderImageOnly="true"  BackgroundNoise="Low"></CaptchaImage>
    </telerik:RadCaptcha>

    <div style="float:left">
    <p >Type the code from the image:</p>           
    <asp:TextBox ID="rcTextBox1" runat="server" MaxLength="5" Width="170px"></asp:TextBox>&nbsp;&nbsp;&nbsp;
    <input type="button" title="submit" onclick="CallHandler();" value="submit">
            </div>  
</div>

 
And I define the following in the web.config of the
sharepoint:

   <httpHandlers>
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2015.1.401.45, Culture=neutral, PublicKeyToken=121fae78165ba3d4" verb="*" validate="false" />
</httpHandlers>

 <handlers>
<remove name="Telerik_Web_UI_WebResource_axd"/>
<add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2015.1.401.45, Culture=neutral, PublicKeyToken=121fae78165ba3d4" verb="*" preCondition="integratedMode" />
</handlers>

 

I click the link to generate new image – nothing happen.

Can you help me?

Slav
Telerik team
 answered on 11 Jun 2015
0 answers
90 views

Hello,

I have been getting Unresponsive Script Error in browser (most often in FF) while executing any request to server. We have used "telerik:RadScriptManager" and "RadAjaxLoadingPanel" in all webpages. Below error occurs randomly and it hangs up the browser.

Error message : "a script on this page may be busy or stopped responding...."

Please find attached screen shot for the same error. It suggests that error is coming from "Telerik.Web.UI.WebResource.axd?_TSM_HiddenFeild_=RadScriptManager1&..."

 

I have been facing this issue recently (without any code change), Please help.

 

Thanks in advance,

Jalak

Jalak
Top achievements
Rank 1
 asked on 11 Jun 2015
2 answers
119 views
Hi,

Is it possible to handle any event if I lose internet connection during uploading of large file?
Uploading freezes if I lost internet connection even for few seconds and doesn't try to reconnect.
OnClientFileUploadFailed event isn't fired in this case.
It would be nice to continue uploading if I repair my internet connection, or at least to show some error.

Best regards,
Dennis
Sangamesh
Top achievements
Rank 1
 answered on 11 Jun 2015
1 answer
76 views

Hi 

I have two datapicker controls datapicker1 & datepicker2.

once I set the date for datepicker1 i have to assign the same date to datepicker2. but here i can not fill the input text. it should show as empty. i have to give user to fill  the date but the datepicker2 calendar should be open as the first datepicker1 date stamp.

example. datepickert1 date : 05-Jun-2010   then

when i click the daterpicker2 calendar icon i should able to open the 05-Jun-2010 and in the input box should be empty until user choose the date from the datepicker2 calender.

how can i achieve this. please respond asap its quiet urgent.

Thx

Eyup
Telerik team
 answered on 11 Jun 2015
1 answer
175 views

I'd like to display the first 30 or so characters of an nvarchar(max) field in my radgrid along with a "Read More ..." type link to display the rest of the datafield.

I'd like the link to either expand the rest of the column to a max width of a few hundred pixels or use javascript to put the data into a window of some sort.

Has anyone done with this before?  If so, please point me the right direction.  Thanks much.

Pavlina
Telerik team
 answered on 11 Jun 2015
2 answers
145 views

<telerik:RadTreeView ID="rtvCarnac" runat="server" Skin="Glow" BackColor="Black" Visible="true"
ForeColor="White" OnNodeDataBound="rtvCarnac_NodeDataBound"  OnNodeClick="rtvCarnac_NodeClick" OnClientDoubleClick="SelectNode" >
</telerik:RadTreeView>

 

 

If I click on node it will firing node click event. If I double click on node it will firing node click event. double click event is not firing. How can i slove this issue???????

Kapavarapu
Top achievements
Rank 1
 answered on 11 Jun 2015
3 answers
130 views

Hello,

I have a radgrid on a page with a custom control as an edit form.

Within the custom control, there is a button which among other things it also adds a record to another radgrid on the same page (not the parent of the custom control). The button closes the custom control with <editedItem.OwnerTableView.ClearEditItems()>.

On which event I must include the rebind command of that second radgrid?

Is there an event which fires when an editform is closed?

 Thanks for your time...

 

 

Eyup
Telerik team
 answered on 11 Jun 2015
13 answers
687 views
Hi,

How to collapse all rows and columns for the initial load?

TIA.
Javier
Top achievements
Rank 1
 answered on 10 Jun 2015
1 answer
392 views

As I'm sure that you will understand, I have spent hours attempting various methods of self-solving this issue, but haven't been able to get it resolved, and am hoping that someone can give me a hand with this.  

My edit form contains only one field that excepts data from the user.  Once that value has been entered, or edited, on TextChanged the other textboxes should be populated with values resulting from calculations.  Four grid values are used in the calculations.

 I need to access each of the four provided values, perform the calculations, and load the results in the text boxes in the edit form, allowing the user to save the changes to refresh the grid.

 THIS DID NOT WORK: ClientEvents-OnBlur="calculateNetCash"

function onBlur(sender, args) {

    var textBox1;
    var textBox2;
    var textBoxTotal = $telerik.findControl(sender.get_parent().get_element(), "RadNumericTextBox3");
    var total;
 
    // get reference to the other RadNumericTextBox controls here
     
 
    // calculate the total
     
    // set the value for the last RadNumericTextBox
    textBoxTotal.set_value(total);

}

WHAT'S WORKING.  I can obtain the value of txtCashIn using  onChange = calculateNetCash(this)  and the values necessary for performing the calculation, using:

 Protected Sub OnItemDataBoundHandler(ByVal sender As Object, ByVal e As GridItemEventArgs)
        If e.Item.IsInEditMode AndAlso TypeOf e.Item Is GridEditFormItem Then
            Dim editForm As GridEditFormItem = DirectCast(e.Item, GridEditFormItem)
            Dim commissionRate As TextBox = DirectCast(editForm.FindControl("txtCommissionRate"), TextBox)
            Dim a As String
            a = commissionRate.Text
        End If

 End Sub

  These are my best test scenarios.  I figured that I could use hidden fields and then JavaScript to access the values for calculations.  But have not found any method, after hours of searching and testing, to reference the text boxes in the edit form template to store the values.

 

MY CODE

<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="sdsGetDailyPayroll" Width="315px"
                    AutoGenerateColumns="False"
                    Skin="Bootstrap"
                    CssClass="RadGrid"
                    PageSize="5"
                    GridLines="None"
                    AllowPaging="True"
                    AllowSorting="True"
                    AllowAutomaticUpdates="True"
                    AllowAutomaticInserts="True"
                    AllowAutomaticDeletes="True"
                    ShowStatusBar="true"
                    OnItemDataBound="OnItemDataBoundHandler"
                    OnPreRender="RadGrid1_PreRender">

                    <MasterTableView
                        ShowFooter="false"
                        DataSourceID="sdsGetDailyPayroll"
                        DataKeyNames="EmpID"
                        CommandItemDisplay="Bottom"
                        GridLines="None"
                        AllowFilteringByColumn="False"
                        AllowSorting="True">

                        <PagerStyle PageSizes="3,4,5,6,7,8,9,10,25,50,100"
                            PageButtonCount="3"
                            PagerTextFormat=""
                            Width="315px"
                            Wrap="False" />

                        <Columns>
                            <telerik:GridBoundColumn UniqueName="PayrollDate" HeaderText="Date" DataField="PayrollDate"
                                DataFormatString="{0:d}">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn UniqueName="CashReceived" HeaderText="Cash In" DataField="CashReceived">
                            </telerik:GridBoundColumn>

                            <telerik:GridBoundColumn UniqueName="DailyPayroll" HeaderText="Daily Payroll" DataField="DailyPayroll">
                            </telerik:GridBoundColumn>

                            <telerik:GridBoundColumn UniqueName="PooledWages" HeaderText="Pooled?" DataField="PooledWages" Visible="false">
                                <HeaderStyle Width="25px"></HeaderStyle>
                            </telerik:GridBoundColumn>

                            <telerik:GridBoundColumn UniqueName="RentDeduction" HeaderText="Rent" DataField="RentDeduction" Visible="false">
                            </telerik:GridBoundColumn>

                            <telerik:GridBoundColumn UniqueName="ExpenseDeduction" HeaderText="Expense" DataField="ExpenseDeduction" Visible="false">
                            </telerik:GridBoundColumn>

                            <telerik:GridBoundColumn UniqueName="NetReceived" HeaderText="Net Cash In" DataField="NetReceived" Visible="false">
                            </telerik:GridBoundColumn>

                            <telerik:GridBoundColumn UniqueName="Commission" HeaderText="Commission" DataField="Commission" Visible="false">
                            </telerik:GridBoundColumn>

                            <telerik:GridBoundColumn UniqueName="DiscountCredit" HeaderText="Discounts" DataField="DiscountCredit" Visible="false">
                            </telerik:GridBoundColumn>

                            <telerik:GridBoundColumn UniqueName="CommissionRate" HeaderText="Commission Rate" DataField="CommissionRate" Visible="false">
                            </telerik:GridBoundColumn>

                            <telerik:GridBoundColumn UniqueName="ExpenseRate" HeaderText="ExpenseRate" DataField="ExpenseRate" Visible="false">
                            </telerik:GridBoundColumn>

                        </Columns>
                        <EditFormSettings EditFormType="Template">
                            <FormTemplate>
                                <div style="width: 280px; margin-right: 10px; margin-left: 10px; background-color: #f2f2f2; border: 2pt solid #D2D2D2; border-radius: 5px; padding: 5px">

                                    <table id="Table1" cellspacing="2" cellpadding="1" width="100%" border="0"
                                        rules="none" style="border-collapse: collapse;">

                                        <tr>
                                            <td>Payroll Date:</td>
                                            <td>
                                                <telerik:RadDatePicker ID="RadDatePicker1" runat="server" TabIndex="1"
                                                    Skin="Bootstrap"
                                                    MinDate="1/1/1900"
                                                    DbSelectedDate='<%# Bind("PayrollDate")%>'
                                                    Width="125px">
                                                </telerik:RadDatePicker>
                                            </td>
                                        </tr>

                                        <tr>
                                            <td>Cash In:</td>
                                            <td>
                                                <asp:TextBox ID="txtCashIn" runat="server" TabIndex="2"
                                                    Text='<%# Bind("CashReceived")%>'
                                                    Width="75px"
                                                    OnChange="calculateNetCashIn(this)">
                                                </asp:TextBox>
                                            </td>
                                        </tr>

                                        <tr>
                                            <td>Less Rent:</td>
                                            <td>
                                                <asp:TextBox ID="txtRentDeduction" runat="server" TabIndex="3"
                                                    Text='<%# Bind("RentDeduction")%>'
                                                    Width="75px">
                                                </asp:TextBox>
                                            </td>
                                        </tr>

                                        <tr>
                                            <td>Less Expenses:</td>
                                            <td>
                                                <asp:TextBox ID="txtExpenseDeduction" runat="server" TabIndex="4"
                                                    Text='<%# Bind("ExpenseDeduction")%>'
                                                    Width="75px">
                                                </asp:TextBox>
                                            </td>
                                        </tr>

                                        <tr>
                                            <td>NET CASH IN:</td>
                                            <td>
                                                <asp:TextBox ID="txtNetCashIn" runat="server" TabIndex="5"
                                                    Text='<%# Bind("NetReceived")%>'
                                                    Width="75px">
                                                </asp:TextBox></td>
                                            </td>
                                        </tr>

                                        <tr>
                                            <td>Pooled Wages?</td>
                                            <td>
                                                <asp:CheckBox ID="CheckBox1" runat="server" TabIndex="6"
                                                    Checked='<%# Bind("PooledWages")%>'
                                                    Width="75px" />
                                            </td>
                                            <td>&nbsp;</td>
                                        </tr>

                                        <tr>
                                            <td>Commission</td>
                                            <td>
                                                <asp:TextBox ID="TextBox3" runat="server" TabIndex="7"
                                                    Text='<%# Bind( "Commission") %>'
                                                    Width="75px">
                                                </asp:TextBox>
                                            </td>
                                        </tr>

                                        <tr>
                                            <td>Discount Credit:</td>
                                            <td>
                                                <asp:TextBox ID="TextBox7" runat="server" TabIndex="8"
                                                    Text='<%# Bind( "DiscountCredit") %>'
                                                    Width="75px">
                                                </asp:TextBox>
                                            </td>
                                        </tr>

                                        <tr>
                                            <td>TOTAL PAYROLL:</td>
                                            <td>
                                                <asp:TextBox ID="TextBox10" runat="server" TabIndex="9"
                                                    Text='<%# Bind( "DailyPayroll") %>'
                                                    Width="75px">
                                                </asp:TextBox></td>
                                        </tr>

                                        <tr>
                                            <td>Commission Rate:</td>
                                            <td>
                                                <asp:TextBox ID="txtCommissionRate" runat="server" TabIndex="11"
                                                    Text='<%# Bind("CommissionRate")%>'
                                                    Width="75px">
                                                </asp:TextBox></td>
                                        </tr>
                                        <tr>
                                            <td>Expense Rate:</td>
                                            <td>
                                                <asp:TextBox ID="txtExpenseRate" runat="server" TabIndex="12"
                                                    Text='<%# Bind( "ExpenseRate") %>'
                                                    Width="75px">
                                                </asp:TextBox></td>
                                        </tr>
                                    </table>

                                </div>
                            </FormTemplate>
                        </EditFormSettings>

                    </MasterTableView>
                    <ClientSettings>
                        <Selecting AllowRowSelect="True" EnableDragToSelectRows="False"></Selecting>
                    </ClientSettings>
                </telerik:RadGrid>

THANK YOU

Carol
Top achievements
Rank 1
 answered on 10 Jun 2015
2 answers
61 views

My List is displaying correctly and filtering correctly however when selecting item all that is selected is the type name ??
  

<telerik:RadComboBox ID="rcbEmployeeFilter" AllowCustomText="True" runat="server"
               Width="200px" Height="400px"
                 
               DataValueField="empID"
               DataSourceID="odsEmployees"
               EmptyMessage="Search for people..."
               ResolvedRenderMode="Classic"
                
               >
               <ItemTemplate>
                   <%# DataBinder.Eval(Container.DataItem, "empID")%> -
                   <%# DataBinder.Eval(Container.DataItem, "empFirstName")%> <%# DataBinder.Eval(Container.DataItem, "empLastName")%>
               </ItemTemplate>
           </telerik:RadComboBox>
            
           <asp:ObjectDataSource ID="odsEmployees" runat="server"
           SelectMethod="GetEmployees"
           TypeName="PMTReports.BLL.Person.Employee" OldValuesParameterFormatString="original_{0}"
           >
 
       </asp:ObjectDataSource>

 Please tell me what I am missing or what to change?

 

Dan
Top achievements
Rank 1
 answered on 10 Jun 2015
Narrow your results
Selected tags
Tags
+124 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?