Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
110 views
I have a CommandItemTemplate contain RadToolBar which also contain RadComboBox, what i need to do here is to dynamically set value for the RadComboBox when page is loaded and in button click event. This is the code I have in Page_Load/Button_Click event:  
GridItem commandItem = RadGrid1.MasterTableView.GetItems(GridItemType.CommandItem)[0];
                RadToolBar radtoolbar = (RadToolBar)commandItem.FindControl("RadToolBar1");
                RadToolBarItem comboitem = radtoolbar.FindItemByText("RadToolBarButton1");
                RadComboBox rcb = (RadComboBox)comboitem.FindControl("RadComboBox1");
 I kept getting "Index was outside the bounds of the array" but I have only one Item (RadToolBar) in CommandItemTemplate. I saw samples that do it in ItemCreate event, but I need my control to interact with button click, how can I do it?

Thanks  in advance!

Shannon
Shannnon
Top achievements
Rank 1
 answered on 16 Feb 2011
0 answers
49 views
Hi guys,
I have a tabstrip and a multipage and want to be able to have individual tabs clicked which show their individual relevant pages. Then, if you click on a single page tab, it shows only that one page.But when I go to design view it shows me all pages no matter what tab I am clicking.

<

 

div id="TabForms">

 

 

<telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1" SelectedIndex="0" EnableEmbeddedSkins="False">

 

 

<Tabs>

 

 

<telerik:RadTab Text="Header Info">

 

 

</telerik:RadTab>

 

 

<telerik:RadTab Text="Section - 1" >

 

 

</telerik:RadTab>

 

 

<telerik:RadTab Text="Section - 2 &amp; 3" >

 

 

</telerik:RadTab>

 

 

 

<telerik:RadTab Text="Section - 4">

 

 

</telerik:RadTab>

 

 

 

</Tabs>

 

 

</telerik:RadTabStrip>

 

 

<telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" >

 

 

<telerik:RadPageView ID="RadPageView1" runat="server">

 

Thanks so much for help.

Vasya Ivanov
Top achievements
Rank 1
 asked on 16 Feb 2011
2 answers
169 views
I have an inline edit form and everything is working great except I need to have it with more than one column ( like in the demo ). I have attached a screen shot of what I want to do. I have tried setting ColumnNumber to 2 but that has not worked.

Thanks!
Clark
Top achievements
Rank 1
 answered on 16 Feb 2011
2 answers
164 views
Hello,

I'm trying to setup a modal window to display a form, then after completing the form I need to update a control on the current page from the data that was added to database.

Here's the code I'm using:

 

<telerik:RadComboBox ID="cboIndustrie" ToolTip="Industrie d'appartenance de l'entreprise." Width="200" AllowCustomText="false" runat="server"
</telerik:RadComboBox
  
<asp:LinkButton Text="[Ajouter une industrie]" runat="server" CausesValidation="false" ID="lnkIndustrie"
OnClientClick="window.radopen(null, 'windowIndustrie'); return false;" OnClick="lnkIndustrie_Click"></asp:LinkButton
  
<telerik:RadWindowManager ID="windowManager" runat="server"
<Windows
<telerik:RadWindow ID="windowIndustrie" Title="Nouvelle industrie" ShowContentDuringLoad="false" 
Width="400px" Height="200px" Behaviors="Default" runat="server" EnableShadow="true" Modal="true" 
NavigateUrl="AddIndustrie.aspx" VisibleStatusbar="false" /> 
</Windows
</telerik:RadWindowManager
  
<telerik:RadAjaxManager ID="ajaxManager" runat="server"
<AjaxSettings
<telerik:AjaxSetting AjaxControlID="lnkIndustrie"
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="cboIndustrie" /> 
</UpdatedControls
</telerik:AjaxSetting
</AjaxSettings
</telerik:RadAjaxManager

 

The general execution process is working fine, but if I remove "return false;" after calling window.radopen() the page will reload while users are filling my form. So, I need to find a way to hold execution while windowIndustrie is open.

