Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
50 views
Hi,
I have this scenario
an aspx page with masterpage. The masterpage has a combobox control, as that value changes an event is raised.
I catch it this way
   Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
       AddHandler Master.supplierChanged, AddressOf onSupplierChanged
   End Sub
 
Protected Sub onSupplierChanged()
       RadGridNMBacheche.Rebind()
   End Sub

and then on needdatasource fill the datasource with businness object
Protected Sub RadGridNMBacheche_NeedDataSource(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGridNMBacheche.NeedDataSource
        Try
 
            Dim NM As New NewsManager.CNewsForMyself(myConn)
            Dim myDataset As DataSet = NM.getNewsForMyself_asDataset(OrderMode)
 
            RadGridNMBacheche.DataSource = myDataset
        
        Catch ex As Exception
            Call LogManager.WriteToErrorLog(errorPath, ClassName, System.Reflection.MethodBase.GetCurrentMethod.Name.ToString(), ex, Err())
        End Try
    End Sub


So, as combobox value changes my grid changes as well (myconn changes), unless mydataset (the datasource) is nothing,
in this case grid does not refresh and still shows old records. ajax or not ajax is the same.
Tsvetoslav
Telerik team
 answered on 14 Oct 2011
0 answers
112 views
Hi,

I am using rad combobox and i want to do that when any <HTML> tag insert in combobox after that user go to click GO button than it should become HTML. I am able to do it on simple asp text box but not able to do it on combobox.

Code example:

On TextBox :
  <script type="text/javascript">
        //remove space from log text box
function RemoveSpecialSymbols(id) {
            var objid = document.getElementById(id);
            if (objid)
                objid.value = html2entities(objid.value);
        }

        function html2entities(sometext) {
            var re = /[<>]/g
            //    if (sometext.length > 2500)
            //        sometext = sometext.substr(0, 2500);
            return sometext.replace(re, function (m) { return replacechar(m) })
        }

        function replacechar(match) {
            if (match == "<")
                return ""
            else if (match == ">")
                return ""
        }
  </script>
<asp:TextBox ID="txtEmail" runat="server" TabIndex="1" MaxLength="50" SkinID="RequiredTextBox" onkeydown="javascript:if (event.which || event.keyCode){if ((event.which == 13) || (event.keyCode == 13)) {RemoveSpecialSymbols(this.id);}};" onblur="RemoveSpecialSymbols(this.id);" ></asp:TextBox>

Same thing i want to do it on RadCombobox....

     <telerik:RadComboBox ID="RCBSearch" runat="server" Width="250px" Height="150px" Text=""
                    ShowToggleImage="false" EmptyMessage="Search by tags, products, business name"
                    EnableLoadOnDemand="true" ShowMoreResultsBox="true" Style="float: left; margin: 0;
                    padding: 0;" EnableVirtualScrolling="true" ShowDropDownOnTextboxClick="false"
                    onkeydown="PressKeyForProfile(this, event)">
                    <WebServiceSettings Method="GetCompanyNames" Path="wsSellWithMe.asmx" />
                </telerik:RadComboBox>

But it is sowing some kind of javascript error...

"Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500"

Thanks
Manish
Manish
Top achievements
Rank 2
 asked on 14 Oct 2011
1 answer
94 views

hi all
                  I am using radgrid in my application , in that i need to enable the grouping feature, so i set AllowGrouping=true , ShowGroupPanel = true and AllowDragtoGroup = true. It works fine when i try to drag and drop a integer type column(eg:Salary) into the groupPanel but when i drag and drop a string type column(eg: Product Name) it throws an exception like "Could not find the column" or "Could not find the column index -1(Out of Range Exception)".

                  When the column name contains Space in it (eg: Product Name) the exception is like " Cloud not find the Column Product" i.e., it does not read the Name in Product Name.

                  Please tell me how to fix this issue it is very urgent.
 

Thanks in Advance

Tsvetoslav
Telerik team
 answered on 14 Oct 2011
1 answer
89 views
Hi all,

have a simple query! i have a control in the .cs file which is a text and i want to change colour of this however its not picking up foreground or background controls?

Shinu
Top achievements
Rank 2
 answered on 14 Oct 2011
3 answers
87 views
Hi,

I am just wondering, how do I add Hyper Link to  <telerik:RadTickerItem>Breaking News: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt</telerik:RadTickerItem>?

Thank you

Jayesh



Shinu
Top achievements
Rank 2
 answered on 14 Oct 2011
1 answer
44 views
Hello,

I have a radmenu in aspx page and i am adding radsitemap dynamically to radmenuitem.
I am adding radsitemapnodes to radsitemap.
I am using IE9, if i run my application in compatible mode then it works fine.
OR
If i add <meta http-equiv="X-UA-Compatible" content="IE=8" />  in the HEAD section then also it works fine.
In the above two scenarios i was able to see radsitemapnodes with bullets on the left side.
But, if i open my application in normal mode in IE9,then whenever i hover on the menuitem i can see the text of the radsitemapnodes but
the bullets are invisible.
if i click on the menu or if i do some click action on the menu then all bullets are visible .From then i was able to see the bullets in the
Radsitemap.

Does anybody aware of this issue.
Is this the issue with IE9?
Is there any workaround for this?

Please assist.

Thanks,
LV
Shinu
Top achievements
Rank 2
 answered on 14 Oct 2011
1 answer
253 views
Hi,

It seems like "exception of type 'system.outofmemoryexception' was thrown" is a common error that people are having using the RadGrid; however, I can not find any real solution that works on the forum.  My dataset contains 3.5 million records for 80 rows of data.

Regards,

Kelly
Princy
Top achievements
Rank 2
 answered on 14 Oct 2011
1 answer
61 views
Hi Telerik Team,

 i have a requirement which i attached as a picture...

In this i have to bind data from 2sources one is AM,PM,MID Coming from one linq query and other "sales reps" names and their availability coming from another linq query.

I am planning to use "RadScheduler" but i am struct at the point how to bind data...But do i have any option?.

Please do respond.

Its urgent...Thanku in advance.

 
Shinu
Top achievements
Rank 2
 answered on 14 Oct 2011
2 answers
73 views
Hi,
I have a RADSchedule where my schedule is very long, when a user delete one of the appointment, the Confirm Delete window appear in the middle of the RADSchedule where my user have to scroll, is there away to control the confirm Delete window on the top at the header of the RADSchedule?

regards,
CH
CH
Top achievements
Rank 1
 answered on 14 Oct 2011
1 answer
71 views
Hello,

I have two RadGrids, g1 and g2, on a page and both have vertical scrollbars. The g1 scrollbar controls the vertical scroll of g2. I would like to hide the vertical scrollbar in g2 but not disable the scrolling.

How is this accomplished?

Thanks,
John S.
John S.
Top achievements
Rank 1
 answered on 14 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?