Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
239 views
Hi,
We have a RadButton with Target property set to "_blank".  In the OnClick method we have Response.Redirect("www.google.com").

But the requested url is not opening in new window. Any suggestion is appreciated. Thanks in advance.
Prathyusha
Top achievements
Rank 1
 answered on 26 Apr 2013
1 answer
99 views
I have a RodComboBox that has default values loaded in from a dataset, but I am also allowing the user to enter a new value if their desired option is not in the list.  I have auto complete on, but if a user types fast enough they can enter a duplicate of an existing value.  What I want to do is verify the entered value does not match an existing value.  If the value does exist I would like to return it's value.  ASP's ComboBox has the method FindStringExact which seems to be perfect for this scenario, but I have not seen this method in the RadComboBox.  I'm using Q2 2012 if that helps.

Thanks
Shinu
Top achievements
Rank 2
 answered on 26 Apr 2013
1 answer
164 views
Ok so my problem is that I cant set the checkboxes from node on true state.

my treeView is in a .ascx

this is the event for my RadGrid at .aspx where I have my usercontrol.ascx as a Template for Edit Mode
protected void dtg_ItemCreated(object sender, GridItemEventArgs e)
        {
            #region dtgCatalogos_ItemCreated
            if (e.Item is GridEditFormItem && e.Item.IsInEditMode)
            {
                if (e.Item.DataItem != null)
                {
                    string name = e.Item.DataItem.ToString();// 
                    UserControl userControl = (UserControl)e.Item.FindControl(GridEditFormItem.EditFormUserControlID);
                    RadTreeView radTreeView = (userControl.FindControl("tvRoles") as RadTreeView);
                    radTreeView.DataSource = SOMEDATASOURCE1;
                    radTreeView.DataBind();
 
                    foreach (RadTreeNode node in radTreeView.Nodes)
                    {
                             node.Checked = true;
                    }
                }
            }
}
here I set the check nodes to TRUE

but at the time I display the treeView it doesnt have any checked nodes

this is my .ascx

<telerik:RadTreeView runat="server"  ID="tvRoles" DataValueField="ProcesoId" DataTextField="ProcesoDescr" CheckBoxes="true" CheckChildNodes="true" TriStateCheckBoxes="true" CausesValidation="false" />

please, someone knows what am I doing wrong?

Thanks
Shinu
Top achievements
Rank 2
 answered on 26 Apr 2013
1 answer
135 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
243 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
68 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
884 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
89 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
207 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
151 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?