As a work around, I tried to add an invisible button that would be fired with OnClientClose event of my window, but I can't get it working...

Thanks,
Frédéric
AXOR
Top achievements
Rank 1
 answered on 16 Feb 2011
6 answers
153 views
Using Telerik RADControls for ASP.NET AJAX Q2 2010 SP2.

1) Inputting an integer larger than 70 billion in any filter expression (roughly, hold down any number key for a few seconds, you will see).  This can be reproduced on the live demo here: http://demos.telerik.com/aspnet-ajax/filter/examples/firstlook/defaultcs.aspx  The demo page redirects to a page not found, but in a VS project in debug mode, it will return a javascript error where it basically says "Value too large for System.Int32".  Is there a solution for this via javascript or C#?  Basically cap the number of digits user can enter for an integer type filter expression.

2) I need to remove the following items from a filter expression: "NotEqualTo", "GreaterThan", "LessThan", "GreaterThanOrEqualTo", "LessThanOrEqualTo", "Between" and "NotBetween" but ONLY for string columns, these are still needed for integer columns.
Brett
Top achievements
Rank 1
 answered on 16 Feb 2011
3 answers
111 views
I have a very nice multi-select radcombobox solution that uses a RadListBox inside of the first RadComboBoxItem's ItemTemplate that allows for keyboard support and extra properties to return the values of the selected.  There is also a footer template that is added in non-production environments to show the developer/tester the values of the checked items.

However, the testers have noticed that when the server control is right above the status bar like in the attached "scrunched.png" the control only expands up the height of one row when the dropdown is clicked on.  If you close the dropdown and expand it upwards again it expands to full height, like in the attached "justright.png"...

This is only for IE7/IE8.  Firefox 3.6.3 and Chrome 8.0.552 work fine.  Well, I say they work fine only because they don't care about screen boundaries so those browsers expand the dropdown, um, downwards, not upwards like IE "tries" to do...  Not the optimal situation for UI friendliness, but at least they don't create more problems by trying to be "friendly".

Any suggestions?
Thanks!!
Thad
Top achievements
Rank 2
 answered on 16 Feb 2011
1 answer
94 views
Hi,
Is it possible to put an image instead of Axislabel in radchart ?
Thank you very much...
Evgenia
Telerik team
 answered on 16 Feb 2011
2 answers
80 views
I've just begun to familiarize myself with the Dock controls to learn if and how they can be of use in my applications.  And, for the most part, I've ignored or discounted them, assuming their use is limited to the very specific, portal-type, personal UI's.  But now I'm revisiting that assumption and wonder if/how they could be of great usefulness if implemented in like-scenario as follows:

Utilize the RadDock controls in their obvious/intended use, to organize and manage site layout, persisting state to xml or db, etc etc.. nothing unusual there.  But- in a non-portal-like, public UI-  limiting that functionality to site owners/administrators only.  The browsing public, or non-auth users, would see the admin-prescribed layout/content, but without any of the the docking chrome or layout functionality. I suppose I think of these as two modes; admin/normal, edit/view, enabled/disabled... etc. 

I've toyed with and have had some success creating custom controls; docks and zones inheriting from RadDock and RadDockZone in order to add some custom properties, override where needed, etc.  I've created and am very happy with the functionality and outcome of the 'admin or enabled' mode and am looking into accomplishing the 'disabled' mode. 

I'm confident I can do this- one (hacky) way or another-  but in order of seeking the most logical, elegant way of doing it--  I would appreciate any input from Telerik or anyone with insight, suggestions, or tips. 

A couple thoughts:
- I thought I could dynamically load docks/content OnInit and then, when not admin, just disable the controls to inhibit rendering the scripts, leaving only chrome to deal with.  Not so. 
- In a 'disabled mode'.. would hope to not render anything dock-related; UI or script, as opposed to disabling, removing or hiding things on the client. 
- Regardless of if/how I can achieve this now.. it seems this kind of functionality could/should be baked-in to the Docking. ??

