Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
263 views
Hi there, I am using a fullscreen splitter with three panes, without splitbars. If I resize the browser window the splitter resizes just fine.
Now I need to change the height of the top pane according to the user clicking on a button, using javascript.
I use splitter.getStartPane().set_height to set the height, and it works, BUT then the splitter doesn't fill the screen anymore. So, if I change the height from 100 to 50 pixels, an empty 50 pixels tall area appears below the end pane.
I tried using splitter.repaint() and splitter.set_height($(window).height()) without success.
I also tried $(window).trigger("resize") just because resizing the window soon after setting the height does the trick, but it doesn't work via code.
Any idea?
Thanks
Dobromir
Telerik team
 answered on 26 Jan 2012
2 answers
97 views

I am facing a wierd issue. I am  currently working on a project which develop usercontrol----> webpart---->deploy to sharepoint. There is one page using  radgrid to display some information which has four filter columns, except the default buildin filter ,I also built my own filter fanction which implement the filter function by hitting the enter key.Everthing is fine when it runs in asp.net ,but when it was deployed to sharepoint site, the filter can work for the first two filters only.In the third filtering,the var grid=$find(gridid) return null. the code  snippet as following:

 

<script type="text/javascript">
  
  
  
function doFilter(sender, eventArgs, gridId, uniqueName, curFunction) {
  
if (eventArgs.keyCode == 13) {
  
eventArgs.cancelBubble = true;
  
eventArgs.returnValue = false;
  
if (eventArgs.stopPropagation) {
  
eventArgs.stopPropagation();
  
eventArgs.preventDefault();
  
}
  
var masterTableView = $find(gridId).get_masterTableView();
  
var filterFun;
  
switch (curFunction) {
  
case 'Contains':
  
filterFun = Telerik.Web.UI.GridFilterFunction.Contains;
  
break;
  
case 'DoesNotContain':
  
filterFun = Telerik.Web.UI.GridFilterFunction.DoesNotContain;
  
break;
  
case 'StartsWith':
  
filterFun = Telerik.Web.UI.GridFilterFunction.StartsWith;
  
break;
  
case 'EndsWith':
  
filterFun = Telerik.Web.UI.GridFilterFunction.EndsWith;
  
break;
  
case 'EqualTo':
  
filterFun = Telerik.Web.UI.GridFilterFunction.EqualTo;
  
break;
  
case 'NotEqualTo':
  
filterFun = Telerik.Web.UI.GridFilterFunction.NotEqualTo;
  
break;
  
case 'GreaterThan':
  
filterFun = Telerik.Web.UI.GridFilterFunction.GreaterThan;
  
break;
  
case 'LessThan':
  
filterFun = Telerik.Web.UI.GridFilterFunction.LessThan;
  
break;
  
case 'GreaterThanOrEqualTo':
  
filterFun = Telerik.Web.UI.GridFilterFunction.GreaterThanOrEqualTo;
  
break;
  
case 'LessThanOrEqualTo':
  
filterFun = Telerik.Web.UI.GridFilterFunction.LessThanOrEqualTo;
  
break;
  
case 'Between':
  
filterFun = Telerik.Web.UI.GridFilterFunction.Between;
  
break;
  
case 'NotBetween':
  
filterFun = Telerik.Web.UI.GridFilterFunction.NotBetween;
  
break;
  
case 'IsEmpty':
  
filterFun = Telerik.Web.UI.GridFilterFunction.IsEmpty;
  
break;
  
case 'NotIsEmpty':
  
filterFun = Telerik.Web.UI.GridFilterFunction.NotIsEmpty;
  
break;
  
case 'IsNull':
  
filterFun = Telerik.Web.UI.GridFilterFunction.IsNull;
  
break;
  
case 'NotIsNull':
  
filterFun = Telerik.Web.UI.GridFilterFunction.NotIsNull;
  
break;
  
default:
  
filterFun = Telerik.Web.UI.GridFilterFunction.EqualTo;
  
}
  
if (sender.value == "")
  
filterFun = Telerik.Web.UI.GridFilterFunction.NoFilter;
  
if (masterTableView !=null)
  
masterTableView.filter(uniqueName, sender.value, filterFun);
  
return false;
  
}
  
}
  
  
  
