Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
302 views
At runtime, when a user drag and drops any column they wish to group by, is there a way to show on the group header row, next to the label that says the column name, the count of items or rows that the group contains?    I see in the examples how to use aggregation to show counts in the group header using declarative and programmatic methods but they all seem to apply to grouping that was declaratively or programmatically defined, not grouping defined by the user at runtime in an ad hoc manner.
MARK
Top achievements
Rank 1
 answered on 09 Jan 2012
3 answers
151 views
So I have a rad grid where I delete a file using the delete command. It works fine on my test site but when I put it up on our live server and click delete, I just get an object reference not set error. I can't figure out why and have even commented out enough of my code as I was just trying to write the file name being passed in. Do you have any idea why this would work fine on the test site, but then break on the live site? I can provide a full site backup if you want, but here is the relevant code.

asp
<telerik:RadGrid ID="drawingsGrid" runat="server" AllowPaging="True" GridLines="None"
                        DataSourceID="drawingsSqlDataSource" AutoGenerateColumns="False"
                    Skin="Telerik">
                        <MasterTableView DataKeyNames="drawingId,productId,pathToPDF"
                            AllowAutomaticDeletes="True" DataSourceID="drawingsSqlDataSource">
                            <RowIndicatorColumn
                                Visible="False">
                                <HeaderStyle Width="20px"></HeaderStyle>
                            </RowIndicatorColumn>
                            <ExpandCollapseColumn
                                Visible="False" Resizable="False">
                                <HeaderStyle Width="20px"></HeaderStyle>
                            </ExpandCollapseColumn>
                            <Columns>
                                <telerik:GridBoundColumn DataField="Name" HeaderText="Name" SortExpression="Name" UniqueName="Name">
                                    <HeaderStyle ForeColor="#336600"
                                        Height="23px" Width="200px" />
                                </telerik:GridBoundColumn>
                                <telerik:GridButtonColumn ConfirmText="Are you sure you want to delete this drawing? "
                                    CommandName="Delete"
                                    Text="Delete" UniqueName="columnDelete">
                                    <HeaderStyle ForeColor="White"
                                        Height="23px" Width="50px" />
                                    <ItemStyle BorderWidth="1px" />
                                </telerik:GridButtonColumn>
                            </Columns>
                            <EditFormSettings>
                                <PopUpSettings ScrollBars="None" Width="200px" Height="200px"/>
                            </EditFormSettings>
                        </MasterTableView>
                        <HeaderStyle ForeColor="#336600" />
                    </telerik:RadGrid>



Edit* I should mention that I have verified the sp getDrawing is returning the same items on my dev site as the live site and those files do exist.



vb
Sub On_Record_Deleted(ByVal source As Object, ByVal e As SqlDataSourceStatusEventArgs)
      If (e.AffectedRows > 0) Then
 
          Response.Write(pdfFileToDelete)
 
          'If Not String.IsNullOrEmpty(pdfFileToDelete) Then
          '    Try
          '        File.Delete(Server.MapPath(pdfFileToDelete))
          '    Catch ex As Exception
          '        msgLabel.Text = ex.ToString
 
          '    End Try
          'End If
      End If
  End Sub
Mira
Telerik team
 answered on 09 Jan 2012
4 answers
132 views
the space of EditForms generates the VirtualScrollPaging 
The editForm close.
 
Lasly
Top achievements
Rank 1
 answered on 09 Jan 2012
3 answers
284 views
i have a treeview. I'd like to hide the expand/collapse image on the root node. I tried the following:

function pageLoad()  
        {
            var treeView = $find("<%=TreeView1.ClientID%>");  
            var node = treeView.get_nodes().getNode(0);  
            var toggleElement = node.get_toggleElement();  
            if (toggleElement)  
            toggleElement.style.display = "none";
        }


and this works, however the tree nodes still have a large amount of space to their left where the expand/collpase image would have been. Is there any way to get the root node to left justify against the left edge of the treeview in this case?
Kate
Telerik team
 answered on 09 Jan 2012
5 answers
143 views
I have this idea for a grid that I'd like to configure. Here goes:

1. I'd like to be able to click one cell in each column. Records would then be filtered according to the value in the clicked cell.

