Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
111 views

Hello all,

I have one radgrid whose heigh is changed according to user machine resolution, this is done by invoking

<ClientEvents OnGridCreated="onGridCreated" /> 

Height is working properly, however when a row is selected, header row gives the appearance of moving by increasing and decreasing its width.

This is how columns are defined:

 <telerik:GridBoundColumn   
                                UniqueName="Subject"   
                                SortExpression="Subject" HeaderText="Subject" DataField="Subject" ItemStyle-Width="33%">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn   
                                UniqueName="EntityName"   
                                SortExpression="Displayname" HeaderText="Entity" DataField="Displayname" ItemStyle-Width="14%">  
                        </telerik:GridBoundColumn> 

able on which this grid is inserted has this style: 
style

 

="table-layout:fixed;"

 

and this is the javascript function:

 function onGridCreated(sender, args) {  
 
 
            try {  
                var scrollArea = sender.GridDataDiv;  
                var gridHeader = sender.GridHeaderDiv;  
                var ostage;  
                var vpaging;  
                var vmenu;  
                vpaging = 0;  
                vmenu = 20;  
 
                if (document.getElementById("ucPagingList_divPaginacion") != null)  
                    vpaging = 22;  
 
                if (scrollArea != null && gridHeader != null) {  
                    if (parent.document.getElementById("stage") != null) {  
                        ostage = parent.document.getElementById("stage").clientHeight;  
                        scrollArea.style.height = ostage - gridHeader.clientHeight - 25 - vpaging - vmenu  + "px";  
                    }  
                    else {  
                        scrollArea.style.height = screen.availHeight - gridHeader.clientHeight - vpaging - vmenu  + "px";  
                    }  
                }  
            }  
            catch (err) {  
            }  
 
        } 

any clue ?, tried a lot of possible actions with no result  ... :(

 

 

 
Thanks in advance


Dimo
Telerik team
 answered on 20 Apr 2010
1 answer
49 views
Hi,

I'm using a grid to both display records and allow users to edit them.  I'm using the Black skin.  When a user is viewing the grid the black background extends pretty wide but the individual records visually stop 1/3 of the way out.  And when you click on edit the area where the record is displayed is not nearly wide enough.  If everything would go out as wide as the black area on the grid it would look really good.  As it is the alternating backround for each record looks goofy when it stops 1/3 of the way across the black grid area and you can't even see the update/cancel buttons when you go to edit.  I also noticed that the add and refresh grid graphic doesn't display - the links are there and there's a gray box where the graphic should be but that's it.  Thought I'd sneak that one in there, too.

Thanx!

Eric
Dimo
Telerik team
 answered on 20 Apr 2010
1 answer
136 views
Hi,
 I am using radconfirm to put up a confirmation dialog. But it does not appear as a modal window in Internet Explorer. I am able to click the controls on the window behind the radconfirm dialog. The modal attribute in RadWindowManager is set to True.
 In Firefox it appears as a modal window.

Could you please let me know if any setting has to be made so that radconfirm appears modal in IE.

Thanks
Satyaprakash J


Georgi Tunev
Telerik team
 answered on 20 Apr 2010
1 answer
121 views
Greetings,
    When the following code is used to open a RadWindow, the window is not modal.  How can this be done?

<

 

input type="image" id="LoginButton" src="../../Content/Images/login.jpg" onclick="radopen('<%= Url.Action("Login", "Account") %>', 'RadWindow1'); return false;" />

Thanks in advance,
Eugene

 

Georgi Tunev
Telerik team
 answered on 20 Apr 2010
1 answer
295 views
Typically I use a Dataset object and store a table in Session for RadGrid's datasource.  I have been using Linq To Sql lately but I cannot figure out how to  use Linq for the datasourse in Session for the RadGrid....for example, how would I convert the following code to using Linq?

    Protected Sub radGridExperts_NeedDataSource(ByVal source As ObjectByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles radGridExperts.NeedDataSource  
 
        If Not IsNothing(Session("Experts")) Then 
 
            radGridExperts.DataSource = CType(Session("Experts"), Case_Inquiry.Case_ExpertsDataTable)  
 
        Else 
 
            'do not fill anything, but create blank datasource  
            Dim dt As New Case_Inquiry.Case_ExpertsDataTable  
            Session("Experts") = dt  
            radGridExperts.DataSource = dt  
 
        End If 
 
    End Sub 

To make it simple, lets assume this is the linq Query.

Dim query = From c in db.Case_Experts _
        Select c.Id, c.Name

Also assume that I want to do updates/inserts/deletes to the data.

Appreciate any help, thank you.

Coty
Yavor
Telerik team
 answered on 20 Apr 2010
1 answer
95 views
Hi:
  In my current project, several appointments,single or recurring, need to be showed in the scheduler. When a recurring appointment is clicked, a confirm dialog will be showed. The title for it is "editing a recurring appointment". There are 2 radiobuttons on it, "edit the only occurrence" and "edit the series". It is good enough. However, i need to custimize the default text for the aforementioned ones. Can anyone inform me the potential solution?
Thanks.
Peter
Telerik team
 answered on 20 Apr 2010
1 answer
81 views
so the posts that are not answered by telerik admins (or cannot be answered) cannot be accessed ? i got server error every time i'm trying to access it, while other topics are fine, except those that are not answered !!!!
Daniel
Telerik team
 answered on 20 Apr 2010
1 answer
56 views
In other words: Is there a way to mark the calendar by default as completely unavailable and then specify just time periods where the scheduler is available? So, if a person's day starts at 9:00 AM and ends at 5:00 PM, but they're only available from 3:00 PM to 4 PM, is there a way to mark 9 AM - 3 PM as taken and 4 PM - 5 PM as taken without having to specifically create appointments for those intervals?
Peter
Telerik team
 answered on 20 Apr 2010
1 answer
84 views
Hi

I have a issue in tooltip

I used this code in both ItemDataCreated and ItemDatabound events
if(e.Item is GridDataItem)  
{  
   foreach(TableCell cell in e.Item.Cells)  
   {  
       cell.ToolTip = cell.Text;  
   }  

always cell.Text  is empty or &nbsp all the column in my grid is Template Column

regards
Vairamuthu



Princy
Top achievements
Rank 2
 answered on 20 Apr 2010
2 answers
1.2K+ views
I need to get the url of the parent window in my radwindow codebehind.

I tried this in the codebehind of the RadWindow:
string test = HttpContext.Current.Request.Url.ToString(); 

but ofcourse this gives med the url of the RadWindow itself. How do I get the url of the parent window?

Thnx



Lars Meyer
Top achievements
Rank 2
 answered on 20 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?