Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
106 views

Hi,

I set the dropdownlist width of Page size in RadDataPage which is 46.  It gains wider on mobile platform web browser.

Please check the following www.foundsuppliers.com, on home page, select "Technology" and then search. 

Regards,

Duy
Viktor Tachev
Telerik team
 answered on 16 Apr 2014
1 answer
142 views
i am using hierarchy rad grid. In radgrid_itemcreated event i am checking if the griddata item is in the parent grid or in the child grid. How to i get the row index of parent grid in a child grid ?

I have hierarchy rad grid and checkboxes associated with each grid data row. if i select the top grid all child grid rows should be selected. if i select middle grid then the last grid rows should be selected.if i deselect any row in the child grid the parent rows should also be deselected.

i have my code where if i select top grid all child rows are selected. how can i achieve the same with the middle grid in the hierarchy.



function CheckBoxPackage_OnClick(obj, index) {
var grid = $find("<%= RadGrid1.ClientID%>");
var MasterTable = grid.get_masterTableView();
var row = MasterTable.get_dataItems()[index];
var detailView1 = row.get_nestedViews()[0];
for (var i = 0; i < detailView1.get_dataItems().length; i++) {
var cbOrder = detailView1.get_dataItems()[i].findElement("CheckBoxOrder");
cbOrder.checked = obj.checked;
for (var j = 0; j < detailView1.get_dataItems()[i].get_nestedViews()[0].get_dataItems().length; j++) {
var checkBox3 = detailView1.get_dataItems()[i].get_nestedViews()[0].get_dataItems()[j].findElement("CheckBoxOrderLine");
checkBox3.checked = obj.checked;

}

}
document.getElementById("<%= btnAssignCodes.ClientID%>").disabled = false;
}

 In the above code if top checkbox in the 3 levels of grid is selected all child are selected but if 2nd level grid checkbox is selected then 3rd level grid rows are not selected. please suggest .

thanks



Maria Ilieva
Telerik team
 answered on 16 Apr 2014
2 answers
186 views
What I am trying to do is hide a textbox while my radgrid is in Edit mode, but when its in insert mode I want to show it.  I am using the radgrid_ItemDatabound event to try to mange this in isinEditMode.  but when I do this it hides it on insert or edit mode.  I want to just hide the textbox on Editmode. 

If (TypeOf e.Item Is GridEditableItem AndAlso e.Item.IsInEditMode) Then
            Dim editedItem As GridEditableItem = DirectCast(e.Item, GridEditableItem)
            Dim search As TextBox = CType(editedItem.FindControl("txtSearch"), TextBox)
 
            search.Visible = False
End If




















Kevin
Top achievements
Rank 1
 answered on 16 Apr 2014
1 answer
131 views
Hi
i have a grid and im exporting it to pdf. I wanted to know if pdf export support rtl orientation?
Shinu
Top achievements
Rank 2
 answered on 16 Apr 2014
1 answer
135 views
Hi guys,

At the moment I am using a RadGrid inside an UpdatePanel. However on row select of this grid, I always get a weird text on top of the Grid, but inside the Panel which is something like this :

29592|updatePanel|ctl00_cphMain_ctl00_cphMain_dgTestPanel|


Anyone encountered this issue before?

Thanks,
Bernard
Princy
Top achievements
Rank 2
 answered on 16 Apr 2014
1 answer
77 views
Hi,

How do I get back to ImageButton properties within the ItemCommand event? I need to change the ImageURL once I have done my other database calls.

Regards,

Henry Fourie
Jayesh Goyani
Top achievements
Rank 2
 answered on 16 Apr 2014
1 answer
84 views
Hi everyone,
I am trying to implement an upload form (sync/async) on SharePoint 2010 web site hosted on IIS 7. Both asp.net page and web.config are correctly configured and the web part runs with no error (I mean, the page loads, checkbox and select buttons work as expected).
However the uploading process on button click returns with the following message:

