Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
121 views
Hi, I am trying to have a button to select all checkboxes from client side.
Grid
<telerik:GridTemplateColumn UniqueName="Features"> 
                            <ItemTemplate> 
                                <div id="resultList"> 
                                    <asp:CheckBox ID="checkTag" CssClass="mapcheck" runat="server" AutoPostBack="True" 
                                        OnCheckedChanged="CheckTag_CheckedChanged" /> 
 
                                <div> 
                                    <%#Eval("DisplaySearchRef")%> 
                                </div> 
                            </ItemTemplate> 
                            <HeaderStyle Width="100%" /> 
                        </telerik:GridTemplateColumn> 

JS
  for (var i = 0; i < masterTable.get_dataItems().length; i++) { 
                            var gridItemElement = masterTable.get_dataItems()[i].findControl("checkTag"); 
                            if (gridItemElement != null) { 
                                alert('ok'); 
                                gridItemElement.checked = true; 
                            }                             
                        } 

which doesn't seems to work, any idea?
Shinu
Top achievements
Rank 2
 answered on 13 Jan 2010
2 answers
180 views
On my page I have some text boxes along with a corresponding checkbox.
If the user enters some value in the textbox i want to select the checkbox and deselect if the user deletes the text.

I was able to get the functionality working for one textbox at a time by referring to this thread: 
http://www.telerik.com/community/forums/aspnet-ajax/input/radnumerictextbox-onvaluechanged-update-label-text.aspx

However, I want to write a single function that can be called for all the textboxes.
All my textboxes and checkboxes have similar naming convention. Like my textboxes are named TextBox1, textBox2, textBox3 and my checkboxes are named CheckBox1, checkbox2, checkbox3.

Can you help me with an example to achieve this?

Thanks.
newbie
Top achievements
Rank 1
 answered on 13 Jan 2010
2 answers
112 views
When we select any time from the list (AM/PM) it will show only AM within the textbox.

i.e.
11:00 AM and 11:00 PM( or 23:00 PM) both are displayed 11:00 AM after the time is selected and time picker pop up is closed.

Any idea what the problem could be?
Hani Arab
Top achievements
Rank 1
 answered on 12 Jan 2010
2 answers
170 views
Is there any way to have an icon AND the title text visible in a single docks titlebarContainer? 
Malichone
Top achievements
Rank 1
 answered on 12 Jan 2010
9 answers
243 views

I was hoping this problem would get fix in the latest release, but it appears to still be here. Or maybe it's something I'm doing. Either way, I'm stuck and I need to find a solution. I have a dynamic RadGrid created on a dynamic page/scriptmanager, update panel.

Everything works good until I use paging:

Error: [Exception... "'Sys.WebForms.PageRequestManagerParserErrorException: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near '<html>
    11945|updat'.' when calling method: [nsIDOMEventListener::handleEvent]"  nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)"  location: "<unknown>"  data: no]

If I remove the update panel it seems to work fine, but obviously that is not what I want. I also don't have anything written to the screen (with Response.Write) when I do a full post back without the updatepanel.

Any ideas? I've had this problem for over a month now.



Tom M
Top achievements
Rank 1
 answered on 12 Jan 2010
2 answers
237 views
I have a panelbar with height/width set to 100%. The panelbar resides in a splitter pane. If the content of a particular panelitem template is to large, I expect both horizontal and vertical scrollbars to appear. I am able to get the vertical scrollbars, but am having issues getting horizontal scrollbars to appear in Firefox 3.5. They appear coorectly in IE6 (shocking!). I haven't tried in IE 7/8. I am using the latest internal build of the controls (Q3 2009 1306)

The following is an example of my markup. I included an oversized div in the second panel item to try and demonstrate the scrollbars, but only the vertical bars showed up, even though I reduced the width of the left splitter pane (which holds the panelbar) to far less than  300px.:

<telerik:RadPanelbar id="rpbOrg"   
                    Runat="server"   
                    Height="100%"   
                    Width="100%" 
                    ExpandMode="FullExpandedItem"   
                    Skin="Office2007" 
                    style="height: 100%; border:0px;">  
    <Items> 
        <telerik:RadPanelItem Text="My Info" Value="MyInfo" Expanded="False">  
            <Items> 
                <telerik:RadPanelItem > 
                    <ItemTemplate> 
