Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
186 views
Hi,

I am using a grid with a button that opens a modal popup window. When I click the button the grid is overlayed, but not the entire screen - just the grid. Then when the popup opens the rest of the screen is overlayed.
How can I control the first overlay and make it overlay the entire screen, directly when the user clicks on the button?

Excerpt from my page:

 <telerik:GridEditCommandColumn UniqueName="actionsCommandColumn" EditText="Go" ButtonType="PushButton" HeaderStyle-CssClass="RadGridHeaderStyle">
                          <HeaderStyle Font-Bold="True" Width="9%" />
                        </telerik:GridEditCommandColumn>
                    </Columns>
                    <EditFormSettings EditFormType="WebUserControl" PopUpSettings-Modal="true" UserControlName="CustomControls\QuoteAndPolicyActions.ascx"
                        CaptionFormatString="Select an Action">
                        <EditColumn UniqueName="EditCommandColumn1" FilterControlAltText="Filter EditCommandColumn column"
                            Visible="false">
                        </EditColumn>
                    </EditFormSettings>


Thanks for your help,
Nicolas




Nicolas
Top achievements
Rank 1
 answered on 28 Sep 2011
2 answers
72 views
Hi Telerik,

RadEditor ToolProviderID has error on js with RadAjaxPanel when post-back (on FireFox 6, IE 9 and Chrome),
I used ToolProviderID follow demo: http://demos.telerik.com/aspnet-ajax/editor/examples/toolprovider/defaultcs.aspx.
Everthing ok, but when I add an AjaxPanel and post-back form, the error occurred, ToolBar cannot load with others editor below

I wrote an demo with that error, please download link below and check it,

http://www.mediafire.com/?5i0uincm6kwnd

Thanks


Dobromir
Telerik team
 answered on 28 Sep 2011
1 answer
107 views
I am currently looking at the following demo,

http://demos.telerik.com/aspnet-ajax/grid/examples/programming/hierarchy/defaultvb.aspx

Which show how to build a hierarchial grid programmaticaly.  The problem I have is that I wish to use a datatable populated from a stored procedure for the grids.  I have tried the following,

