Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
215 views
I have a nice presentation form that displays all the data within a table automatically (easily done with the component). However, now I want to be able for users to query the database table and click the query button and have the table updated.

Below is the code I am using:

EAIDataClassesDataContext db = new EAIDataClassesDataContext();
            var hl7dTypes = from p in db.REF_HL7_DATATYPEs where p.DATATYPE.Contains(RadTextBox1.Text.Trim()) select p;
            //LinqDataSource.Equals == hl7dTypes;
            //LinqDataSource.DataBind();
            //RadGrid1.DataSource = hl7dTypes;
            //RadGrid1.DataBind();
            RadGrid1.Rebind();

As you can tell I have tried the commented out options and all either do not work or cause a page rendering error. How can I get this to work?
Sebastian
Telerik team
 answered on 22 Jul 2009
3 answers
121 views
I have set up a RadGrid (that is ajaxify) in a User control. This grid's data is bound dynamically and sometimes through the NeedDataSource event. The Script manager and AjaxManager is in the master page along with a RadTabStrip. I have an AjaxManagerProxy in the user control to ajaxify the grid.

The grid has the following properties:
-Columns are set statically
-Filtering is enabled on the first 4 columns only
-The last column does not have header information as it contains links about the details of each row in the grid
-Paging and sorting is enabled
-I have setup exporting through Excel (in ExcelML) and PDF
-Users can select rows.

Now, whenever I click on the header of a column to sort, ascending sort works. However, weird things start to happen:
-if I click the ^(up) arrow right next to the header text, the third column (2nd column down) gets sorted ascending.
-if I click the first column again, instead of descending sort, it stays in ascending sort.
-if I go down the rows sorting, as in if I click the first column to sort, then click the next column to sort, instead of the next column sorting, it is the next after next column that sorts. (I noticed that the Javascript indexes are changing, don't know why)
-paging to the next page stops at the second page, but that's not as bad as sorting.

I'll post my code when necessary. Any help will be much appreciated.
Sebastian
Telerik team
 answered on 22 Jul 2009
1 answer
320 views
hi there, I have used ajaxRequestWithTarget for a button ajax event. I wish to pass argument to the button event and how would i get it out as a string?  for example, 

 

ajaxRequestWithTarget(

"btnRefreshAct", "RebindTask")

how would i get the RebindTask from the buttonclickEvent from Radajaxmanager?

 

 

Shinu
Top achievements
Rank 2
 answered on 22 Jul 2009
2 answers
488 views
Hi

I have a RadGrid with 5 function buttons. I want to hide / show these images on a row by row basis.

This is my Rad grid:

 

<telerik:GridButtonColumn ButtonType="ImageButton" CommandName="EditJobplan" Text="Edit JobPlan" ImageUrl="../App_Themes/Default/Images/JobPlanEdit_24.gif" UniqueName="Change"><HeaderStyle Width="1px" /><ItemStyle Width="1px" /></telerik:GridButtonColumn>

 

 

<telerik:GridButtonColumn ButtonType="ImageButton" CommandName="EditSession" Text="Edit Sessions" ImageUrl="../App_Themes/Default/Images/SessionEdit_24.gif" UniqueName="View"><HeaderStyle Width="1px" /><ItemStyle Width="1px" /></telerik:GridButtonColumn>

 

 

<telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Assign" Text="Assign" ImageUrl="../App_Themes/Default/Images/JobPlanAssign_24.gif" UniqueName="Assign"><HeaderStyle Width="1px" /><ItemStyle Width="1px" /></telerik:GridButtonColumn>

 

 

<telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Forum" Text="Forum" ImageUrl="../App_Themes/Default/Images/Chat_24.gif" UniqueName="Forum"><HeaderStyle Width="1px" /><ItemStyle Width="1px" /></telerik:GridButtonColumn>

 

 

<telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Preview" Text="Preview" ImageUrl="../App_Themes/Default/Images/Preview_24.gif" UniqueName="Preview"><HeaderStyle Width="1px" /><ItemStyle Width="1px" /></telerik:GridButtonColumn>

 

 


    Protected Sub rgJobPlans_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles rgJobPlans.ItemDataBound  
        If TypeOf e.Item Is GridDataItem Then  
            Dim dataItem As GridDataItem = CType(e.Item, GridDataItem)  
            Dim data As System.Data.DataRowView = TryCast(e.Item.DataItem, System.Data.DataRowView)  
            If data("Status").ToString() = "1" Then  
                dataItem("Change").Controls(0).Visible = True 
            Else  
                dataItem("Change").Controls(0).Visible = False 
            End If  
        End If  
    End Sub 

The code shows my ItemDataBound event, What is happening is that the entire column is being hidded / shown not the individual rows, what am I doing wrong?

Andy
Andy Green
Top achievements
Rank 2
 answered on 22 Jul 2009
0 answers
77 views
sorry for double posting...
please delete this thread
thanks
Christian Hanke
Top achievements
Rank 1
 asked on 22 Jul 2009
1 answer
111 views
Hi,

Very often if i debug the project, i get this foll. error and this stops and again we need to restart. How to overcome this????

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: 12030

Thanks,
ZR
Shinu
Top achievements
Rank 2
 answered on 22 Jul 2009
3 answers
95 views
When I enable scrolling , I get a straight line connecting the highest value on the y axis with the lowest. if I disable scrolling it goes away. Any help is appreciated
Giuseppe
Telerik team
 answered on 22 Jul 2009
3 answers
166 views
Hi,

My client has a weird request, but I have to find him a solution.

Data sent to a cell contains returns cariages ("\n") but it does not show properly in the cell, the whole text shows as a single long line.

What is the property to make the row expand its height to show the whole text with all the return cariages interpreted correctly?? 

I know its ugly, but thats what is needed at the moment.

P.S. I did parse the text before sending it to the grid and replacing all the \n by  Environment.NewLine but to no avail.

Thank you
Daniel
Telerik team
 answered on 22 Jul 2009
2 answers
171 views
I need rounded corners for my dock. I am using skins web20 and hay skin. Any help is appreciated.

Thanks
Martin
Telerik team
 answered on 22 Jul 2009
0 answers
149 views

I use Master Content Page relation in my application

I have My Menus (RadPanelBar a telerik Control) in my Master Page. On Click of Menu item in master page i do couple of mandatory process that are used in the page to be navigated.

scenario :

1.) I'm in a page say Accounts.aspx (which is a content page inside a master)
2.) I click on Finance menu item (Which is located in Master page)
3.) Page Load of Accounts gets fired immediately which is unnecessary to the page i navigate.
4.) Is there any way to avoid this Accounts.aspx page load and fire the menu item click event located in master page.

If i come to know that which menu item i have clicked before the page load of Accounts i will be able to avoid that unnecessary method execution in that page load. So that i will be able to avoid the seconds consumed for unncessary pageload method execution. And eventually navigate to the desired page.

This is something playing with Asp.net Lifecycle.


If i use hyper link in RadPanelItem and use PostBackUrl Property to it . can i resolve the issue. But RadPanelItem by default does't have the PostBackUrl property .

Kindly advice...
Computer Surgeon
Top achievements
Rank 1
 asked on 22 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?