Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
293 views
I have a RadGrid which has a scrollbar on it, and also a Header Text on one column which is long enough to wrap onto two lines. This causes a strange display problem in the top right corner of the RadGrid, above the scroll bar. It appears that part of the radgrid header doesn't realise that it needs to resize. I've attached an image to illustrate this.

If I shorten the header text so that it doesn't wrap, then everything is fine.

I've created a small demo project that illustrates the problem, but I can't attach it here! (How can I do that?)

I'm using ASP.NET Ajax Q1 2010 / bin35 version.

Any idea how I can fix this?

John
Dimo
Telerik team
 answered on 29 Sep 2010
1 answer
68 views
Hello Telerik-Team,

just want to inform you that on IE8 the JavaScript function hideColumn sometimes hides multiple columns. This behavior is browser specific!

Used version is: 2010.2.713.35

Regards,
Michael
Veli
Telerik team
 answered on 29 Sep 2010
1 answer
92 views
I have a thread that is calling an MSMQ queue. 
a) In the thread, I read in the xml into a dataset. 
b) in the thread, I loop through the dataset rows to identify if a value == or != some business rule
c) in the thread, based on the results of (b), I need to update a radGrid's background.

What is the best approach to auto-refresh the grid when MSMQ processes a messaging coming in?  Code examples in either VB.NET or C# would be extremely helpful.

Thanks,
/DZ
Veli
Telerik team
 answered on 29 Sep 2010
1 answer
115 views
I was wondering if there is anywhere to set the image size for a menu item? I am using the preset image style WebBlue, but I would like bigger images (32x32 instead of 16x16)!

Peter
Telerik team
 answered on 29 Sep 2010
6 answers
166 views
Hi,

I'm trying to pre-select a tab in a TabStrip control from the server-side using the following code snippet in C#:

RadTabStripReportParams.FindTabByText("Standard").Selected = true;

The problem is when this is done, the "Standard" tab gets selected as required, but it's contents (i.e. the controls within it) are not updated (i.e. the controls from the previous tab are still displayed). This only happens when attempting the functionality server-side. The client-side options work as intended when coded as follows:

var tabStandard = tabsParams.findTabByText("Standard");
tabStandard.select();

Am I missing something? Can anyone help me shed some light on why the server-side option doesn't work as intended, or let me know if there are any work-arounds?
Peter
Telerik team
 answered on 29 Sep 2010
1 answer
93 views

Hi,

How can I set the filename (arguments) that gets sent to the client callback from the ImageEditor?

i.e. from :  $find('<%= ImageEditor1.ClientID %>').open('ImageEditor', args, callbackFunction);

On the server side, i couldnt find a SetFileName method...

I tried returning the filename from the StoreBitmap method (just for fun), but it didnt work.

Can you guys please help me on this? thanks in advance.

Dobromir
Telerik team
 answered on 29 Sep 2010
3 answers
124 views
Hi

What I am try doing might not be possible or sensible.

I am building a dynamic grid page to edit / insert/ delete data from an unknown tablename with an unknown number of fields (except at render time).

I know that all of my field are one of two types, either a numeric or a string which is often entered multiple times.

I build the columns / insert / edit SQL dynamically and I have the basics working.
I want my "string" columns to appear in the insert / edit (inline) form as a combo box to allow them to type customer text or select from a list of existing items (populated as a distinct list of all previous data entered).

Problem 1: I have changed the BoundColumn to a griddropdown, but now on view mode of the grid the field values are empty (were fine with boundcolumn) but the combo appears on clicking insert.

Problem 2: Can I allow customtext in a griddropdowncolumn? if so how do I do this.

Problem 3: I can't work out how to populate the combo with the preset values. Is it possible to bind to a datareader in code or is my approach wrong?

Below is my code running in page_load. "Case 6" is the problem area. case 6 means that the column is a string and should use the dropdown.

Thanks in advance.

Johnathan