Private Sub Page_Init(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Init
    buildGrid()
End Sub
 
Sub buildGrid()
 
    Dim state As String = drp_state.SelectedValue
    If state = "" Then
        state = 0
    End If
 
    Dim dt As DataTable = myDataAccessClass.data1(param1, param2)
    Datasource = dt
    GridDataKeyNames = "ID"
    ' masterTableCreation builds and adds the columns, no issue with this.
    masterTableCreation()
 
    Dim dtSub As DataTable = myDataAccessClass.data1(param3)
    hierarchyTable(dtSub, "", "ID", "ID")
 
End Sub
 
 
Public Sub hierarchyTable(ByVal dt As DataTable, ByVal datakeys As String, ByVal masterKeyField As String, ByVal detailKeyField As String)
 
 
    Dim hierarchyTable As New GridTableView(RadGrid1)
    ' set the datasouce
    hierarchyTable.DataSource = dt
    hierarchyTable.Width = Unit.Percentage(100)
 
    Dim datakeysArray() As String
    If datakeys <> "" Then
        datakeysArray = datakeys.Split(",".ToArray())
        hierarchyTable.DataKeyNames = datakeysArray
    End If
 
    Dim relationFields As GridRelationFields = New GridRelationFields()
    relationFields.MasterKeyField = masterKeyField
    relationFields.DetailKeyField = detailKeyField
    hierarchyTable.ParentTableRelation.Add(relationFields)
    RadGrid1.MasterTableView.DetailTables.Add(hierarchyTable)
 
    'add columns
    Dim boundColumn As GridBoundColumn
 
    hierarchyTable.Columns.Clear()
 
    For i As Int32 = 0 To Datasource.Columns.Count - 1
        Dim column As DataColumn = Datasource.Columns(i)
 
        Dim colDataType As String = column.DataType.ToString().ToLower().Replace("system.", "")
 
        boundColumn = New GridBoundColumn
        hierarchyTable.Columns.Add(boundColumn)
 
        boundColumn.DataField = column.ColumnName
        boundColumn.HeaderText = column.ColumnName.Replace("_", " ").ToLower()
 
        boundColumn.DataFormatString = "<nobr>{0}</nobr>"
        boundColumn.ItemStyle.HorizontalAlign = HorizontalAlign.Left
 
    Next
 
End Sub



<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" AllowSorting="True" AllowPaging="True" PageSize="5" GridLines="None" ShowGroupPanel="True">
    <MasterTableView AllowMultiColumnSorting="True" GroupLoadMode="Server">
    </MasterTableView>
    <PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>
    <ClientSettings AllowDragToGroup="true" />
</telerik:RadGrid>


The grid will expand to show the child table, however with no data.  Any pointers would be much appreciated.
mabs
Top achievements
Rank 1
 answered on 28 Sep 2011
1 answer
46 views
Hi,

There is some performance issue when i try to create columns around 50 columns in radgrid. The columns are created dynamically.
There no issues with the backend database query, i check it.

Please let me know how can i tune up the performance if there around 50 columns in radgrid.   

Thanks
Petrofac
Pavlina
Telerik team
 answered on 28 Sep 2011
1 answer
64 views
Hello,

I have a quick question. I would like to know if it is possible to implement Column Filtering for Hierarchy Data using the NeedDataSource event and the Self-Referencing  method for generating the Hierarchy.

In the NeedDataSource event handler I have only this :

RadGrid1.DataSource = ClassLibrary1.Service.Getdata().Where(x => x.Monthdate == DateTime.Parse("2010-12-01 00:00:00.000"));


This returns a subset of my data and the Grid is displayed fine, with working sorting and paging and hierarchy browsing.

The problem occurs on Filtering, where a AsyncPostbackError exception event  is raised  with this information for the inner exception property :

        Message    "Object reference not set to an instance of an object."
        Stack Trace :
              
at Telerik.Web.UI.GridColumn.set_CurrentFilterValue(String value)
at Telerik.Web.UI.GridColumn.set_CurrentFilterValue(String value)
at Telerik.Web.UI.RadGrid.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfte

I read that Hierarchy Filtering is not possible with the basic data binding method calling DataBind(). I am not using that method, so If you could tell me if the approach used is a correct one or the errors I'm getting are triggered by some other problem?


Thanks in Advance.

Tsvetina
Telerik team
 answered on 28 Sep 2011
2 answers
62 views
Here is my problem:

I have RadWindow with NavigateUrl
function ShowDriverWindow(sender, eventArgs) {
              var hack = "499628";
               var url = "DriverInfo.aspx?hack=" + hack;
               var oWnd = radopen(url, "RadWindowDriverInfo");
               eventArgs.set_cancel(true);
           }

I pass the parameter "hack" to the navigate page.
On this page i have LINQ querry to get info about this driver in Page_Load().
var driverInfo = (from dr in db.T_DRIVERs
                                where dr.HACK_ID == int.Parse(hackId)
                                 select new {
                                 ...
                                 dr.MEDALLION_ID,
                                 ...
                           }).Single();

then I set the Selected Value in RadComboBox according to the LINQ querry
RadComboBoxSteadyMedl.SelectedValue =
                        driverInfo.MEDALLION_ID.ToString();

And now my problems start. I have "Save" button. When i change value in RadComboBox and click "Save" i still have predefined value. So
no changes are done.

If I Don't set the driver's medallion in Page_Load() everything works fine! after selecting new item in ComboBox I have new "selected value" in SaveButton_Click.

Any ideas??? 










Andrew
Top achievements
Rank 1
 answered on 28 Sep 2011
1 answer
62 views
Is int possible to connect Labels with pie piece with some line? If there is several smaller pieces it's hard to combine it in mind.
Evgenia
Telerik team
 answered on 28 Sep 2011
0 answers
89 views
I'm working on the RadGrid batch update like the one shown in one of the demos. I need to disable textbox in a template column of the RadGrid based on the condition.

If the column was a BoundColumn I would use the following code in the Grid's PreRender event. But how to handle this with the batch update Grid and a TemplateColumn.

Private Sub RadGrid1_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadGrid1.PreRender
     Dim status As String = Request.QueryString(0)
     If status = "Future" Then
         For Each column As GridColumn In RadGrid1.Columns
             If (column.UniqueName = "Start_Dt") Then
                 CType(column, GridBoundColumn).ReadOnly = False
                 CType(column, GridBoundColumn).DataFormatString = "{0:D}"
                 Exit For
             End If
         Next
     Else
         For Each column As GridColumn In RadGrid1.Columns
             If (column.UniqueName = "BoundDate") Then
                 CType(column, GridBoundColumn).ReadOnly = True
                 CType(column, GridBoundColumn).DataFormatString = "{0:D}"
                 Exit For
             End If
         Next
     End If
 End Sub

Thank you!!
Neelima
Top achievements
Rank 1
 asked on 28 Sep 2011
3 answers
131 views
I've got a RadScheduler with a height set by Javascript.  I'd like to run some additional Javascript function (to maintain the height) when a user clicks to toggle the view between Day / Week / Month / Timeline.  Is there some client event that fires when these buttons are clicked, or some other way to maintain a height parameter that has been set on the client side?
Plamen
Telerik team
 answered on 28 Sep 2011
5 answers
139 views
Hello,

I would like to create a Menu in which, for each item, i would display an image above the text. Normally, the image is display to the left of the text.
How can i do to obtain the result i need?

Thank You.
Dimitar Terziev
Telerik team
 answered on 28 Sep 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?