Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
140 views
I have a splitter set to 100% height. This has always worked fine across browsers. However, I recently added a bit of logic that automatically collapses a pane on certain criteria and therefore need to update the entire splitter via the AJAX manager to allow the pane to expand and collapse.

The problem is that when updating the splitter via the AJAX manager an additional div is rendered at runtime called a splitter panel, or in my case ctl00_ctl00_rspSplitterPanel. This does not have a height value of 100% but becomes the parent of the splitter control so the splitter loses it's height 100% value in all browsers except IE. Obviously, you can fudge it and set this div to height 100% from CSS but then this negates the height offset value I have.

So, basically you can't use AJAX to update a splitter with height 100% set in any browser but IE.

Also ref: http://www.telerik.com/community/forums/thread/b311D-bemdhg.aspx - I was unaware Alan was also posting.


Dimo
Telerik team
 answered on 14 Jul 2008
4 answers
129 views
Hi, I am using this http://www.telerik.com/DEMOS/ASPNET/Prometheus/TreeView/Examples/Functionality/TreeViewComboBox/DefaultVB.aspx example as Treeview in ComboBox.
Can someone tell me how can I make visible/invisible an asp textbox depending on any selected value from treeview in combobox?

Thanks
Atiq
Veselin Vasilev
Telerik team
 answered on 14 Jul 2008
3 answers
74 views
Hi,

There seems to be a bug in the radgrid.
I have a grid with only "NoFilter" and "Contains". If you use "[" in the string and choose "Contains" then it always brings back all records. (It does it on the demo on your site too) - I've tried changing the filter to Equals within the ItemDataBound event but it doesn't seem to work. Any ideas how I can make sure that it doesn't return all records if the filter is set to "Contains" and the text has "[" in it.

Thanks
Yavor
Telerik team
 answered on 14 Jul 2008
1 answer
113 views
I'm currently building a grid that display's orders, and orderlines in a subgrid. I'd like to provide the functionality to export the grid to csv, pdf, and so on, but i want to set it up in such a way that the grid only exports the mastertableview, not the detailtables.
I tried using the HierarchyDefaultExpanded property, but it didn't work out. Also i tried saving the DetailTables-collection in a variable, clearing the collection in the grid, and then exporting. That works, but i just can't seem to get the DetailTables back into the grid afterwards.
I've been looking into this for the better part of the day, and i figured someone must have encountered this problem before, Any and all tips and suggestions will be welcomed.
Thanks in advance!
Princy
Top achievements
Rank 2
 answered on 14 Jul 2008
2 answers
132 views
Hello,

I have setup up a simple declaritive menu for testing purpose - i will be binding to data later.

I have set the following tag right after the opening RadMenu tag

<DefaultGroupSettings OffsetX="-10" OffsetY="-5"  />    

According to the manual this should set all children coming off the rooting and children of those children to be offset according. It does nothing. The only way I can make an offset work is by setting values in the individual RadMenuItems GroupOffset settings. This of course is no good becuase a) you have to set it in every single item and b) I will be binding to data later!

Why are the default group settings not being applied?

Thanks,

Leon.
Relative
Top achievements
Rank 1
 answered on 14 Jul 2008
2 answers
276 views
Anyone can help to Create Dynamic Menu’s Through Databases by using Telerik Menu control.


Regards,
Ranganath.S
Veselin Vasilev
Telerik team
 answered on 14 Jul 2008
2 answers
144 views

I have a Combo Box which I am trying to use to drop down a CheckBoxList control, which the user can make multiple selections.  I have an onclick event on each of the checkboxes, and in that event handler I am trying to get a reference to the checkboxlist.  In the code behind, I attach the event handler by doing

checkbox.Attributes.Add(

"onclick", "doPropertyClick()")

for each checkbox.  In the handler, I am trying to get a reference to the checkbox list below, but I do not know how to find the checkbox control within the template item on the client side.

function doPropertyClick() {

var count = 0

var txt = ""

var combo = $find("ddlProperties")

var cbxList = combo.get_items().getItem(0)

var arrayOfCheckBoxes = cbxList.childNodes

for(var i=0;i<arrayOfCheckBoxes.length;i++) {

 count = count + 1
  txt = arrayOfCheckBoxes[i].text
}

if (count > 1) {

txt =

"Multiple Selected"

}

setTimeout(

function() { $find("ddlProperties").set_text(txt); }, 100);

}

