Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
313 views

Hi all,

the option ImageStorageLocation="Session" for RadCaptcha I used earlier was working OK, until now.



The problem with the Captcha came right after the latest update of my RadControls was applied (Q3 2013). Simply put, instead of the image with captcha numbers, we now get no image at all.



Looking deeply at the problem, I discovered that if we change the Captcha's ImageStorageLocation to "Cache" the captcha image is rendered as expected. However, I have to use the Session option, because other options was not appropriate (not working) in my hosting environement.



Can anyone help please, or is it a bug in the latest Q3 2013 update.

Slav
Telerik team
 answered on 27 Nov 2013
1 answer
77 views

It took telerik 5 years to fix the case sensitive seeach in the combobox..

New control Radsearch, same old defect, all over again..



Argh...

Plamen
Telerik team
 answered on 27 Nov 2013
1 answer
518 views
I have several separate forms that I want to add a "reset" or "clear" button to. What I'd like is a way to blanket reset all controls to their initial state.

The forms are built entirely from Telerik controls.

What is the best to do this? I'd like the ability to use a single piece of code (javascript) to be included in all pages.
Shinu
Top achievements
Rank 2
 answered on 27 Nov 2013
5 answers
139 views
Hi,
I am facing Combobox Bind issue in grid while using custom template in editmode,
table data comes to datatable but while providing datasource it gives error.
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
   {
       if (e.Item is GridEditableItem)
       {
           GridEditableItem edit = (GridEditableItem)e.Item;
           RadComboBox cmbUserType = (RadComboBox)edit.FindControl("cmbusertype");
           DataTable dt1 = ObjGlobas.UserType();
           cmbUserType.DataSource = dt1;
           cmbUserType.DataTextField = "UserType";
           cmbUserType.DataValueField = "UserTypeId";
           cmbUserType.DataBind();
       }
   }
Thanks
Swapnil
Top achievements
Rank 1
 answered on 27 Nov 2013
13 answers
492 views
I have a grid whose table view's EditMode is set to batch.
One of the columns of the grid is a GridDropDownColumn, and the inner input is a select element (DropDownControlType="DropDownList").

The values are displayed properly in the read mode. When I open a row for editing, the drop down appears with the first item selected, not the value of the cell.
When I call
$find("gv").get_batchEditingManager().getCellValue(document.querySelectorAll(".rgBatchCurrent")[5])
on the grid I get the text value displayed while on read only mode, not the underlying value (5 is the index of the drop down column).
For example, the previous call returns "Employee (non-sales)" but it should return "EM".

If I use the rad combo box editor instead, it works well, but I don't want it for this simple form. I want to use the plain drop down list.
أشرف
Top achievements
Rank 1
 answered on 27 Nov 2013
5 answers
507 views
Hi,

I am using asyncupload for storing files into database.

I have 2 grids and a upload control and a save to database button. The selection of a row from 1st grid selects rows from 2nd grid. After this, a file is uploaded using asyncupload. Now by clicking the submit button I want to save the grid selections and the file to database.
I have attached a PostbackTriggers property to asyncupload  control because when i upload a file and change the selection in first grid the file is gone because of postback. If i remove PostbackTriggers property UploadedFiles count is not zero.

The UploadedFiles of asyncupload is always returning 0 files when i use PostbackTriggers.
I have attached an image to describe the controls.
Shinu
Top achievements
Rank 2
 answered on 27 Nov 2013
3 answers
234 views
I want to execute some code on the server when the dropdowntree is cleared using the Clear button. How do I go about doing that? Thanks in advance.
Shinu
Top achievements
Rank 2
 answered on 27 Nov 2013
1 answer
247 views

I have a RadTreeView with so many nodes that it requires scroll bars. When the 
user selects a node the screen is refreshed and the selected node is no 
longer visible, I have to scroll down to go selected node. The TreeView is opened to the selected node but the screen 
is not scrolled to it. How can I get the TreeView to show the selected node 
after it has been refreshed?
Plamen
Telerik team
 answered on 27 Nov 2013
1 answer
200 views
Hello,

I have a web page with several comboboxes , trying to set the enabled property to false on page load with the following code:

  foreach (Telerik.Web.UI.RadComboBox p in this.Controls.OfType<Telerik.Web.UI.RadComboBox>())
            p.Enabled = false;

doesnt seem to work, can someone suggest the rightway??

Thanks
Shinu
Top achievements
Rank 2
 answered on 27 Nov 2013
3 answers
101 views
hi

I faced an error that it cannot Cannot find a cell bound to column name 'CustTextBox'  How should I solve this? Thanks a lot

here is my code:

 <telerik:GridTemplateColumn DataField="CustName"
            FilterControlAltText="Filter CustName column" HeaderText="Customer Name"
            SortExpression="CustName" UniqueName="CustName">
            <EditItemTemplate>
                <asp:TextBox ID="CustNameTextBox" runat="server"
                    Text='<%# Bind("CustName") %>'></asp:TextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label ID="SCustNameLabel" runat="server" Text='<%# Eval("CustName") %>'></asp:Label>
            </ItemTemplate>
</telerik:GridTemplateColumn>

    Protected Sub RadGrid1_InsertCommand(sender As Object, e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.InsertCommand
        Dim insertedItem As GridEditFormInsertItem = DirectCast(e.Item, GridEditFormInsertItem)
        Dim CustName As String = (TryCast(insertedItem("CustNameTextBox").Controls(0), TextBox)).Text
        Customer_Insert(CustName)
        RadGrid1.Rebind()
    End Sub

Protected Sub RadGrid1_UpdateCommand(sender As Object, e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.UpdateCommand
        Dim editedItem As GridEditableItem = TryCast(e.Item, GridEditableItem)
        Dim CustID As String = editedItem.OwnerTableView.DataKeyValues(editedItem.ItemIndex)("CustID").ToString()
        Dim CustName As String = (TryCast(editedItem("CustNameTextBox").Controls(0), TextBox)).Text
        Customer_Update(New Guid(CustID), CustName)
        RadGrid1.Rebind()
    End Sub

Princy
Top achievements
Rank 2
 answered on 27 Nov 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?