Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
128 views
Dear,

I have a combobox with a treeview control, its working fine in IE, but when i tried to use it in Chrome:
  1. The server side code shows that the Parent and Child Nodes are Created Successfully.
  2. In the Web Page the tree is only showing the parent nodes only (in chrome), although opening the same page in IE shows it correctly.

ServerSide:

private void LoadCountryByRegion(out string ErrorMessage)
    {
        ErrorMessage = "";
        try
        {
            RadTreeView tre_Country = (RadTreeView)ddl_Country.Items[0].FindControl("tre_Country");
            if (tre_Country != null)
            {
                tre_Country.Nodes.Clear();
            }
            IList<Region> _regionList = (new RegionBL()).getAll();
            if (_regionList.Count > 0)
            {
                foreach (Region _region in _regionList)
                {
                    RadTreeNode _regionNode = new RadTreeNode();
                    _regionNode.Text = _region.Title;
                    _regionNode.Value = "region|" + _region.ID.ToString();
                    _regionNode.ImageUrl = "~/Resources/Images/16x16/Circle_Red.png";
                     
                    IList<Country> _countryList = _region.Country_List;
 
                    foreach (Country _country in _countryList)
                    {
                        RadTreeNode _countryNode = new RadTreeNode();
                        _countryNode.Text = _country.Title;
                        _countryNode.Value = "country|" + _country.ID.ToString();
                        _countryNode.ImageUrl = "~/Resources/Images/16x16/Circle_Green.png";
                        _regionNode.Nodes.Add(_countryNode);
                    }
                    tre_Country.Nodes.Add(_regionNode);                   
                }
            }
        }
        catch (Exception ex)
        {
            ErrorMessage += ex.Message;
        }
    }

HTML:

<telerik:RadComboBox ID="ddl_Country" runat="server" ExpandAnimation-Type="None"
                                            CollapseAnimation-Type="None" OnClientDropDownOpened="tre_Country_OnClientDropDownOpenedHandler"
                                            LoadingMessage="Loading..." EmptyMessage="Please Select Country"
                                            Style="vertical-align: middle;" Width="300px" Height="190px" Skin="Office2007" >
                                            <ItemTemplate>
                                                <telerik:RadTreeView ID="tre_Country" runat="server" ShowLineImages="true" BackColor="#FFFFFF"
                                                    Height="180px" Width="290px" OnClientNodeClicking="tre_Country_NodeClicking" Skin="Office2007" />
                                            </ItemTemplate>
                                            <Items>
                                                <telerik:RadComboBoxItem Text="" />
                                            </Items>
                                        </telerik:RadComboBox>

Hristo Valyavicharski
Telerik team
 answered on 02 Apr 2013
3 answers
119 views
Hi
In my page I have a RadGrid with filter menu. When I click on the menu button the little box with the menu options does not have a consistent place. Sometimes it is close to the button sometimes in the middle of the page. Most of the time this hapen when the internet explorer is not fully opened.
I and not using css file for menu.
Could you please explain where is the setting for the location of the filter menu? or how can I fix the problem.


Thanks
Radoslav
Telerik team
 answered on 02 Apr 2013
1 answer
147 views
Hi,

I am trying to display a confirm dialog box on the button click and keep getting an erro 'Object expected' r on the following line.

radconfirm(text, callBackFunction, 500, 100, null, "Delete Record"

);
I am calling the function on the OnClientClicking

<telerik:RadButton ID="rbtDeleteSetting" runat="server" SkinId="skn_SavedSettings_Delete" EnableViewState="true" OnClientClicking="DeleteOnClientClicking" CommandArgument="Display"/>

Here is the complete function
function DeleteOnClientClicking(sender, args)

           {

               varcallBackFunction= Function.createDelegate(sender, function(argument)

             {

                 if (argument)

                   {

                        this.click();

                   }

              });

             vartext = "Are you sure you want to delete these Saved Settings?<br\>This process CANNOT be un-done.<br\>";

             radconfirm(text, callBackFunction, 500, 100, null, "Delete Settings");

             args.set_cancel(true);

          }


I copied the function from one of the demo's so I am not sure why it doesn't work.

Thank You
Tracy
Princy
Top achievements
Rank 2
 answered on 02 Apr 2013
1 answer
158 views
Hi,

I am using RadTabStrip (Q3 2012 SP1 version 2012.3.1308) in the mobile version of my web site. I have set the NavigateUrl to the RadTabs but its not working in my Android Tablet. This is working fine in my laptop browsers. Is it a bug or RadTabStrip got any compatibility issues with Android browser?

Thanks,
Saira
Princy
Top achievements
Rank 2
 answered on 02 Apr 2013
1 answer
61 views
Hi,

I am using RadControls version Q2 2012. The RadTextBox generates a NullReferenceException when I try to paste something and this behavior is shown in IE 10 only. RadTextBox works fine in MF and Chrome. How to resolve this?

Thank you,
Antony.
Princy
Top achievements
Rank 2
 answered on 02 Apr 2013
3 answers
87 views
I'm trying to find the cleanest format in which I can get the current filters entered on a postback.  The only place I'm able to find it is in the MasterTableView.FilterExpression string.  An example of how that looks is:

(it["Continent"].ToString().Contains("Af")) AND (it["Country"].ToString().Contains("So"))

I'm just wondering if there's a way to get this information in a nicer format.  

Eventually I need to turn this information into sql, and I'll need to create a helper method to make that translation (unless someone knows of one that already exists).

Thanks,
Alex

Edit: to further complicate matters it appears that sometimes the filter expression can be in a different format, for example:
(Convert.ToString(it[\"CategoryName\"]) >= \"Bev\")
Shinu
Top achievements
Rank 2
 answered on 02 Apr 2013
1 answer
179 views
Hi,

The RadCaptcha is having a Refresh Captcha hyperlink. I want to remove that hyperlink and instead of that give a refresh icon beside the captcha image. Is this possible?

Thanks,
Joseph.
Princy
Top achievements
Rank 2
 answered on 02 Apr 2013
1 answer
85 views
Hi,

We use vs 2012 with 2013 Q1 RadGrid. I am trying to delete row when looping thru rows in code behind in private routine like this:

int

 

 

rowCount = pRgdTrans.Items.Count;

 

 

 

int curRowIdx = 0;

 


while (curRowIdx < rowCount)
{    

    GridDataItem

 

 

curTransRow = pRgdTrans.Items[curRowIdx];
    if (curTransRow["ID"].Text == 100)

 

            //delete row.
           curTransRow.Remove();       -------------- how to do this.
}

Thanks,
Prathiba
Shinu
Top achievements
Rank 2
 answered on 02 Apr 2013
1 answer
94 views
Hi All,

Does RadControls support direct deploying on Server machine for Shared hosting? If that is possible, how to do it?

Thanks & Regards,
Henry Gibbs.
Princy
Top achievements
Rank 2
 answered on 02 Apr 2013
1 answer
96 views
Hi,

We should create MS Excel file from Telerik's grid in 2 cases:

1) Only from selected rows from current page
2) From all rows in all pages

We can't use ExportToExcel built-in method, which means all should be done manually.

This is pretty urgent and I would be thankful if somebody can help.


Thank you in advance.

Goran
Goran
Top achievements
Rank 1
 answered on 02 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?