Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
284 views
"The ParentID of the root items must be null (nothing)" From a database perspective will it not be better to change the control to rather use "0" for the ParentID of the root items. According to my understanding one should try to avoide allowing null (nothing) in any data column. One possible solution might be to change the Dataset and replace all value in the ParentID for "0" to null (nothing) but I am not sure if this is possible?
Stewart Ellis
Top achievements
Rank 1
 answered on 08 Sep 2008
4 answers
339 views
I know there has to be an easy way to do this - I just can't seem to find it.

On my RadGrid I am using the CommandItemDisplay at the bottom to enable access to the "Add new record" functionality.

How can I intercept this event in order to redirect it to another page where the data entry will be done? I do not want to do it "in form"

Thanks.
Tom Scheffer
Top achievements
Rank 1
 answered on 08 Sep 2008
1 answer
156 views
I have a RadTabstrip control. On the first tabpage is a button. On the second tabpage is a RadGrid. The button is used to update the grid. After pressing the button, the grid is updated and the Tabstrip switches to the second tab. This all works fine.

When the browser is resized, I use javascript to resize the RadGrid so that it fills up the entire pageview - effectively filling up the entire browser area. After updating the RadGrid, the bottom part of the grid which says "Loading..." doesn't show up. If you use the mouse and resize any side of the brower even by one pixel or more, the bottom part of the grid will then appear.  By resizing the browser, it appears that an internal "refresh" is made that causes the grid to restore its css styles.