2. The clicked cell would change colour.

2. You must be able to filter several columns simultaneously.

3. Clicking an already clicked cell removes that filter.

I have nada idea as to how to get started. I have the grid in place, displaying all the relevant data. Now what?

Any ideas/pointers/ready-made-solutions out there? :-)

-JJ, Denmark
Radoslav
Telerik team
 answered on 09 Jan 2012
0 answers
91 views

Hi,

On my page, if the user checks a Checkbox, a RadGrid will programmatically be added to the page containing results from the database and a textbox for each row for them to input information.

They then click the button (outside the grid on the main page) to postback the information from the grid.

I tried to use .FindControl("myRadGrid") to get the grid on the click event but it is not there, due to the page life cycle. So I've tried to re-add the grid on Page_Init instead, but I can't do this because I would need to rebind the grid and would therefore lose the users inputs.

Can you help please?

Corina
Top achievements
Rank 1
 asked on 09 Jan 2012
3 answers
145 views
I've changed the
 <system.web>
      <httpRuntime maxRequestLength="102400" executionTimeout="3600" />
</system.web>
and the
<system.webserver>
<security >
    <requestFiltering>
        <requestLimits maxAllowedContentLength="1024000000" />
    </requestFiltering>
</security>
</system.webserver>
The progress bar will appear to upload but upon completion I just see the
file select and submit button again instead of the controls upload control
being hidden which is what is supposed to happen.
Dimitar Terziev
Telerik team
 answered on 09 Jan 2012
6 answers
276 views
Hi,

I have a RadGrid control that I am exporting to CSV.  Everything works great, except I cannot figure out a way to make an AjaxLoadingPanel appear while waiting for the export process to complete.  In other words, there is a few seconds delay after hitting 'export' and the file download dialog box appearing - during this delay there is no visual feedback to the user.

Is this even possible?

Thanks!
Alan T
Top achievements
Rank 1
 answered on 09 Jan 2012
1 answer
82 views
Hi all,
I have a problem with RADGRID below:
in ASP.NET PAge my code here:

<telerik:GridTemplateColumn UniqueName="lblConsigneMission" HeaderText="[ConsigneMission]">
                        <ItemTemplate>
                            <asp:ImageButton runat="server" ID="iconConsigneMissionPict" AlternateText="iconConsigneMissionPict" CommandName="SaveAttachedFile" CausesValidation="false" />
                            <asp:ImageButton runat="server" ID="iconDocRondePict" AlternateText="iconDocRondePict" CommandName="SaveAttachedFile" CausesValidation="false" />
                        </ItemTemplate>
                        </telerik:GridTemplateColumn>                   
                    </Columns>
                </MasterTableView>
                <ClientSettings AllowDragToGroup="True">
                    <Selecting AllowRowSelect="True"></Selecting>
                    <Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="275px"></Scrolling>
                    <ClientMessages DragToGroupOrReorder="Drag to group" />
                </ClientSettings>
            </telerik:RadGrid>


In Master Page I have done "disable" telerik Ajax of 2 controls: iconConsigneMissionPict and iconDocRondePict 
<script type="text/javascript">
            function mngRequestStarted(ajaxManager, eventArgs) {
                if (eventArgs.get_eventTarget().indexOf("iBtnJournalPageSaveAttachedFile") != -1                   
                    || eventArgs.get_eventTarget().indexOf("iconConsigneMissionPict") != -1
                    || eventArgs.get_eventTarget().indexOf("iconDocRondePict") != -1                                                             
                    )                                     
                    eventArgs.set_enableAjax(false);
                centerLoadingPanel();
            }               
        </script>

When we click on one of 2 these controls=> it doesn't run (no action)

Could you help me to find the solution for this problem
Thanks alot.
Ky NGUYEN


Jayesh Goyani
Top achievements
Rank 2
 answered on 09 Jan 2012
1 answer
103 views
Hello,

I created some controls in Advanced Edit Template.And i want to pass data dynamically by click on Appointment.How i can find Controls Inside Advance Edit Template in Appointment click event

How i can bind data Dynamically to Advanced Edit Template

Thanks And Regards

N.Vishnu Vardhan reddy
Peter
Telerik team
 answered on 09 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?