Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
119 views
I did a javascript character count using this

var

 

myrex = new RegExp("(^([\\w\\-\\.]){5,}$)", "i");

Unfortunately it always returns false.  When I debug I see a strange character  attached to the end of the args.Value, which the regular expression cannot match.  It is shaped like a  square in the debugger.  What is that and what can I do to disregard it?

Thanks

 

Rumen
Telerik team
 answered on 06 Jul 2009
1 answer
46 views
Am I missing something or is placing the dictionary file for Editor in the DotNetNuke App_Data folder always a manual process? It doesn't seem to get installed with everything else when I install the RAD modules package.
Rumen
Telerik team
 answered on 06 Jul 2009
1 answer
85 views
In our application we are using server side pagination for grid by using "ObjectDataSourceContainer". Can anyone please tell me how to assign a ObjectDataSourceContainer to "GridTableView" dynamically( runtime, C# code behind).
Sebastian
Telerik team
 answered on 06 Jul 2009
1 answer
204 views
I have a RadFileExplorer and when I set the width it does not work.  I have tried FileExplorer1.Width = Unit.Pixel(400); and still no success.  I look at source and the RAD_SPLITTER_PANE_CONTENT_ctl00_ContentPlaceHolder1_FileExplorer1_paneGrid  is the only place that I could change it in IE Developer Toolbar but I could not do it in CSS. 

Thanks.
Robert
Top achievements
Rank 1
 answered on 06 Jul 2009
4 answers
123 views
The font options don't come up for the Child Items object in Fine-Tune mode of the Panelbar object. Will we be able to adjust these eventually? I started with the Simple template, by the way, if that makes any difference.
Alex Gyoshev
Telerik team
 answered on 06 Jul 2009
1 answer
106 views
Hi,

I have two grids, deleting an item from one grid pops up a radprompt for a deletion reason before a ajaxRequest is called to mark the record as deleted on the server. I then get both grids to rebind however the grids are then not being updated.

The AjaxManager declaration:

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1"

 

EnableAJAX="True" onajaxrequest="RadAjaxManager1_AjaxRequest" >

 

<AjaxSettings>

 

<telerik:AjaxSetting AjaxControlID="RadGridInStock">

 

<UpdatedControls>

 

<telerik:AjaxUpdatedControl ControlID="RadGridInStock" LoadingPanelID="RadAjaxLoadingPanel1" />

 

<telerik:AjaxUpdatedControl ControlID="RadGridDeleted" LoadingPanelID="RadAjaxLoadingPanel1" />

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

On the top grid is a column to trigger the delete:

 

<telerik:GridTemplateColumn UniqueName="DeleteLink">

 

 

<ItemTemplate>

 

 

<asp:LinkButton ID="DeleteLink" runat="server" Text="Delete" />

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

 

I associate the javascript with the column with this code:

 

 

protected void RadGridInStock_ItemCreated(object sender, GridItemEventArgs e)

{

 

if (e.Item is GridDataItem)

{

 

GridDataItem item = e.Item as GridDataItem;

 

 

LinkButton button = item["DeleteLink"].Controls[1] as LinkButton;

 

 

APO_Vehicle vehicle = item.DataItem as APO_Vehicle;

 

 

if (vehicle != null)

{

button.Attributes.Add(

 

"onclick",

 

 

String.Format("return deleteClick({0});",

vehicle.Id));

}

}

}

 

This calls this javascript:

 

 

var deleteId;

 

 

function deleteClick(id) {

deleteId = id;

radprompt(

 

'What is your reason for deleting this car?', promptCallBackFn, 330, 100);

 

 

return false;

}

 

 

function promptCallBackFn(args) {

 

 

// Call an ajax method to delete the record

 

if (args != null && args.length > 0) {

 

var arguments;

arguments.id = deleteId;

arguments.reason = args;

$find(

 

"<%=RadAjaxManager1.ClientID%>").ajaxRequest('{ "id" : ' + arguments.id + ', "reason" : "' + arguments.reason + '" }');

}

}

 

 

The Ajax request code is as follows:

 

 

protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)

{

 

// Code to delete record from db ..

 RadGridInStock.Rebind();

RadGridDeleted.Rebind();

}

 

 

Is there a way to get the RadAjaxManager to update the grids from the AjaxRequest method? I kind of thought this should happen automatically.

Thanks,

Stuart

 

Iana Tsolova
Telerik team
 answered on 06 Jul 2009
3 answers
147 views

Hi,

How to avoid only vertical scroll bar in the rad grid. 
My rad grid  has 10 columns in the grid and i set AllowScroll=false 
in the ClientSettings. When radgrid has loaded with the data, i could not see the veritical scroll bar. This is ok for me. But now i could not see the horizontal scroll bar also. Because of this i could see only 5 columns of the grid. Remaining 5 columns are missing. 

I need to avoid only vertical scroll bar of the grid not horizontal scroll bar.


Please sugguest.

Thanks 
Satya.
 
satya
Top achievements
Rank 1
 answered on 06 Jul 2009
3 answers
154 views
I am successfully subscribing to OnClientSelectedIndexChanged when the user selects an item, but this does not fire when a user clears the selection.

Is there any way to pick up this event?
Simon
Telerik team
 answered on 06 Jul 2009
1 answer
169 views
Is anyone having issues with the new 2009 Q2 release? I have just installed Vista (32 bit) , Visual Studio 2008, and the lastest Telerik controls on a clean machine. When I use the Telerik extension to create a new VB web project, everything works ok. When I try to add another telerik control to the webpage ( i tried a grid and a menu) I get all kinds of errors in the deisgn window. Sometimes they seem to work other times they don't. Even the script mamanger seems to error even though it had rendered just fine before I added another control. 

System.Web.UI.scriptreferenceCollection must have items of type 'System.Web.UIi.ScriptReference'. 'asp:ScriptReference' is of type 'System.Web.UIi.ScriptReference'

No runtime errors so far. Removing the script control and adding again seems to work. Just wierd. Never seen this behaviour before.
Erjan Gavalji
Telerik team
 answered on 06 Jul 2009
6 answers
144 views
Hi,

We have a situation that can be reproduced all time where the web browser seems to hang. I think it's some javascript from Telerik that calculates client heights that is responsible for it. This is our scenario;

We have a user control with a RadComboBox that gets loaded with OnItemsRequested. This user control is used on multiple places on our webplace, and works as excepted. On one of our pages we are using a modal popup window that contains several of theese user control. When we are going to search on one (and only one) of theese control, the app freezes. The other controls are working as expected (and there are controls both above and under the problem control). If we make the modal window bigger the problem goes away! - But really, we dont want to have a window with a lof of empty space.

We are using Q1 2008

Thanks
Simon
Telerik team
 answered on 06 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?