Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
90 views
hi i set visible and hide the controls in the Javascript depend on hidden filed value
i call this function from AjaxManager OnRequestEnd working fine
in the RadWindow close time i postback the page by
form1.submit()
the form is postback and the event is called but the visibles not happening
how to solve this problem

Johnny
Top achievements
Rank 2
 answered on 24 Feb 2012
5 answers
326 views
Hello.

I am trying to set up the grid default filter, but i cannot. Your example is wrong.

Why?

I am binding the grid using the NeedDataSource in the same way as you are writing in Advanced Data-binding (using NeedDataSourceEvent).

I can read:

If you are binding the grid using the NeedDataSource event, you can set the initial filter in the NeedDataSource event handler and omit the call to the Rebind method. The code for setting the filter must still be placed inside an if statement that checks that Page.IsPostBack is False.

No, It cannot be done.

Reason?

Grid has no columns at this time. RadGrid1.MasterTableView.GetColumnSafe("") always returns null. (although datasource has already be assigned).

I also don't need to call  RadGrid1.MasterTableView.FilterExpression = "SQL expression" because my data has been already filtered. I am using SQL SERVER power to do that and I think that everybody must prefer server technology for this type of task.

So I must use PreRender event, but:

(!)

I must call this.RadGrid1.Rebind(); If I don't, the filter function is preselected, but filter value TextBox is empty !!!!

What does Rebind do really? MY grid has thousands of rows. Is it really needed to call rebind because of one value needs to be inserted in a TextBox? The filter function is preselected, so why TextBox is empty?

Thank you very much.

Tom


OfficeBooks Team
Top achievements
Rank 1
 answered on 24 Feb 2012
2 answers
461 views
Hi there,

Now i'm not sure if there's a solution for this particular problem.

Scenario; Client has a site(a) in which they want to embed sections from the site i'm developing, site(b).
To enable them to do so i'm providing them with some iframe markup to put into their CMS.

The problem being, that some of the pages they're embedding have radwindows in, and these RadWindows are wider than the size of the iframe the page is contained within.

Try try and resolve this i made the iframe larger than the actual content, and overlay some of their content on site(a), using a transparent background on the iframe. This allowed my RadWindow sufficient space.

However, what i had overlooked is if there's any content underneath the iframe, such as links etc, they're no longer accessible because the iframe is above them .

So i guess my question would be; is there a solution for this ? I guess what i need is the RadWindow to open independantly so its not restricted by the size of the iframe it's in. However, i also need it to be able to interact with the page at which it is called from (i use the closeandrebind event for radgrid/window).

Any suggestions welcome,

Alan
Alan T
Top achievements
Rank 1
 answered on 23 Feb 2012
12 answers
532 views

Is it possible to allow end user to upload multiple images using AsyncUploaded to the temporyfolder and display those temporary file images via RadBinaryImage (IE in a repeater or listview etc) allowing user to preview those images before submitting the images to the filesystem or database.

Note that the end user might upload one image at a time or mutiple images at once to the form and even remove images before finally hitting the submit button to move the previewed uploaded files from the temporary location to the filesystem or database.

If so how and is there an example somewhere?

Thanks

Glenn
Top achievements
Rank 1
 answered on 23 Feb 2012
1 answer
202 views
I have a radgrid that I need to be about 40 px wide. Is there anyway to change the width of the filter textbox? It's too big and pushes the filter button out anyways. See my attachment for a better explanation.
Casey
Top achievements
Rank 1
 answered on 23 Feb 2012
4 answers
410 views
I need to get the number of items being filtered in the drop down? Is this possible?

Duncan
Duncan
Top achievements
Rank 2
 answered on 23 Feb 2012
1 answer
84 views
I have a simple radgrid that is attached to a SQL database table whose scheme I am not able to alter. There are a number of fields that do not allow NULLS in the database but for my purposes I can allow NULLS for certain fields.
My question is, what is the best way to handle this? there are probably a dozen fields in this grid and the majority are simply text boxes. My first thought was that when the update command is fired to loop through all of the controls to check if they are NULL and if they are to simply make them pass a space. My problem is I am not sure how to do this easily. 
Can anyone think of a better way to do this? 
Thank you 
Adam 
Elliott
Top achievements
Rank 2
 answered on 23 Feb 2012
7 answers
259 views
Hi,

I using a DataGrid to display some data and want to set the FilterExpression value, to define a default filter. The filter is applied correct (only row that matches are displayed). However, the filter values are NOT displayed in the filter controls. So the user does not see which filters are applied to the data.
I also tried to set the filter function and value on a per column base with the CurrentFilterFunction and CurrentFilterValue property on a GridColumn, but the values are not reflected in the filter controls either.

Is this a desired behavior or a bug?

lG
Jens
Ramsey Callaway
Top achievements
Rank 1
 answered on 23 Feb 2012
1 answer
58 views
There are some old threads about Expression Web 3 and Telerik controls but does anyone know/use EW4 and T controls?

Thanks
Rumen
Telerik team
 answered on 23 Feb 2012
1 answer
137 views
hi folks,
i've this code:
<telerik:RadListBox ID="lista1" runat="server" Height="230px" Width="250px" TransferToID="lista2" SelectionMode="Multiple"/>
<telerik:RadListBox ID="lista2"  runat="server" Height="230px" Width="250px" SelectionMode="Multiple" />
<asp:Button ID="btnTransferRight" OnClientClick="return trasferisciBoxDestra()" Text=">>"  runat="server" />

where in javascript i've this function:
function trasferisciBoxDestra() { 
            var listbox = $find("<%= lista1.ClientID %>");
            var elemSelezionato = listbox.get_selectedItem();
            if (elemSelezionato == null) {
                alert("Bisogna selezionare almeno un elemento.");
                return false;
            }
            listbox.transferToDestination(elemSelezionato);
            return false;
        }

How can i select different items with control button and send them by "transferToDestination" method pass it an array?
thanks in advance. 
TheFool
Top achievements
Rank 1
 answered on 23 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?