</script>
  
  
  
  
<telerik:RadGrid ID="RGrid_LocateAsset" runat="server" AutoGenerateColumns="False"
  
GridLines="None" AllowFilteringByColumn="True" AllowSorting="True" Skin="Sunset"
  
AllowPaging="True" EnableViewState="true" OnNeedDataSource="RGridNeedDataSource">
  
<GroupingSettings CaseSensitive="False" />
  
<MasterTableView EnableColumnsViewState="true">
  
<CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
  
<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
  
<HeaderStyle Width="20px"></HeaderStyle>
  
</RowIndicatorColumn>
  
<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
  
<HeaderStyle Width="20px"></HeaderStyle>
  
</ExpandCollapseColumn>
  
<Columns>
  
<telerik:GridBoundColumn AllowFiltering="False" DataField="MakeModelName" FilterControlAltText="Filter column column"
  
HeaderText="Model" UniqueName="MakeModelName" HeaderStyle-Width="75px">
  
</telerik:GridBoundColumn>
  
<telerik:GridBoundColumn AllowFiltering="False" DataField="AssetInstanceSerial" FilterControlAltText="Filter column1 column"
  
HeaderText="Serial #" UniqueName="AssetInstanceSerial" HeaderStyle-Width="75px">
  
</telerik:GridBoundColumn>
  
<telerik:GridBoundColumn AllowFiltering="False" DataField="UDI" FilterControlAltText="Filter column2 column"
  
HeaderText="UDI" UniqueName="UDI">
  
</telerik:GridBoundColumn>
  
<telerik:GridBoundColumn AllowFiltering="False" DataField="RFIDTagNumber" FilterControlAltText="Filter column7 column"
  
HeaderText="RFID Tag#" UniqueName="RfidTagNumber" HeaderStyle-Width="75px">
  
</telerik:GridBoundColumn>
  
<telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn3 column"
  
DataField="AssetStatus" CurrentFilterFunction="EqualTo" HeaderText="Status" UniqueName="statusname">
  
<ItemTemplate>
  
<div id="GridColumn">
  
<%# (string.IsNullOrEmpty(Eval("AssetStatus").ToString()) ? "Asset Status not available" : Eval("AssetStatus"))%>
  
</div>
  
</ItemTemplate>
  
</telerik:GridTemplateColumn>
  
<telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn2 column"
  
DataField="floorname" CurrentFilterFunction="EqualTo" HeaderText="Floor" UniqueName="FloorName">
  
<ItemTemplate>
  
<div id="GridColumn">
  
<%# (string.IsNullOrEmpty(Eval("FloorName").ToString()) ? "Location not available" : Eval("FloorName"))%>
  
</div>
  
</ItemTemplate>
  
</telerik:GridTemplateColumn>
  
<telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn column" HeaderText="Unit"
  
DataField="UnitName" CurrentFilterFunction="EqualTo" UniqueName="UnitName">
  
<ItemTemplate>
  
<div id="GridColumn">
  
<%# (string.IsNullOrEmpty(Eval("UnitName").ToString()) ? "Location not available" : String.Format(@"<a href='" + FloorPlanURL + "?TagID={0}&HospitalSite={1}&selectedAssetKeys={3}' >{2}</a>", Eval("RFIDTagNumber").ToString(), Eval("HospitalGlnId").ToString(), Eval("UnitName").ToString(), AssetIDS))%>
  
  
</div>
  
</ItemTemplate>
  
</telerik:GridTemplateColumn>
  
<telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn1 column"
  
DataField="RoomName" CurrentFilterFunction="EqualTo" HeaderText="Room" UniqueName="RoomName">
  
<ItemTemplate>
  
<div id="GridColumn">
  
<%# (string.IsNullOrEmpty(Eval("RoomName").ToString()) ? "Location not available" : Eval("RoomName"))%>
  
</div>
  
</ItemTemplate>
  