' build grid
Dim FieldListList As SqlDataReader = kpiSQL.getReader("select * from dbo.kpi_QuantityColumn where tableid=" & tableid.ToString)
While FieldListList.Read
    Select Case FieldListList("fielddataType")
        Case 6 ' is a string column
            Dim boundColumn As GridDropDownColumn
            boundColumn = New GridDropDownColumn()
            boundColumn.EmptyListItemText = "--type or choose--"
            ' allowcustomtext???
            boundColumn.UniqueName = FieldListList("FieldName")
            boundColumn.DataField = FieldListList("FieldName")
            boundColumn.DropDownControlType = GridDropDownColumnControlType.RadComboBox
            boundColumn.HeaderText = FieldListList("FieldName")
            boundColumn.HeaderStyle.Wrap = False
            Dim presetReader As SqlDataReader = kpiSQL.getReader("SELECT DISTINCT " & FieldListList("FieldName") & " FROM " & thisTable.dbTableName)
            ' ???? how do I bind the combo to presetReader? 
            RadGrid1.MasterTableView.Columns.Add(boundColumn)
        
        Case Else ' is a numeric column
            Dim boundColumn As GridNumericColumn
            boundColumn = New GridNumericColumn()
            RadGrid1.MasterTableView.Columns.Add(boundColumn)
            boundColumn.UniqueName = FieldListList("FieldName")
            boundColumn.DataField = FieldListList("FieldName")
            Dim prefix As String = ""
            If Not IsDBNull(FieldListList("prefix")) And FieldListList("FieldName") <> "" Then
                prefix = " (" & FieldListList("prefix") & ")"
            End If
            boundColumn.HeaderText = FieldListList("FieldName") + prefix
            boundColumn.HeaderStyle.Wrap = False
            boundColumn.DataFormatString = "{0:N" & FieldListList("NumberOfDps") & "}"
    End Select
End While
Mira
Telerik team
 answered on 29 Sep 2010
1 answer
93 views
Hi,

I have a grid with dynamic number of columns.
the grid can have anything between 3 to 20 columns for export.

The issue that I am having is if i export the grid with a fixed pagewidth the export does not look good.
In portrait mode the grid cuts off the columns. In lanscape mode if there's a fixed width then if the number of columns are less there's a big white space in the end.

Can the export size dynamicallt based on the number of columns?
Daniel
Telerik team
 answered on 29 Sep 2010
7 answers
234 views
Hello, guys.
I'm thinking about the one thing.
During development of our aspx page it acquires controls which must be updated in this or that situation. And there are cases when one so to say "central" control ajaxifies many other controls. But those controls haven't to be updated each time the "central" control changes it's properties. I mean that some of them have to be updated in this particular case while others should be updated in other cases.
What we have with AjaxManager is that we setting those "dependant" controls as update targets and "central" control updates them all each time it changes itself. As some of those controls could be very complex themselves we're wasting noticable amount of time for nothing but redrawing of what is already drew inside the browser's window.
So I wonder if there any way to make AjaxManager more flexible and prevent updating some controls when situation does not suppose that those "dependable" controls will be changed in any manner?

With respect, Sergey.
Veli
Telerik team
 answered on 29 Sep 2010
1 answer
201 views
Over the last week I have researched ways to use client-side binding with the radGrid.

I understand that I can use declarative binding and write a single pagemethod/web service that will bring back both the data and the count and the declaritive code will handle binding both sets of data.  Is there a way to do the same when calling a page method  or web service directly from javascript?

I am aware of the methods for binding the grid and setting the virtualItemCount, but I believe I would have to have to parse the json result set to get the count information as these are 2 seperate functions.  Is there a way to pass the json result set to the grid and it knowing how to bind both the data and the count information?

I ask this because I'd like to call a single WCF service using only jQuery.  I'd like to bind the resulting data + count to the grid.  Am I asking for too much?

thanks,
Iana Tsolova
Telerik team
 answered on 29 Sep 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?