Thanks a bunch and I appreciate the input!
David



David
Top achievements
Rank 1
 answered on 16 Feb 2011
2 answers
160 views
Hello,

someone knows how to only disable the automatic filtering operation
when performing a filter on a row?

I need to filter a DropDown Column - so i just want to modify the gridview datasource selectcommand

It works - but just the first time and then i get this error
No property or field 'filterExpression' exists in type 'DataRowView' - its because my row is a DropDown

At the gridviews ItemCommand Event im using this code
if (e.CommandName == RadGrid.FilterCommandName)
{
    gvUser.MasterTableView.FilterExpression = ""; //tried with this ... but does not work
    Pair filterPair = (Pair)e.CommandArgument;
    //string s = filterPair.First + ", " + filterPair.Second;
 
    TextBox txtFilterTextBox = (e.Item as GridFilteringItem)[filterPair.Second.ToString()].Controls[0] as TextBox;
    string filterValue = txtFilterTextBox.Text;
 
    srcGv.SelectCommand = "SELECT * FROM [Table1] WHERE [ID] IN (SELECT [ID] FROM [Table2] WHERE [someRow] LIKE '%" + txtFilterTextBox.Text + "%')  ORDER BY [someRow]";
    gvUser.Rebind();
}

i think i just have to disable the automatic filter operation but i cant find where i can disable it ...

Greetings - Raimund
Raimund
Top achievements
Rank 1
 answered on 16 Feb 2011
7 answers
286 views
Hi,
I'm having problem with my project. Randomly, i got object reference problem in different pages, however i can't find a scenario which causes this. It's totally random.

When i catch this in debug mode, i saw that viewstates were loosing their values but i'm not sure about that. Debugger stops at a random viewstate, says value = null, however i'm sure it had a value before. Somehow, it looses its value after postback but as i said, i can't create a scenario

Here is my error log

<Log> 
<ExtendedProp><Url>http://195.87.212.232/LeasingPublish/Credit/CreditProposalQuery.aspx</Url><UserFullName>KREDİ ANALİSTİ</UserFullName><UserName>KRD_ANS</UserName><UserIP>195.87.213.86</UserIP><StackTrace>   at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)  
   at System.Xml.XmlDocument.Load(XmlReader reader)  
   at System.Web.UI.WebControls.XmlDataSource.PopulateXmlDocument(XmlDocument document, CacheDependency# dataCacheDependency, CacheDependency# transformCacheDependency)  
   at System.Web.UI.WebControls.XmlDataSource.GetXmlDocument()  
   at System.Web.UI.WebControls.XmlHierarchicalDataSourceView.Select()  
   at Telerik.Web.UI.HierarchicalControlItemContainer.GetHierarchyData(IEnumerable data)  
   at Telerik.Web.UI.HierarchicalControlItemContainer.PerformDataBinding(IEnumerable data)  
   at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)  
   at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)  
   at System.Web.UI.WebControls.DataBoundControl.PerformSelect()  
   at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()  
   at System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound()  
   at System.Web.UI.WebControls.BaseDataBoundControl.OnPreRender(EventArgs e)  
   at Telerik.Web.UI.RadDataBoundControl.OnPreRender(EventArgs e)  
   at System.Web.UI.Control.PreRenderRecursiveInternal()  
   at System.Web.UI.Control.PreRenderRecursiveInternal()  
   at System.Web.UI.Control.PreRenderRecursiveInternal()  
   at System.Web.UI.Control.PreRenderRecursiveInternal()  
   at System.Web.UI.Control.PreRenderRecursiveInternal()  
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)</StackTrace><Guid>b175ba72-b3fb-4257-b005-89f5cbabcbd3</Guid> 
</ExtendedProp> 
</Log> 

Anyone had this problem before?

Thanks
Andrea Tasca
Top achievements
Rank 1
 answered on 16 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?