RadUpload Ajax callback error. Source url was not found:
Telerik.RadUploadProgressHandler.ashx?RadUrid=63d4f5ee-2777-4728-9467-bb7fbf5ca5e5
Did you register the RadUploadProgressHandler in web.config?

Is there something I miss? Is there some particular issue regarding IIS 7 and SharePoint?
I registered Telerik DLL (Telerik.web.ui) on web configuration file and the asp.net page includes the aforementioned DLLs.

Thanks in advance.
Regards

Giulio
Hristo Valyavicharski
Telerik team
 answered on 16 Apr 2014
2 answers
332 views
Hi,

How do I bind ImageURL for GridButtonColumn of type ImageButton? I have the image URL in a database but not sure how I would bind it. Any ideas?

Regards,

Henry Fourie
Henry
Top achievements
Rank 2
 answered on 16 Apr 2014
4 answers
165 views
Hi, All:

I have a solution in Visual Studio 2012 (compiled for .NET 4.0) that requires the Telerik RadScheduler and a few other RadControls (AutoCompleteBox, RadTreeView, RadTimePicker, and a few others). Because we have custom event handlers for these components, we must add references within our project to Telerik.Web.UI and Telerik.Web.UI.Skins.

This solution also requires reports created using the Microsoft Report Viewer. If we try to run the Report Wizard to generate the report template, a dialog box titled Microsoft Report Designer displays the message "Object reference not set to an instance of an object". To get around this, we have tried adding an RDLC file and then creating a Dataset that points to a business object that returns the report's collection of data. Unfortunately, this also does not work in that the business objects available within the project do not display in the Dataset drop-down within the Dataset Properties dialog accessed via Report Data for the RDLC file.

When I remove the above two references, these issues disappear, but break the code associated with the RadScheduler and other controls arlready mentioned.

Has anyone else experienced this issue? If so, please provide information about how you resolved, if you did resolve. Thanks in advance for any information you can provide.
Plamen
Telerik team
 answered on 16 Apr 2014
1 answer
266 views
When I export to excel the width is always set to 100%. This can be seen by exporting to excel and opening the file in notepad. For example, notice the 100% below:

<table rules="all" border="1" id="ctl05_grdBudget_ctl00" style="width:100%;table-layout:auto;empty-cells:show;">

Is there a way to prevent this? When I set the width in the NeedDataSource handler the grid displays on the page with the set width. However, this does not persist when exported to excel. I have tried setting the width prior to calling MasterTableView.ExportToExcel however this does not seem to make a difference as it is always 100% for the export.

From what I have seen, the only way around this is to set the width of each column which I do not want to do. I want to have the grid auto size when exported. If you edit the exported file and remove width:100% then open it in Excel, it will display the way I would like it to.

The reason I am asking is because the columns are too wide to fit on a single page when you go to print in Excel. Below is the code I am using if it is of any help.

    <%--Button to perform the export--%>
    <asp:LinkButton runat="server" ID="lnkExport" Text="Export"></asp:LinkButton>
 
    <%--The grid itseld--%>
    <telerik:RadGrid ID="grdTest" runat="server">
        <MasterTableView AutoGenerateColumns="false">
            <Columns>
                <telerik:GridBoundColumn SortExpression="Name" HeaderText="Supervisor" DataField="Name" />
                <telerik:GridBoundColumn SortExpression="Unconfirmed" HeaderText="Unconfirmed" DataField="Unconfirmed" />
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>
 
Private Sub grdTest_NeedDataSource(sender As Object, e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles grdTest.NeedDataSource
    Me.grdTest.DataSource = New List(Of Object) From {New With {.Name = "Name 1", .Unconfirmed = 5},
                                                      New With {.Name = "Name 2", .Unconfirmed = 3}}
 
    'manually setting the width, this displays as it should on the page
    Me.grdTest.Width = Unit.Pixel(500)
End Sub
 
Private Sub lnkExport_Click(sender As Object, e As EventArgs) Handles lnkExport.Click
    Me.grdTest.MasterTableView.ExportToExcel()
End Sub

Daniel
Telerik team
 answered on 16 Apr 2014
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?