</telerik:GridTemplateColumn>
  
</Columns>
  
<EditFormSettings>
  
<EditColumn FilterControlAltText="Filter EditCommandColumn column">
  
</EditColumn>
  
</EditFormSettings>
  
</MasterTableView>
  
<FilterMenu EnableImageSprites="False">
  
</FilterMenu>
  
<HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
  
</HeaderContextMenu>
  
</telerik:RadGrid>
  
  
//code behide
  
  
protected void RGridNeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
  
{
  
  
GetURLParamete();
  
  
string currentHospitalGLNID = GetPersistedObject(PersistentObjectType.HospitalGLNID).ToString();
  
EntityCollection<AssetLocationViewEntity> assetLocationView= LocateAssetPresenter.GetAllAssetLocation(currentHospitalGLNID, assetIDs, filterName, filterValue);
  
RGrid_LocateAsset.DataSource = assetLocationView;
  
RGrid_LocateAsset.ItemCreated += new GridItemEventHandler(RGrid_LocateAsset_ItemCreated);
  
  
}
  
  
protected void RGrid_LocateAsset_ItemCreated(object sender, GridItemEventArgs e)
  
{
  
if (e.Item is GridFilteringItem)
  
{
  
GridFilteringItem fltItem = e.Item as GridFilteringItem;
  
foreach (GridColumn column in RGrid_LocateAsset.Columns)
  
{
  
//Filter out non-data or non-filter columns
  
  
if (column.ColumnType == "GridTemplateColumn")
  
{
  
GridTemplateColumn bndcol = (GridTemplateColumn)column;
  
if (bndcol.AllowFiltering == true)
  
{
  
  
TextBox txtbox = fltItem[column.UniqueName].Controls[0] as TextBox;
  
var currentFilter = column.CurrentFilterFunction;
  
if (txtbox != null)
  
txtbox.Attributes.Add("onkeydown", String.Format("doFilter(this, event, \"{0}\", \"{1}\", \"{2}\");", RGrid_LocateAsset.ClientID, column.UniqueName, currentFilter));
  
}
  
}
  
}
  
}
  
}

 

 

Marin
Telerik team
 answered on 26 Jan 2012
7 answers
332 views
Hello, Telerik folks. I am considering using Telerik controls on a SharePoint project for the US Air Force. One hurdle I need to jump is to know whether they are accredited by any branch of the US Armed Forces or the Federal Government at all. This will assist me in getting my project accredited.

Is there anyone at Telerik who can assist me with this?

Regards,

Sean Moran
Emilia
Telerik team
 answered on 26 Jan 2012
4 answers
131 views
Helo,
On simple page I have TextBox.
I want to associate pressing Enter key in TextBox with LoadPanel and Panel.
When I associate TextBox in AjaxManager, nothing is happend.
Can I please for help ?
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
 
        <telerik:AjaxSetting AjaxControlID="TextBox_autor_nazwisko">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="Panel1"
                    LoadingPanelID="RadAjaxLoadingPanel1" />
                <telerik:AjaxUpdatedControl ControlID="RadNotification1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
 
    </AjaxSettings>
</telerik:RadAjaxManager>


Dominik
Top achievements
Rank 1
 answered on 26 Jan 2012
2 answers
64 views
I am using load on demand using WCF mechanism to bind child nodes to a node. Is there any way I can get hold of that data after it is returned from WCF service and before binding it to the client. Actually I wanted to prevent the entire list list of data from binding it to the client and keep the remaining of data in cache on the client browser. 
eg. if there are 5000 records returned from WCF service using load on demand, when the data reaches the browser, before binding it, i want to extract only 100 records from the set, bind it and then keep the remaining 4500 records on the client browser cache(variable).

Currently i believe if we are using load on demand using WCF there is no way on the client to get the data returned from WCF service and modify the collection. 
Bozhidar
Telerik team
 answered on 26 Jan 2012
4 answers
105 views
Hi guys,

I found that DockState is not listed in the Table of Contents in either the CHM or online help under Telerik.Web.UI. If you visit RadDock->GetState(), you will find a link to a topic on DockState, but it shows no properties/methods/etc. I was able to see that it does actually have some public props and methods in the Object Browser.