some content  
                    </ItemTemplate> 
                </telerik:RadPanelItem> 
            </Items> 
        </telerik:RadPanelItem> 
        <telerik:RadPanelItem Text="My Evaluations" Value="MyEvaluations" > 
            <Items> 
                <telerik:RadPanelItem > 
                    <ItemTemplate> 
                        <div style="width:300px; height:1000px; background-color:Red;"></div> 
                    </ItemTemplate> 
                </telerik:RadPanelItem> 
            </Items> 
        </telerik:RadPanelItem> 
        <telerik:RadPanelItem Text="My Caseload" Value="MyCaseload" id="pbiCaseload">  
            <Items> 
                <telerik:RadPanelItem Value="Caseload" > 
                    <ItemTemplate> 
                        some other content                    </ItemTemplate> 
                </telerik:RadPanelItem> 
            </Items> 
        </telerik:RadPanelItem> 
            </Items> 
</telerik:RadPanelbar> 

One interesting to note, if I use a treeview instead of the oversized div, the treeview's horizontal scrollbar shows up. However, if the treeview is longer than the vertical space available, I have to scroll down using the panel bar's scrollbar in order to see the horizontal scrollbar generated by the treeveiw. This occurs in all browsers I have tried. In my real app I need to get the panelbar working with the treeview, but for now I would settle for just having the scrollbars working properly with the oversized div.
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
 answered on 12 Jan 2010
0 answers
131 views
I would say about 90% of the development work I do involves desktop-like web applications which require fluid layouts (ie panels which fit a resizable container, rather than some predetermined container size) This requires things like splitters, panelbars and grids with 100% height/width and proper scrolling. Telerik has made tremendous strides in their recent releases in getting fluid layout scenarios to function cross-browser, and this is no small feat considering the variance in browser compliance with standards, not to mention the inticacies brought about by AJAX. Going forward, I expect they will continue to refine and improve this area. One thing I would like to see, is the markup/javascript/style "hacks" become more embedded within the controls. For example, if I have a panelbar who's height/width is set to 100%, in order to get scrollbars to appear properly in Firefox when the panel item content is too large, I have to add the following style declaration:

.RadPanelBar .rpItem {  
            overflow: visible !important;  
        }  
       
        .RadPanelBar .rpLevel1 {  
            height: 100% !important;  
            overflow: auto !important;  
        } 

This is no big deal, but I find that I hae to add these sorts of declarations in many different scenarios invovling a number of telerik controls in order to get them to function properly in fluid layout scenarios. If would be great if Telerik could encapsulate these bits of code within the control itself. Perhaps that would require the additon of a property like "FillAvailableSpace", or maybe telerik can simply determine that the height/width of one of their objects is set to 100%, but either way, encapsulating the necessary code bits would make development far easier, not to mention what is necessary sometimes when telerik changes its skins and/or other control features.
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
 asked on 12 Jan 2010
10 answers
209 views
Hi,

Would you please provide sample code to enable hyperlink for telerik:RadMenu + XmlDataSource ?

Thanks

daniel
daniel liu
Top achievements
Rank 1
 answered on 12 Jan 2010
2 answers
299 views
Greetings,

I need to provide users with a prompt requiring them to enter data into a text box and also select a single item from a drop down list box.  I found the following article in the Telerik Forums:

http://www.telerik.com/support/kb/aspnet-ajax/window/custom-radprompt-for-radwindow.aspx

Its easy enough to make work.  However, I need to dynamically populate the drop down list box with values taken from server side code.  I have not found a clever way of doing this.  I tried creating a custom template in code via this article:

http://www.telerik.com/help/aspnet-ajax/window_dialogschangingthedialogtemplates.html

The above article does not describe how you could populate the drop down list box using server code.  I'm out of ideas.  Any suggestions would be helpful.  Thanks.
Kurt Boeckman
Top achievements
Rank 1
 answered on 12 Jan 2010
5 answers
219 views
Hi:

I have a business layer that is returning Value and Text in a DataTable for all my combo-boxes in my application.
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server"  
    SelectMethod="AccountNumber" TypeName="Aplic.BLL.DropDowns"> 
</asp:ObjectDataSource> 
<telerik:RadComboBox ID="RadComboBox1" runat="server"  
    DataSourceID="ObjectDataSource1" DataTextField="Text" DataValueField="Value"> 
</telerik:RadComboBox> 
 
In the designer it is always displaying:
  RadComboBox1
  There was an error rendering the control.
  Text is neither a DataColumn nor a DataRelation for table.
How can I solve this design time issue.
Phil
Simon
Telerik team
 answered on 12 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?