Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
59 views
On of my btton click event I am opening one panel in model popup (using Ajax popup extender).

Some Rad DatePkrs and Rad Combos are there in the popup.Now when I tried to select Date , at that time that date pkr popup is not opening. 

Com box is also not opening.

If any one knows what is the issue dan please tell me.

-Thanks
Jason Gajewski
Top achievements
Rank 1
 answered on 06 Apr 2011
11 answers
390 views
Hello,

I have a RadGrid with nested tables, for now called parent and child. It is a business rule that no parents can be childless, and that only the children can be removed. This results in a situation where the parent will have to be deleted when the last child is deleted.

At the moment, in the OnDeleted method, I am using
item.FireCommandEvent(RadGrid.DeleteCommandName, ""); 
to remove the parent item, after checking if the parent is now empty.

This results in a ArgumentOutOfRangeException at:
at System.Collections.ArrayList.get_Item(Int32 index) 
at Telerik.Web.UI.GridDataKeyArray.get_Item(Int32 index) 
at Telerik.Web.UI.GridTableView.FilterDetailDataSource() 
at Telerik.Web.UI.GridTableView.DataBind() 
at Telerik.Web.UI.GridTableView.Rebind() 

I assume because it's looking for a non-existent parent element when trying to create the now empty detailtable.

Can anyone help me resolve this situation. Basically I want the parent item removed when a child item is removed. I tried using the NeedDataSource event to check for empty parents and remove them directly on the database, but I'm not having much success with assigning already existing DataSources to the master and detail tables.

Thanks


Tri Nguyen
Top achievements
Rank 1
 answered on 06 Apr 2011
1 answer
59 views
I have question. What is the best way to filtering huge part of data in RadGrid. My database table has sth about 1 million records. I must filtering data and counting aggregates and I want that this may take possible fast.
Pavlina
Telerik team
 answered on 06 Apr 2011
0 answers
75 views
I've bound data to a radgrid which I'm using to just reimplement a preexisting gridview control.

I keep getting the error "System.Web.HttpException: The DataSourceID of 'drpGradesEdit' must be the
ID of a control of type IDataSource.  A control with ID 'sqlDSGradesEdit' could not be found." when
the grid goes into edit mode
 
One of the columns has a button that fires the Edit command and two have radcombobox + SQLDataSource controls on their Edit templates 
and when I click the edit button I loop through the following bit of code until I get the the item before the one I clicked edit on, and once
It finishes the sub for that previous item It jumps to my error handling function with the above error message.


Protected
Sub rgUserQuals_RowDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles rgUserQuals.ItemDataBound
       ' Check that Item sending the event is a RadGrid Data Item
       If (TypeOf e.Item Is Telerik.Web.UI.GridDataItem) Then
           'Go through all the Rad grid Items in edit mode and 
           Dim GridEditableItem As Telerik.Web.UI.GridEditableItem
           If (TypeOf e.Item Is Telerik.Web.UI.GridEditableItem) And e.Item.IsInEditMode Then
               ' Then
               Try
                   Dim teststring As String = ""
                   teststring = Me.rgUserQuals.MasterTableView.DataKeyValues(e.Item.ItemIndex)("Qualification")
                   Dim gs As SqlDataSource = CType(e.Item.FindControl("sqlDSGradesEdit"), SqlDataSource)
                   gs.SelectParameters("Qualification").DefaultValue = _
                   Me.rgUserQuals.MasterTableView.DataKeyValues(e.Item.ItemIndex)("Qualification")
                   gs.SelectParameters("QualType").DefaultValue = _
                   Me.rgUserQuals.MasterTableView.DataKeyValues(e.Item.ItemIndex)("QualType")
                   Dim cbo As Telerik.Web.UI.RadComboBox = CType(e.Item.FindControl("drpGradesEdit"), Telerik.Web.UI.RadComboBox)
                   cbo.DataSourceID = gs.ID
                   cbo.DataBind()
                   cbo.SelectedValue = Me.rgUserQuals.MasterTableView.DataKeyValues(e.Item.ItemIndex)("Grade")
                   Dim ss As SqlDataSource = CType(e.Item.FindControl("sqlDSSchoolsEdit"), SqlDataSource)
                   ss.SelectParameters("SchoolName").DefaultValue = _
                   Me.rgUserQuals.MasterTableView.DataKeyValues(e.Item.ItemIndex)("SchoolName")
                   Dim rcbuqes As Telerik.Web.UI.RadComboBox = CType(e.Item.FindControl("rcbUsersQualEditSchool"), Telerik.Web.UI.RadComboBox)
                   rcbuqes.DataSourceID = ss.ID
                   rcbuqes.DataBind()
                   rcbuqes.SelectedValue = Me.rgUserQuals.MasterTableView.DataKeyValues(e.Item.ItemIndex)("SchoolName")
               Catch ex As Exception
               End Try
           End If
       End If
   End Sub
Gordon
Top achievements
Rank 1
 asked on 06 Apr 2011