The declaration for the control is below.


<

telerik:RadComboBox ID="ddlProperties" runat="server">

<ItemTemplate>

<asp:CheckBoxList ID="cbxProperties" runat="server" RepeatLayout="Flow">

</asp:CheckBoxList>

</ItemTemplate>

<Items>

<telerik:RadComboBoxItem />

</Items>

</telerik:RadComboBox>

Veselin Vasilev
Telerik team
 answered on 14 Jul 2008
6 answers
152 views
all files that i upload through the radeditor control are 0 bytes in size: the file is created but seems to have no content at all. what's happening?
Tervel
Telerik team
 answered on 14 Jul 2008
1 answer
150 views
When the CssFiles property is set to external stylesheets some of the tools become none responsive when used through FireFox browsers. By external I mean that these stylesheets are defined by absolute uris with a different domain. I am specifically noticing that the Hyperlink Manager dialog button is non responsive and the ApplyClass dropdown list are non-responsive.

I have used FireBug from FireFox 2 to find that an error is occuring when these tools are clicked:  
    Error Message:    access to restricted uri denied" code: "1012
    Location: ScriptResource.axd.... (line:8397)
    Function:  _getStyleSheetRules(...)
 
When I set the CssFiles property to a local domain stylesheet or do not set the property at all those features work fine in FF.

The error seems to be a security error specific to FireFox browsers. We have a need to reference cross domain stylesheets in the CssFiles property. I am hoping that there is some possible workaround for this.
Tervel
Telerik team
 answered on 14 Jul 2008
1 answer
175 views
<telerik:RadPanelBar runat="server" ID="RadPanelBar1" Skin="Mac" Height="100%" ExpandMode="FullExpandedItem" 
OnItemDataBound="RadPanelBar1_OnItemDataBound"> 
     
</telerik:RadPanelBar> 
<asp:XmlDataSource ID="xdsSummary" runat="server" XPath="Summaries/Items/Summary" EnableCaching="false" /> 

I am populating the RadPanelBar above as such:
this.xdsSummary.DataFile = "http://mywebservice/myService.asmx/GetSummaryContainer?acct=1234"; 
RadPanelBar1.DataSource = this.xdsSummary; 
RadPanelBar1.DataBind(); 

The DataFile for the xml datasource returns:
             <?xml version="1.0" encoding="utf-8" ?>  
- <Summaries xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> 
- <Items> 
- <Summary> 
  <Title>Title 1</Title>   
  </Summary> 
- <Summary> 
  <Title>Title 2</Title>    
  </Summary>-  
  </Items> 
  </Summaries> 

I then bind the Title of the RadPanel:
    protected void RadPanelBar1_OnItemDataBound(object sender, Telerik.Web.UI.RadPanelBarEventArgs e) 
    { 
        System.Xml.XmlElement xmlElement = e.Item.DataItem as System.Xml.XmlElement; 
 
        foreach (System.Xml.XmlNode node in xmlElement.ChildNodes) 
        { 
            if (node.Name == "Title") 
                e.Item.Text = node.InnerText; 
        } 
    } 

Now, within each of the Panel, I want to call another web service asynchronously and display some text. The web service returns string as such;
  <?xml version="1.0" encoding="utf-8" ?>  
  <string><div id="WidgetContent"> <script type="text/javascript"> //<![CDATA[ Sys.WebForms.PageRequestManager._initialize('ctl02$ScriptManager1', document.getElementById('ctl01')); Sys.WebForms.PageRequestManager.getInstance()._updateControls([], [], [], 90); //]]> </script> <div> <table cellspacing="0" border="0" id="ctl02_DetailsView1" style="border-collapse:collapse;"> <tr> <td colspan="2"><b>Account Type:</b></td><td></td> </tr></table> </div> </div> <script type="text/javascript"> //<![CDATA[ Sys.Application.initialize(); //]]> </script></string>  

How can I do this?

Thanks












Rosi
Telerik team
 answered on 14 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?