Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
123 views
I am using RadAsyncUpload with ManualUpload="true". When I select a file, it shows up with a pulsing yellow circle, the file name and a cancel button.

I and my users would like to not have that pulsing yellow circle be displayed. I've tried various CSS to do so, but have not managed to find the correct incantation. Can someone tell me how to remove or hide it? Thanks.
Shinu
Top achievements
Rank 2
 answered on 26 Apr 2013
3 answers
220 views
Hi,

I have a rad grid but when in edit mode I need to set one of the columns default value to the selectedvalue of a combo box?  How can this be done in VB.

Thanks,

Princy
Top achievements
Rank 2
 answered on 26 Apr 2013
0 answers
61 views
Hello,

please express your opinion on Telerik step to suppress some basics and heavily used skins support in the near future.

http://blogs.telerik.com/blogs/13-04-11/6-telerik-asp.net-ajax-skins-going-obsolete

I hope, that Telerik will change their decision, based on community arguments...

If they want to expand metro style skins, my proposal is to create another dll, which should be named Telerik.Web.UI.Skins.Metro.dll.

Have a nice day.

Vasssek
Vasssek
Top achievements
Rank 1
 asked on 26 Apr 2013
3 answers
851 views
hi,

  I have RadGrid with columns like "Discontinued " which can have valid values as Yes/No or 1/0. I am using SQL server database bit column to store the "Discontinued " data. 

When I try to display "Discontinued "  as a checkbox item inside the grid, I get the error message that says " can not convert string to Boolean". 

<telerik:GridCheckBoxColumn DataField="Discontinued" HeaderText="Discontinued" SortExpression="Discontinued"
                        UniqueName="Discontinued" EditFormColumnIndex="1">
</telerik:GridCheckBoxColumn>

Is there a way to convert the database value to boolean before it gets attached to the RadGrid?

Thanks!



Carlos Sesma
Top achievements
Rank 1
 answered on 25 Apr 2013
0 answers
81 views
So my problem is that I have a RadGrid which has a WebUserControl as Template

Inside this WebUserControl I have a RadTreeView with ChecBoxes that I populate with some datasource, I run the app, I select some Nodes, but they don't stay checked because Page_Load(here I set de datasource to the RadTreeView) event executes before leaving to the .aspx

The thing here is that Page.IsPostBack is always true so it resets my treeview everytime

.ascx
protected void Page_Load(object sender, EventArgs e)
{
 
            if (!Page.IsPostBack)
            {
                List<ANYTYPE> list = SOMEDATASOURCE;
                treeView.DataSource = SOMEDATASOURCE;
                treeView.DataBind();
            }
}


Another thing is how can I set a propertie of my .ascx from the .aspx?
Ing. Jesus Manuel
Top achievements
Rank 1
 asked on 25 Apr 2013
6 answers
190 views
I have a grid of items to order that gets filled from a drop down of vendors
if there is only one vendor - and the vendor only has one item then the grid gets populated - and the item is selected
for some reason, the selection script references controls not yet instantiated when the script that counts items runs

script to select one item
// only one item in page - select it
function MasterTableViewCreated(sender, eventArgs) {
    var theGrid = sender.get_masterTableView();
    var kount = theGrid.get_dataItems().length;
    if (kount == 1) {
        dont_rebuild_grid = true;
        theGrid.selectItem(theGrid.get_dataItems()[0].get_element());
        dont_rebuild_grid = false;
    }
}


script to select an item
function ItemsRowSelected(sender, eventArgs) {
    var theGrid = sender.get_masterTableView();
    var k = eventArgs.get_itemIndexHierarchical();
    var row = theGrid.get_dataItems()[k];
    var getValues = theGrid.extractValuesFromItem(k);
    var ItemID = theGrid.getCellByColumnUniqueName(row, "ItemID").innerHTML;
    var ShipStart = theGrid.getCellByColumnUniqueName(row, "ShipStart").innerHTML;
    var ShipEnd = theGrid.getCellByColumnUniqueName(row, "ShipEnd").innerHTML;
    var ItemDescription = theGrid.getCellByColumnUniqueName(row, "ItemDescription").innerHTML;
    var NetCost = theGrid.getCellByColumnUniqueName(row, "NetCost").innerHTML;
    var BoothNumber = theGrid.getCellByColumnUniqueName(row, "BoothNumber").innerHTML;
    var VendorNumber = theGrid.getCellByColumnUniqueName(row, "VendorNumber").innerHTML;
    var rntbOrderCode = $find('<%=rntbOrderCode.ClientID %>');
    var rcbVendor = $find('<%=rcbVendor.ClientID %>');
 
    if (dont_rebuild_grid) {
        if (rcbVendor) {
            var rcbiVendor = rcbVendor.findItemByValue(VendorNumber);
            if (rcbiVendor) {
                rcbiVendor.select();
            }
            dont_rebuild_grid = false;
        }
    }
 
    // IE
    if (ItemDescription.indexOf("NOBR") > 0) {
        ItemDescription = ItemDescription.replace('</NOBR>', '');
        ItemDescription = ItemDescription.replace('<NOBR>', '');
    }
    // just about everything else
    else {
        ItemDescription = ItemDescription.replace('</nobr>', '');
        ItemDescription = ItemDescription.replace('<nobr>', '');
    }
    ItemDescription = ItemDescription.replace('&', '&');
 
    document.forms["form1"].txtItemID.value = ItemID;
    document.forms["form1"].lblInfo.value = ItemDescription + ' ' + ItemID;
    document.forms["form1"].lblDelivery.value = "";
    document.forms["form1"].txtNetCost.value = NetCost.replace('$', '');
//  document.forms["form1"].txtBoothNumber.value = BoothNumber;
    document.forms["form1"].txtVendor.value = VendorNumber;            
 
    var startDate = $find("<%= rtbStart.ClientID %>");
    var endDate = $find("<%= rtbEnd.ClientID  %>");
 
    if (startDate != null) {
       startDate.set_value(ShipStart);
    }
    if (endDate != null) {
       endDate.set_value(ShipEnd);
    }
 
    var i = 0;
    var j = 0;
    for (j = 0; j < 1; j++) {
        for (i = 0; i < document.forms["form1"].txtStoreCount.value; i++) {
            var actual = $find("sd" + j + i + "_rntbQty");
            actual.set_value('');
        }
    }
    var first_date = $find("<%= del.ClientID  %>");
    var ship_start = createDate(ShipStart);
    first_date.set_selectedDate(ship_start);
 
    // order code textbox not always found
    if (rntbOrderCode != null) {
        rntbOrderCode.set_value('');
    }
    return true;
}


