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

I have a RadSlidingPane that has a top and a bottom RadPane.  The top one has 2 buttons and the bottom one has a user control which contains only a treeview.

        <telerik:RadSplitter ID="RadSplitter1" runat="server" Orientation="Vertical" width="100%" Height="100%">
             
            <telerik:RadPane ID="LeftPane" runat="server" Width="22px" Height="500px" Scrolling="None" >
                <telerik:RadSlidingZone ID="RadSlidingZone1" runat="server" Height="100%" Width="22px">
                    <telerik:RadSlidingPane ID="LeadSearchSlidePane" Title="Search Criteria" runat="server" width="150px">
                        <uc1:LeadSearchCriteria runat="server" ID="LeadSearchCriteria" />
                    </telerik:RadSlidingPane>
 
                    <telerik:RadSlidingPane ID="TreeListSlidePane" Title="Tree View" runat="server" Scrolling="None"  OnClientExpanded="ResizeTreeViewControl">
                        <telerik:RadSplitter runat="server" ID="RadTreeSplitterTop" Orientation="Horizontal" >
                        <telerik:RadPane runat="server" ID="RadTreePaneTop" Height="25px">
                            <telerik:RadButton ID="RadButton1" runat="server" Text="Apply"></telerik:RadButton>
                            <telerik:RadButton ID="RadButton2" runat="server" Text="Cancel"></telerik:RadButton>
                        </telerik:RadPane>
                        <telerik:RadPane runat="server" ID="RadTreePaneBottom" Width="350px" >
                            <uc2:LeadSearchTreeView runat="server" ID="LeadSearchTreeView" />
                        </telerik:RadPane>
                        </telerik:RadSplitter>
                    </telerik:RadSlidingPane>
 
                </telerik:RadSlidingZone>
            </telerik:RadPane>
 
... OMITTING THE REST OF THE SPLITTER AND RADPANE SETTING...


As you can see from the attached screen shot, the RadPane doesn't resize when the RadPane expanded.  It will resize when the RadPane is docked.  I looked at the page source and I could see my user control being wrapped with <div> tags that set the width to 22px.  I tried to resize it during OnClientExpanding/OnClientExpanded, but I couldn't make it work.  Could you show me the correct way of resizing the RadPane?

Javascript :
function ResizeTreeViewControl(sender, eventArgs) {
    var splitter = $find("<%= RadTreeSplitterTop.ClientID %>");
    var pane = splitter.getPaneById("<%= RadTreePaneBottom.ClientID %>");
    pane.resize(200);
 }


Thank you,

Helen


Vessy
Telerik team
 answered on 25 Apr 2014
9 answers
419 views
I have a RadGrid that I need to put hyperlinks on the dollar value in a column of the RadGrid that will link to more details and I also need that column to aggregate the sum of each of those dollar amount and put it in the group footer for each group.  Neither the GridHyperLinkColumn or GridTemplateColumn have the Aggregate property like the GridBoundColumn. 

How would I be able to aggregate the values of a GridHyperLinkColumn or GridTemplateColumn so there's a total in the group footer?
Maria Ilieva
Telerik team
 answered on 25 Apr 2014
15 answers
235 views
Morning All,

I am using a RadTreeList with its height set to 100%, which is working absolutely fine.

Whenever I try and add UseStaticHeaders=true the height shrinks to a very small height and I can only see about 4 records with the rest scrolling.

Am I missing something? I tried no ScrollHeight and a ScrollHeight of 100% and it was exactly the same. I also tried putting the treelist inside a div set to 100% and that didn't work either.

Regards, Paul.
Jon
Top achievements
Rank 1
 answered on 25 Apr 2014
2 answers
226 views
Hi. I have a rad grid with a number of columns, including two date columns. I am using an auto generated pop up form for editing data. On the edit form I would like to make it so that when the user sets a date in the first date field, if the second field is blank the value of the second field is set to one year after the date in the first field. I have tried to add client side and server side code to achieve this but am having no luck getting the right combination of event handlers and control references. Any help would be really appreciated.
Sean
Top achievements
Rank 1
 answered on 25 Apr 2014
3 answers
185 views
We try to follow the demo example in http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/batch-editing/defaultcs.aspx and found out that textbox required filed validation with ColumnValidationSettings does not work for ProductName for new rows.

Is that expected behaviour? Any workarounds?
Konstantin Dikov
Telerik team
 answered on 25 Apr 2014
2 answers
233 views
I have a grid with a number of columns with radcombobox filter templates. I want to be able to select a filter on a column (eg Company) and then select a filter on another column (eg Part Type) and have the filter expression combine so I could see part types for a particular company only or if further filters are selected then have them added to the filter clause.

I am able to do this with one combo, but not combine the expressions.

protected void cboFilterCompany_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
    RadComboBox combo = sender as RadComboBox;
    ViewState["CompanyFilterVal"] = e.Value; //to persist value
 
    GridColumn column = grdParts.MasterTableView.GetColumnSafe("Company");
 
    //if (grdParts.MasterTableView.FilterExpression != "")
    //{
    //    //append?
    //}
 
    grdParts.MasterTableView.FilterExpression = "([Company] = '" + e.Text + "')";
    column.CurrentFilterFunction = GridKnownFunction.EqualTo;
    column.CurrentFilterValue = e.Text;
 
    grdParts.MasterTableView.Rebind();
}


