Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
379 views
Hi

I've had a look through the forum posts but haven't managed to find the solution. I want to populate my grid(s) inside the panelbar from the vb page (rather than using the DataSourceID) - I have used the following code in the Page_Load fuction to access the grid but I'm not sure how to bind the data to it:

Dim

 

StagesGrid As RadGrid = DirectCast(RadPanelBar1.FindItemByValue("PanelItem1").FindControl("RadGrid1"), RadGrid)

 

Dim

 

InvoicesGrid As RadGrid = DirectCast(RadPanelBar1.FindItemByValue("PanelItem2").FindControl("RadGrid2"), RadGrid)

Can you help? I usually populate data using the NeedDataSource function but it's not available in a nested control.

Many thanks in advance.

Steve :o)

DK
Top achievements
Rank 2
 answered on 15 Jul 2009
3 answers
424 views
Hi,

I need some help in customizing the RADEditor toolbar I have on a masterpage. Below are the steps I did to get the control to appear on the page
1) Registered the assembly in the masterpage
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI, Version=2008.3.1314.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4"%>

2)Added the control to the page:
<asp:ScriptManager ID="ScriptManager1" runat="server" />                    
<telerik:RadEditor ID="RadEditor1" runat="server" Width="500" Height="500" ></telerik:radeditor>

The RADEditor now appears on the page. However it has all the toolbar icons appearing. I followed the steps in here and created a new toolfile with only the icons I need to appear. However when I refresh the page containing the control I get the following error:
[DirectoryNotFoundException: Could not find a part of the path 'c:\windows\system32\inetsrv\~\ToolsFile_custom.xml'.]
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +193
System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) +1162
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) +64
System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials) +77
System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) +54
System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver) +74
System.Threading.CompressedStack.runTryCode(Object userData) +70
System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) +0
System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state) +108
System.Xml.XmlTextReaderImpl.OpenUrl() +186
System.Xml.XmlTextReaderImpl.Read() +208
System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +112
System.Xml.XmlDocument.Load(XmlReader reader) +108
System.Xml.XmlDocument.Load(String filename) +87
Telerik.Web.UI.RadEditor.get_ToolsFileContent() +183
Telerik.Web.UI.ToolsFileLoader.LoadColors(EditorColorCollection colors) +55
Telerik.Web.UI.RadEditor.LoadToolsFile(Boolean loadOnlyEmptyCollections) +154
Telerik.Web.UI.RadEditor.set_ToolsFile(String value) +55
T_RadEditor_ToolsFile_61.SetProperty(Object , Object ) +86
System.Web.Util.FastPropertyAccessor.SetProperty(Object target, String propName, Object val) +55
System.Web.UI.PropertyMapper.SetMappedPropertyValue(Object obj, String mappedName, Object value) +36
System.Web.UI.ControlBuilder.SetSimpleProperty(SimplePropertyEntry entry, Object obj) +94

[HttpException (0x80004005): '~/ToolsFile_custom.xml' could not be set on property 'ToolsFile'.]
System.Web.UI.ControlBuilder.SetSimpleProperty(SimplePropertyEntry entry, Object obj) +210
System.Web.UI.ControlBuilder.InitSimpleProperties(Object obj) +157
System.Web.UI.ControlBuilder.InitObject(Object obj) +162
System.Web.UI.ControlBuilder.BuildObjectInternal() +238
System.Web.UI.ControlBuilder.BuildObject() +4
System.Web.UI.ControlBuilder.BuildChildren(Object parentObj) +403
System.Web.UI.ControlBuilder.InitObject(Object obj) +342
System.Web.UI.ControlBuilder.BuildObjectInternal() +238
System.Web.UI.ControlBuilder.BuildObject() +4
System.Web.UI.ControlBuilder.BuildChildren(Object parentObj) +403
System.Web.UI.TemplateBuilder.InstantiateIn(Control container) +302
Microsoft.SharePoint.WebControls.TemplateBasedControl.CreateChildControls() +279
CKS.EBE.WebControls.BaseForm.CreateChildControls() +15
System.Web.UI.Control.EnsureChildControls() +87
Microsoft.SharePoint.WebControls.TemplateBasedControl.OnLoad(EventArgs e) +65
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

My custom file is located in C:\Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\5.3.2.0__1f131a624888eeed\Resources
Which happens to be the location where the default RAD files are located.

Can anyone help with this?
Stanimir
Telerik team
 answered on 15 Jul 2009
2 answers
182 views
I have a combobox with AutoCompleteSeparator=";" and use ItemsRequested for load data ,after select multi items the Text property is correct but SelectedValue property has only last selectedItem value .How can i get SelectedItems or selectedValues in combobox?
Sepideh Ghanbari
Top achievements
Rank 1
 answered on 15 Jul 2009
3 answers
504 views
I have a field in my RadAjaxGrid where it will display a Link styled button with the text "Enable" or "Disable". I need to set this value on a per row basis based on the value of a DataBound field called "Active". How can I do this most efficiently?
Princy
Top achievements
Rank 2
 answered on 15 Jul 2009