any advice on how to proceed?
thanks
Elliott
Top achievements
Rank 2
 answered on 25 Apr 2013
4 answers
139 views
Hi,

I'm trying to localize the Grid Pager string to 3 different languages.
While I can find most of the Resource Strings I can't seem to find this one in the attached picture.
How do you localize this string into turkish.

Ardian
Top achievements
Rank 1
 answered on 25 Apr 2013
9 answers
189 views
Hi;

You show this  http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx on your website. But I can't find where I can get that to run it on my system.

??? - thanks - dave
David Thielen
Top achievements
Rank 1
 answered on 25 Apr 2013
1 answer
385 views
<script type="text/javascript">
        function pageLoad() {
            $find('<%= RadButtonClickTest.ClientID %>').focus();
        }
 
        function RadButtonClickTest_OnClientClicking(sender, args) {
            args.set_cancel(!confirm("Are you sure cancel?"));
        }
</script>

<div>
        Has fired server side event?: <asp:Label ID="LabelTest" runat="server" Text="No"></asp:Label
        <telerik:RadButton ID="RadButtonClickTest" runat="server" Skin="Simple" Text="Cancel" UseSubmitBehavior="false" TabIndex="1" OnClientClicking="RadButtonClickTest_OnClientClicking" OnClick="RadButtonClickTest_Click" />
</div>


We updated telerik version to v2013.1.417 for our site.
And then we got big problems with RadButton.
When I press enter key instead of clicking on a RadButton, there are two problems like below.

1. If I select "OK" at confirm window, it doesn't fire server side event even if AutoPostBack=true.
2. If I select "Cancel" at confirm window, first time, it is work successfully. But if I press enter key on a RadButton again, Client side event does not fire and server side event fire directly.

I don't understand this problem. You can download full test source from below link.
http://www.mediafire.com/?80q15q2hk6surq4
Please refer to it.
Our site have a lot of RadButton. So this problem is so big issue.
What's the problem with RadButton?

Thanks
Hee
Danail Vasilev
Telerik team
 answered on 25 Apr 2013
3 answers
102 views
Hi,
On some pages, my radgrid has textboxes in template columns and in some other pages, we have checkboxes in template columns. Common requirement is upon submit (submit button) is clicked, I need to make sure that atleast 1 textbox or 1 checkbox is checked. So, I am planning to write a common code to be used for all the pages.

I am using this link javascript code to begin with:

For eg:
http://www.telerik.com/community/forums/aspnet-ajax/grid/checkbox-template-column-in-radgrid.aspx

<script type="text/javascript">
    function ClientClick(gridName, templateColumnName) {
        var count = 0;
        var grid = $find(gridName);
        var MasterTable = grid.get_masterTableView();
        for (var i = 0; i < MasterTable.get_dataItems().length; i++) {
            var gridItemElement = MasterTable.get_dataItems()[i].findElement("CheckBox1");
                    // Instead of hard codeing, I need to find what type of control is in template column 
                    // and based on that write code
            if (gridItemElement.checked) {
                count++;
                break;
            }
        }
        if (count == 0) {
            alert("Please check atleast one !");
            return false;
        }
    }
</script>

so something like this:
var inputElement = cell.getelementbytagname('INPUT')
if (inputElement.type) ==  "CheckBox"{}
elseif (inputElement.type == "text"

Summary, I need to find the type of control and then code.

Thanks,
Prathiba
Prathibarani
Top achievements
Rank 1
 answered on 25 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?