Marc
Top achievements
Rank 1
 answered on 25 Apr 2014
1 answer
258 views
I have a Radgrid. On one of my sites (asp.net 2.0) i have telerik 3.5 bin files. This new site is in 4.5. So I intend to use the latest 4.5 telerik files. I have taken the same source code for one of the pages on my 2.0 and used it here in 4.5. I am unable to display the grid properly.
It is appearing weirdly. I am guessing there are some web.config changes I am missing. Also, I have a whole bunch of "3.5"s assemblies,handlers and httpHandlers. Should I change them to 4.5s? 
i am attaching 3 images. The names of images are self descriptive. Please find them and let me know if you need some info from me.
Thanks
Viktor Tachev
Telerik team
 answered on 25 Apr 2014
1 answer
232 views
Need selected a one week with a button
Shinu
Top achievements
Rank 2
 answered on 25 Apr 2014
1 answer
166 views
Hi All,

I have a radgrid in my web application in which I disable the grid due to some conditions in code, but when the items(rows) exceed the height of grid I am not able to see the content as scrolling is also disabled due to grid being disabled.

I have tried the below code so far in order to enable the RadGrid but set the columns to readonly.

RGSellingEntity.Enabled = true;
                bool ReadOnly = true;
                foreach (GridColumn col in RGSellingEntity.MasterTableView.Columns)
                {
                    if (col.ColumnType == "GridBoundColumn")
                    {
                        col
                        GridBoundColumn boundCol = (GridBoundColumn)col;
                        boundCol.ReadOnly = ReadOnly;
                    }
                    if (col.ColumnType == "GridTemplateColumn")
                    {
                        GridTemplateColumn tempCol = (GridTemplateColumn)col;
                        tempCol.ReadOnly = ReadOnly;
                    }
                }

but it did not work, the thing I want is that the radgrid should be in disabled except :the scrollbars(vertical) so that user can scroll through the items/rows in radgrid.
I need to do this code behind based on some conditions.

Can someone please help ASAP?

Thanks in advance!

regards,
Peeyush Pandey

Princy
Top achievements
Rank 2
 answered on 25 Apr 2014
1 answer
209 views
I have a stiuation where becuase of how I load the page I need to stick in a fillGrid as boolean = false at the top of the load page to keep the NeedDataSource from firing.  I then turn it to true when it can fire and rebind the grid.  Everything works great up until I need to use the insert of the radgrid and then it bombs out.

  Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
        If Not IsPostBack Then
            Dim rspId As String = Request.QueryString("RSP")
 
            If rspId = String.Empty Then
                'Send to another page
            Else
                Dim userlogon As String = Split(Current.User.Identity.Name, "\")(1)
                HFUserId.Value = GetPersId(userlogon)
                HFRecruitId.Value = rspId
 
                LoadRSP(rspId)
                fillGridNotes = True
            End If
        End If
    End Sub
 
 
  Protected Sub myRadNotes_NeedDataSource(sender As Object, e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles myRadNotes.NeedDataSource
        'Load the Notes Grid
        If fillGridNotes = True Then
            sql = "Select intRspNotesId, CONVERT(varchar(10), dtRSPNotesDateEntered, 111) dtNotes, strRSPNotesDesc, mn.strFullname + ' ' + ISNULL(' ' + strRank, '') LoggedBy from tblRSPNotes n LEFT JOIN MNNGPersonnel..tblMNNatPersonnel mn on " _
                & "mn.intPersonnelId = n.intLoggedBy where intRSPID in (Select intRSpId from tblRSp where intRecruitId = " & HFRecruitId.Value & ") Order by dtRSPNotesDateEntered DESC"
 
            myRadNotes.DataSource = getReader(sql)
        End If
    End Sub
 
 
 
Here is where I am having the problem though, becuase how can I set the boolean statement to true when posting back to do an insert statment on the radgrid.
 
Protected Sub myRadNotes_ItemCommand(sender As Object, e As Telerik.Web.UI.GridCommandEventArgs) Handles myRadNotes.ItemCommand
        If (e.CommandName = RadGrid.PerformInsertCommandName) Then
            fillGridNotes = True
            Dim editedItem As GridEditableItem = CType(e.Item, GridEditableItem)
            Dim notes As TextBox = DirectCast(editedItem.FindControl("txtNotes"), TextBox)
            Dim rspId As Integer = 16533
 
            sql = "Insert tblRSPNotes (intRSPId, dtRSpNotesDateEntered, strRSPNotesDesc, intLoggedBy) VALUES (" & rspId & ", '" & Date.Now & "', '" & sanitizeString(notes.Text) & "', " & HFUserId.Value & ")"
 
            insertUpdateDelete(sql)
 
            myRadNotes.Rebind()
        End If
    End Sub













































Princy
Top achievements
Rank 2
 answered on 25 Apr 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?