4 answers
261 views
<Columns> 
                  
                    <telerik:GridBoundColumn UniqueName="EmployeeNo" DataField="EmployeeNo" HeaderText="EmployeeNo" 
                        HeaderStyle-Width="200px">  
                        <FilterTemplate> 
                            <telerik:RadComboBox ID="RadComboBox1" DataTextField="EmployeeNo" DataValueField="EmployeeNo" 
                                DataSource="<%# DataBindEmployeeNo() %>" 
                                runat="server" >  
                                <Items> 
                                    <telerik:RadComboBoxItem Text="All" /> 
                                </Items> 
                            </telerik:RadComboBox> 
                            <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">  
                                <script type="text/javascript">  
                                    function EmployeeNoIndexChanged(sender,args) {  
                                        var tableView=$find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");  
                                        tableView.filter("EmployeeNo",args.get_item().get_value(),"EqualTo");  
                                    }  
                                    function RemoveItem()  
                                    {  
                                        var combo = $find("<%= RadComboBox1.ClientID %>");  
                                        var combocomboItem = combo.get_selectedItem();  
                                        if(comboItem)  
                                        {  
                                           combo.trackChanges();  
                                           combo.get_items().remove(comboItem);  
                                           combo.commitChanges();  
                                         }  
                                    }   
                                </script> 
                            </telerik:RadScriptBlock> 
                        </FilterTemplate> 
                    </telerik:GridBoundColumn> 

</
Column> 

<FilterTemplate>
                            <telerik:RadComboBox ID="RadComboBox1" >
</FilterTemplate>

I have a telerik:RadComboBox in FilterTemplate. I want to remove some items from it by client side.
I follow the demo http://www.telerik.com/help/aspnet-ajax/combo_itemsclientside.html but I can't get the combo in this way :

var combo = $find("<%= RadComboBox1.ClientID %>");  

Compiler Error Message: CS0103: The name 'RadComboBox1' does not exist in the current context

Will it be some different in FilterTemplate?

Thank you!
Airad
Top achievements
Rank 1
 answered on 15 Jul 2009
1 answer
98 views
I am writing a letter managing application, and have programmed some snippits to inert place holder text (e.g. ###address###, ###name###) that get inserted into the designer view e.g.

###address###

Dear ###name###,

blah blah ###name###
...

My question is how do I replace the placeholder text on switching to a preview view or printing?
Grayson Mitchell
Top achievements
Rank 1
 answered on 14 Jul 2009
1 answer
70 views
Hello,

I have two issues I would like to handle within the editor (I have done these in win form applications, but am new to web development)

1\ Any change in the main editor I want to make a coresponding change to a copy of the editor (with a few exeptions)
I want to have a second editor on my page with a slightly different view from my main editor window (Similar to the Silverlight editor example).

2\ I want to insert "chunks" that can't be edited, and if any of the 'chunk' is deleted, the whole text is deleted.  (I did this in a Richtextbox with the onchange event)





Grayson Mitchell
Top achievements
Rank 1
 answered on 14 Jul 2009
0 answers
163 views
I have HOME tab which contains an Iframe that changes the source page depending on your selection from the RadMenu.

Inside the Iframe (which is classic ASP) I want to be able to open a new tab if a button is clicked in the Classic ASP page.

Then once in that new tab with info, pass back to the HOME tab and close out the current tab.

Any ideas? Direction?  Is Javascript involved? Or is it not needed.

This technique is being thought of to eliminate the pop-up menus that occur all over the current site that return values back to textboxes, etc.

We want to use Tabs now.


Bryan Page
Top achievements
Rank 1
 asked on 14 Jul 2009
1 answer
145 views
Hi All,

        I am using RCB(Rad ComboBox) with Multiple Column. Now, I am facing a prob. That is if there is only one item in RCB.

       The SelectedindexChange Event won't triggered.

    
Logic:
      
    When i select an item from RCB. RG(Rad Grid) Should be reloaded.
    If only one item in RCB. Then The selectedIndexChange not Triggered. Because The first item set selected in RCB automatically.
    I used to give parameters for RG through Codebehind page i mean in selectedIndexChange event.


So i need help to wipe out this issue........
Any one Please....

-Leo
    

Jose
Top achievements
Rank 2
 answered on 14 Jul 2009
2 answers
171 views
Hi,  im trying to access to the property selectedvalue in a combobox declared in this way:

                                <telerik:RadComboBox ID="RadComboBoxFlight" runat="server"   
                                    DataTextField="NU_VUEL" DataValueField="ID_VUEL_CLIE"   
                                    EmptyMessage="Seleccione&nbsp;una&nbsp;aerolinea..." Height="100px"   
                                    OnClientItemsRequested="ItemsLoaded"   
                                    OnItemsRequested="RadComboBoxFlight_OnItemsRequested" Skin="Web20"   
                                    Width="180" /> 

when i do postback with a button, the selectedvalue of the combobox returns an empty string, only works the text property.

 i chekc the support section of the combobox and i find this :
http://www.telerik.com/help/aspnet-ajax/load-on-demand-access-items-server-side.html and there say that selectedvalue is supported.

im using 2009 Q2..
btw i also try with loadondemand="true"
Jose
Top achievements
Rank 2
 answered on 14 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?