3 answers
125 views
Hi, I'm using RadGrid, to show a list of components. The problem is, when I tried to click on a record, to enter the edit form, the page takes more than 10-15 seconds only to display the editing form. This issue doesn't happen on Chrome or fxf, in those browsers it only takes 3-4 secs to load the page. 

Do you know what I can do to improve the performance on IE??
I already tried disabling pagination, sorting and other features.... I also tried showing only 5 records to see if there's a problem with the qty of data, adding custom pagination to return less results, minimizing Css. 

Is there any known issue with IE? 

I would really appreciate any help you can give me. 

Thanks,
Janise Piombo
Pavlina
Telerik team
 answered on 06 Apr 2011
1 answer
82 views
Hi there,

the value of the shape attribute isn't a well formed xhtml value. The radeditor writes an uppercased value into the shape attribute.

<area shape="RECT" coords="10,10,202,121" href="http://www.google.com" target="_blank" alt="no comment">

If you change the attributes value to a xhtml valid lowercased value, the Image Map Editor doesn't find the area.

Steps for reproducing that

1. Open this Url http://demos.telerik.com/aspnet-classic/editor/examples/ImageMap/DefaultCS.aspx
2. Add the following imagemap code into the editor.

<img style="width: 300px; height: 192px;" usemap="#rade_img_map_RadEditor1_0" src="/aspnet-classic/Editor/Img/UserDir/Marketing/banner.gif" id="Img1" border="0">
<map name="rade_img_map_RadEditor1_0" id="rade_img_map_RadEditor1_0">
<area shape="RECT" coords="10,10,202,121" href="http://www.google.com" target="_blank" alt="no comment">
<area shape="CIRCLE" coords="113,160,21" href="http://www.msdn.com" target="_blank" alt="no comment"></map>

This image map code is editable with the Image Map Editor
3. Change to html view

replace the uppercase "RECT" and "CIRCLE" shapes to "rect" and "circle" the imagemap will be well formed but you can't find the circle shape within the Image Map Editor.

Thanks and best regards
Uwe
Marin Bratanov
Telerik team
 answered on 06 Apr 2011
1 answer
148 views
I have a page that internally opens up a rad window.  On that rad window, it opens up a smaller rad window (to enter some options).  So Main Window opens Rad Window1 which opens Rad Window2.  When Rad Window2 times out, or encounters an error, I try and make a call to a javascript function on Main Window.  I thought I could do this using GetRadWindow.BrowserWindow.BrowserWindow.JSCall(), however, that is throwing the same error that GetRadWindow.BrowserWindow.JSCall() is throwing (JSCall is undefined).  Is there a way to make this call back to the Main Window from the second Rad Window opened?

Thanks,

Josh
Marin Bratanov
Telerik team
 answered on 06 Apr 2011
2 answers
274 views
Hi!  Is there a way to set a timeout for disabling a RadButton in the client-side?  I would like to disable a RadButton for 5 seconds after a user clicks on it. 

Here's the current code I have:
function DisableSubmitBtn() {
            var btnSubmit = $find('<% =btnItemSubmit.ClientId %>')
            btnSubmit.set_text("Submitting");
            btnSubmit.set_enabled(false)   
        }


I've tried using the window.setTimeout function but it doesn't seem to have any effect.  I have tried both:
setTimeout('document.getElementById("' + btnItemSubmit + '").disabled = false', 2000);
 
var btnSubmit = $find('<% =btnItemSubmit.ClientId %>')

setTimeout('btnSubmit.set_enabled(false)', 2000);


Thanks!
Amy
Top achievements
Rank 1
 answered on 06 Apr 2011
5 answers
202 views
Hello,

I'm new to this forum.  I see the Drag-and-Drop Row demo, I really like it.  I have a similar scenario where my first radgrid (doctorRadgrid) displays all the doctor names (using Linq binds from code behind), and the second radgrid (scheduleRadgrid) contains only doctor names that dragged from the first radgrid.  However, when a user drags a doctor name from doctorRadgrid to scheduleRadgrid, I don't want that doctor name deleted from the doctorRadgrid.  I just want it copy to the scheduleRadgrid.  Is that possible?  Can you please provide sample code, I really aprreciated your help.

Thanks in advance!
Maria Ilieva
Telerik team
 answered on 06 Apr 2011
1 answer
54 views
Hi, as per http://demos.telerik.com/aspnet-ajax/editor/examples/filemanagers/defaultcs.aspx, I have added the line to the web.config file and the entry for Document Manager to the Default.aspx file.

When I click the Document Manager button in the text editor, I always get nothing to choose, i.e., 'Page 1 of 0. Items 1 to 0 of 0'.

The RadEditor Default.aspx file is at e.g. F:/x/xx/xxx/xxxx/RadEditor.Net/Default.aspx and the documents folder is e.g. F:/Assets/Documents - what should I be entering in the line below?

Many thanks

<DocumentManager ViewPaths="~/Assets/Documents" UploadPaths="~/Assets/Documents" DeletePaths="Assets/Documents" />
Dobromir
Telerik team
 answered on 06 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?