The title of this post refers to "Ajax". I edited this post afterwards (although I couldn't edit the title) to remove the reference to Ajax because this problem shows up even without Ajax.

Any ideas what could be causing the lower half to dissappear?

Thanks for your help.
Johann
Dimo
Telerik team
 answered on 08 Sep 2008
1 answer
100 views

First of all, I believe that it is not a RadControls problem, but a general AJAX case.  I have a webpage that generates an Excel file on the server, and the page uses AJAX to update the status (as it is a long process).  

The following is the (partial) codes that I use:

     Me.imgStatus.ImageUrl = "~/Images/tick.jpg"
     Me.imgStatus.AlternateText = "Done"
     Me.RadAjaxManager1.ResponseScripts.Add("window.location.href='DownloadFile.aspx';")

"Downloadfile.aspx" is another file that prompts the user to Open or Save the Excel (instead of displaying on within IE).  The following is the code-behind in Downloadfile.aspx.vb:

  Response.Clear()
  Response.ContentType = "application/x-msdownload"
  Response.AddHeader("content-disposition", "attachment;filename=WAT_ASWSalesWithGPByBrandCustomer_" & Format(Now(), "yyyyMMdd") & ".xls")
  excelFile.SaveXls(Response.OutputStream)


Now, my problem: the image "imgStatus" sometimes does not show up, and there is no Red cross on the web page.  When I right-click the location of  "imgStatus", and select "Show picture", the "Tick.jpg" loaded.

I think it is "Response.Clear()" that prohibits the displaying of "imgStatus".  To ensure that "imgStatus", i.e. the tick.jpg, shows, should I add one more post-back (thus delay the page redirection).  Is there anyway to overcome this?


Nikolay Rusev
Telerik team
 answered on 08 Sep 2008
3 answers
182 views
Hi$0$0$0$0I have created a dynamic Rad Page view by following your example Dynamic RadPageView. My problem is that, I am not being able to access a textbox value from an WebUserControl.ascx(which consists one pageview ) when I clicked the submit button which is placed in the same usercontrol. An Javascript error is displaying "Sys.WebForms.PageRequestManagerServerErrorException:Multiple Control with same ID 'Pathway' found. FindControl requires that controls have unique IDs".$0$0$0$0$0Why this is happening?$0$0$0$0$0Regards,$0$0Chandan$0
Atanas Korchev
Telerik team
 answered on 08 Sep 2008
1 answer
79 views
Hi,

Are there any plans to modify the MonthView to have appointments span across days (like Outlook) instead of showing as a sperate item on each day?  This would be a fantastic feature and would make a lot of people happy. 

Rich
Peter
Telerik team
 answered on 08 Sep 2008
3 answers
287 views
Hi,

I am creating controls dynamically in item created event for RadGrid.
If I set EnableViewState=true for RadGrid, I get Failed to load view state error as the control tree does not match.
But If I Set EnableViewState=false, everything works fine but the filtering does not work correctly for the other columns.
For example, i have a dropdown filter which works fine when i select some item but when i select empty item, it does not filter( does not get all the items back).

I tested by putting EnableViewState=true and commented code which creates controls dynamically..then the filtering works fine..
I am just wondering how i can get both dynamic control creation and filtering to work.

Could you please give your suggestions?

Thanks...

Sebastian
Telerik team
 answered on 08 Sep 2008
1 answer
114 views
I need to develop a web page, with grid and a few fields. The grid should be updated on client side, rows will be added and deleted. When the user presses the save button, the grid and fields should be save to data base.

my question is, how can I access client's changes to grid rows from server side? I want to save all changes at once, because there are dependencies.


thanks in advnace
hava 
Sebastian
Telerik team
 answered on 08 Sep 2008
3 answers
482 views
Can anyone explain the following behaviour? I added a RadTabStrip and RadMultiPage control to my page. I set the properties of the tab pages to display the corresposnding multipage views...However when I load the page I see the tabs but nothing displays in the "default" tab...I have to select another one to get the content to appear and then click back on the first one and the content then appears...Very wierd...Here is the code


<telerik:RadTabStrip ID="RadTabStrip1" runat="server" Width="100%"

SelectedIndex="0" Skin="Web20" MultiPageID="RadMultiPage2">

<Tabs>

<telerik:RadTab runat="server" Selected="True" Text="Transaction History"

PageViewID="RadPageView1" ToolTip="Click here to view Transaction history">

</telerik:RadTab>

<telerik:RadTab runat="server" Text="Owner Information"

PageViewID="RadPageView2" ToolTip="Click here to view Owner Information">

</telerik:RadTab>

</Tabs>

</telerik:RadTabStrip>

<telerik:RadMultiPage ID="RadMultiPage2" runat="server">

<telerik:RadPageView ID="RadPageView1" runat="server">

<table>

<tr><td>

<asp:Label ID="Label11" runat="server" Text="One"></asp:Label>

</td></tr>

</table>

</telerik:RadPageView>

<telerik:RadPageView ID="RadPageView2" runat="server">

<table>

<tr><td>

<asp:Label ID="Label14" runat="server" Text="Two"></asp:Label></td></tr>

</table>

</telerik:RadPageView>

</telerik:RadMultiPage>

Atanas Korchev
Telerik team
 answered on 08 Sep 2008
1 answer
145 views
I'd like to be able to do something like the sample at:

http://demos.telerik.com/aspnet/prometheus/ComboBox/Examples/PopulatingWithData/AutoCompleteSql/DefaultCS.aspx

In order to increase performance and not have all of the items loaded initially.

However I'm using a custom template to display multiple columns and am uncertain how to do it.  All of the examples assume one item / column and that you can just use an add method on the combobox to add additional items.

Here's my current code below.  Is there a way that i could achieve this?

<

telerik:RadComboBox ID="radcbxaccountnumber" runat="server" MaxLength="16" Width="160px" DropDownWidth="340" EnableEmbeddedSkins="false" Skin="WebIE7" AllowCustomText="true" MarkFirstMatch="true" Text='<%# DataBinder.Eval(database.duckds, "Tables(0).DefaultView.(0).txtvar1") %>' EnableLoadOnDemand="true" HighlightTemplatedItems="true" ItemRequestTimeout="500" OnItemsRequested="radcbxaccountnumber_ItemsRequested" OnItemDataBound="radcbxaccountnumber_ItemDataBound" ShowMoreResultsBox="true" EnableVirtualScrolling="true">

<HeaderTemplate><table style="width:300px;text-align:left">

<tr><td style="width:75px;">Account#</td>

<td style="width:75px;">Name</td>

<td style="width:100px;">Product</td>

</tr></table></HeaderTemplate>

<ItemTemplate><table style="width:300px;text-align:left">

<tr><td style="width:75px;vertical-align:top;"><%#DataBinder.Eval(Container.DataItem, "txtvar1")%></td>

<td style="width:75px;vertical-align:top;"><%#DataBinder.Eval(Container.DataItem, "txtvar2")%></td>

<td style="width:100px;vertical-align:top;"><%#DataBinder.Eval(Container.DataItem, "reqtype", "{0}") + " " + DataBinder.Eval(Container.DataItem, "prodtype", "{0}")%></td>

</tr></table></ItemTemplate></telerik:RadComboBox>

and

Public

requestdataview As DataView

Protected Sub radcbxaccountnumber_ItemsRequested(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs)

requestdataview = database.FillDataViewWithCaching(

"getrelatedducks " + Request.QueryString("flockid") + ",1")

radcbxaccountnumber.DataSourceID =

""

radcbxaccountnumber.DataSource = requestdataview

radcbxaccountnumber.DataBind()

End Sub

Protected Sub radcbxaccountnumber_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxItemEventArgs)

e.Item.Text = (

DirectCast(e.Item.DataItem, DataRowView))("txtvar1").ToString()

e.Item.Value = (

DirectCast(e.Item.DataItem, DataRowView))("txtvar1").ToString()

End Sub

Veselin Vasilev
Telerik team
 answered on 08 Sep 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?