Thanks,

Jack
Stuart Hemming
Top achievements
Rank 2
 answered on 26 Jan 2012
11 answers
140 views
Hi,

When using the Telerik skins one common issue that I come across is reusing the colours from the skins in my own css.

Is there a set of generic tags that are exposed that could be used something like the following:

<div class="stdText stdBackground">this would have the standard text and text background colours applied</div>

Currently I'm forced into having a css file for each Telerik skin that I use, this would allow me to just reference a generic set of css styles that would change with the skin but be defined and maintained by yourselves...

If there are any existing styles that would allow me to do this I'd be very interested in having a list of them.

Best Regards,

Jon
Bozhidar
Telerik team
 answered on 26 Jan 2012
5 answers
123 views

Hello

i have added one Add Note' - link button, dropdown box and, 'Remove Note' - link button as Custom fields. when user clicks the 'Add Note' new textarea is displayed.  i have added these fields with OnClientAdded method to the Radupload control. i have RadCaptcha control on my page too. which is above the RadUpload control. when user enters the wrong Captcha value Error message displayed like 'Please Enter Correct word'. so first user enters the captcha value and then selects the file to upload. he adds note and select the value from the dropdown. but as he has entered the wrong captcha value error message is displayed. but the note is disappeared and dropdown box loses its selected value. i'm aware that at this time file selected is lost. and user have to select the file again. its a known limitation of the radupload. but i'm not aware that how the custom field will work.

Please help me to resolve the issue.

Thanks
Sweta
MJ
Top achievements
Rank 1
 answered on 25 Jan 2012
5 answers
104 views
HI TO ALL
I wanna use File Explorer control in asp.net web form smilar like given in example "File Selector Dialog" but in my case i am using a textbox control located inside Formview1 control and i need some help to modify following code to find my textbox control inside formview1. the code is like below:
//This function is called from a code declared on the Explorer.aspx page function
OnFileSelected(fileSelected) {
var textbox = $find("<%= fileName.ClientID %>");
textbox
.set_value(fileSelected); }

So how do i modify this script ?

thanx in Advance
rgds Armend
Armend
Top achievements
Rank 1
 answered on 25 Jan 2012
3 answers
56 views

I am using the Ajax Rad Menu from Q3 2010 in Visual Studio 2010 on Windows 2008 Enterprise Server
This error happens in my development environment on Windows 7 and in production on Windows 2008 Server

Put the Rad Menu into your project and configure it to look something like this:

<telerik:RadMenu ID="RadMenu1" Skin="Windows7" EnableEmbeddedSkins="False" OnClientItemClicking="myClickFunction" runat="server">
    <ExpandAnimation Type="InOutQuad"></ExpandAnimation
</telerik:RadMenu>

 

Add your own Menus and sub menus as you see fit.  Run the application out of VS2010.  Notice that when you run the page you created and pass the mouse over the menus the menus drop down and slide out normally.

In the browser (IE8) go to the Tools | Internet Options menu.  When the Internet Options dialog box comes up, click the Security tab.  Select the Trusted Sites zone and click the Sites button.  Uncheck the "Require server verification" check box and add the http://localhost to the Websites list.  Click Close then click OK on the Internet Options diaolog box.

Pass your mouse back over the menus and you should get a javascript error that shows in VS2010.  In the Telerik.Web.UI.WebResource_2.axd?... file you get this error in this function: " 'type' is null or not an object "

 

Sys.UI.DomEvent=function(e){var a=e,b=this.tyle=a.type.toLowerCase();this.rawEvent=a;this.altKey=a.altKey;

where    b=this.tyle=a.type.toLowerCase()   is hghlighted in yellow showing the statement that failed

Go ahead and click the Continue button on the error dialog until the error clears and passes execution on to the browser.  Now refresh your browser by hitting F5.  Pass your mouse over the menus and the error no longer happens.

Can anyone tell me why this might be happening?

Ralph

Helen
Telerik team
 answered on 25 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?