Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
114 views
Dears,
I have a problem in RadGrid, It is splitting the field content data into new lines - for each space - although the coulmn width is enough to write the words without wrapping it,

Regards,
Shinu
Top achievements
Rank 2
 answered on 17 Aug 2009
1 answer
108 views
I have a "selectitem" checkbox  column and a "selectALL" checkbox in the column header.
When I unselect a checkbox in a item row I want to locate and unselect "selectALL" checkbox in header. 

How can I locate the "selectAll" checkbox in header? please help.
Princy
Top achievements
Rank 2
 answered on 17 Aug 2009
1 answer
106 views
I have a radgrid.
now when page loads then i want to check weather the grid have data or it is empty.
i have used getcoumnnamebyuniquename ......  property.
it works fine when grid have data but when the grid is empty then it gives javascript error.
that undefined is null or not an object.
please help me in this regard.

how can i check client side page load that grid have data or not?
Shinu
Top achievements
Rank 2
 answered on 17 Aug 2009
5 answers
468 views
Hello,

On the demo site I found your client side example how to switch tabs on a button click. This example is working as expected as long as I am not using User Controls.

On my page ("default.aspx") I do have a TabStrip with 2 tabs, and a Multipage with 2 PageViews.
<telerik:RadTabStrip ID="rtsTabs" runat="server" SelectedIndex="0" Skin="WebBlue" Orientation="HorizontalTop" 
                    MultiPageID="rmpMultipages" OnClientTabSelecting="rtsTabs_TabSelecting" OnTabClick="rtsTabs_TabClick">  
                    <Tabs> 
                        <telerik:RadTab Text="Employee" runat="server" PageViewID="rpvEmployee" /> 
                        <telerik:RadTab Text="Manager" runat="server" PageViewID="rpvManager" TabIndex="1" /> 
                    </Tabs> 
                </telerik:RadTabStrip> 
                  
                <telerik:RadAjaxLoadingPanel runat="server" ID="LoadingPanel1">  
                    <asp:Image runat="server" ID="LoadingImage1" SkinID="AjaxBigBlue" /> 
                </telerik:RadAjaxLoadingPanel> 
 
                <telerik:RadMultiPage ID="rmpMultipages" runat="server" SelectedIndex="0">  
                    <telerik:RadPageView ID="rpvEmployee" runat="server" Selected="true" TabIndex="0" CssClass="ContentForm">  
                        <ucEmployee:UserControl ID="ucEmployeeForm" runat="server" /> 
                    </telerik:RadPageView> 
                    <telerik:RadPageView ID="rpvManager" runat="server" TabIndex="1" CssClass="ContentForm">  
                        <ucManager:UserControl ID="ucManagerForm" runat="server" /> 
                    </telerik:RadPageView> 
                      
                </telerik:RadMultiPage> 

When I trigger an event on details.aspx to switch tab and pageview everything works as expected (according to your advertised example on the demo pages).
function SetTab(sTabText)  
            {  
                var tab = $find("rtsTabs").findTabByText(sTabText);  
                if (tab != null)  
                {  
                    tab.set_selected(true);  
                    var pageView = $find("<%= rmpMultipages.ClientID %>");  
                    var pageViewIndex = 3;  
                    pageView.get_pageViews().getPageView(pageViewIndex).set_selected(true);  
                }  
            } 

But as I said, the pageviews are actually loading User Controls and so the Events are triggered from the User Control and that is causing the problem.

$find("rtsTabs") always returns a proper object. But it never finds the Multipages. $find("rmpMultipages") or $find("<%= rmpMultipages.ClientID %>") always returns null.

The Button Click in the User Control is doing this (RowCommandEvent within a Gridview):
if (e.CommandName == "Aufgabe")  
{  
      ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "SetTab('Employee');"true);  


I also tried to create my own event which is triggered from the UserControl and executed from details.aspx but the result remains the same: I can switch the tabs but I cant switch the pageview.
Mike Conine
Top achievements
Rank 1
 answered on 17 Aug 2009
1 answer
197 views

Hi,

I've a  a radgrid inside a radpanelItem

     <telerik:RadPanelItem Value="RadPanelRecipientGroup" runat="server">
                                              
                                       <ItemTemplate>
                                      
                                          <telerik:RadGrid ID="m_radRecipientGroupGrid" runat="server"
                                                BorderStyle="Solid"
                                                BorderWidth="1px"
                                                CellPadding="0"  
                                                AllowMultiRowSelection="True"
                                                HorizontalAlign="Left"
                                                GridLines="Horizontal">
                               
                               <MasterTableView AllowPaging="true" AllowSorting="true" AllowFilteringByColumn="true"
                                   PagerStyle-Mode="NextPrevNumericAndAdvanced" PageSize="10">
                            
                   
                                <Columns>
                                  <telerik:GridClientSelectColumn Reorderable="False"     UniqueName="ClientRecipGroupColumn">
                                           <HeaderStyle Width="20px">
                                           </HeaderStyle>
                                          
                                  </telerik:GridClientSelectColumn>
                               
                                </Columns>
                         
                               </MasterTableView>
                                 <ClientSettings>
                                    <Scrolling  AllowScroll="True"
                                                UseStaticHeaders="True" />
                                    <Selecting  AllowRowSelect="true"/>
                                
                                 </ClientSettings>
                                         </telerik:RadGrid>
                                       </ItemTemplate>
                                    </telerik:RadPanelItem>

 

How do I invok the radgrid's needdatasource property since I'm not getting this radgrid's name in Properties window.
Pls do help with code.

thanks,
ZR

Princy
Top achievements
Rank 2
 answered on 17 Aug 2009
1 answer
76 views
How would i go about setting the tool tip via javascript for the rad combo box?
Jimmy Quach
Top achievements
Rank 1
 answered on 17 Aug 2009
2 answers
1.3K+ views
Hi,

I am using "RadComboBox" with couple of client side events which helped me in achieving the goal of cascading dropdowns. [when I select the first combobox item my second combobox will be loaded & after selecting the second comboboxItem thried combobox will be loaded etc.]

I followed the example at "http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multiplecomboboxes/defaultcs.aspx"

Currently I need to show different background color/ different font color when I am showing "Loading...." message on each dropdown. 
Since I am setting this "Loading..." message in the client side javascript as  "Combo.set_text("Loading...")"
Can anyone help me how to change its color....

Thanks
Venm
venm
Top achievements
Rank 1
 answered on 16 Aug 2009
7 answers
240 views
  Hi ,
    I am have tried both of these .....
<telerik:GridButtonColumn CommandName="Edit" ButtonType="ImageButton"   
                               ImageUrl="../../iqimages/iqimage$/Edit2.gif" 
                                HeaderStyle-Width="20px" Resizable="false" UniqueName="iqEditColumn" ItemStyle-HorizontalAlign="Center">  
                                <ItemStyle HorizontalAlign="Center" /> 
                            </telerik:GridButtonColumn> 
                          <%--   <telerik:GridEditCommandColumn HeaderStyle-Width="20px" ButtonType="ImageButton"   
                                UniqueName="iqEditColumn"     
                                Resizable="false" EditImageUrl="../../iqimages/iqimage$/Edit2.gif">  
                            </telerik:GridEditCommandColumn> --%> 

    and in IE the program loads with the images just fine. But in FF the screen initially loads with this button saying "Submit Query". I saw an old post where vlad suggested it might be because the image cannot be found. However, the image is found here and displays in fire fox as soon as the screen is fully loaded. 
Vlads response:
http://www.telerik.com/community/forums/aspnet/grid/problem-with-imagebutton-type-in-firefox.aspx
    Here is an interesting google on this issue :
http://blogs.sun.com/tor/entry/submit_query_what_query 
    I just cannot figure out the "value of the button" they are talking about.  
 thanks for your help
IQworks
Top achievements
Rank 1
 answered on 16 Aug 2009
1 answer
139 views
Hello,

I am in process of converting my client-side code from the RadControls Classic (ASP.NET Q3) to ASP.NET AJAX.  In my SharePoint page I have the following:

   <div onclick="PageViewClicked(tabStrip1,multiPage1)">
    <telerik:RadMultiPage runat="server"
     id="RadMultiPage1"
     CssClass="subTabs"
     SelectedIndex="-1">
    </telerik:RadMultiPage>
   </div>

   <script type="text/javascript">
    var tabTargetIndex;
    var multiPage1 = <%=RadMultiPage1.ClientID %>;
    var tabStrip1 = <%=RadTabStrip1.ClientID %>;
   </script>

I have a JavaScript function that activates whenever the RadTabStrip is moused over:

 function OnClientMouseOverTabHandler(sender, eventArgs)
 {
//  var pvIDArray = eventArgs.get_tab().get_pageViewID().split("_");
//  var pvID = pvIDArray[3];
  var pvID = eventArgs.get_tab().get_index();

alert(multiPage1.get_visible());  // THE CODE BREAKS HERE.  "multiPage1" reports as an object, but "get_visible()" breaks.

  multiPage1.set_selectedIndex(pvID);

  var pvIndex = multiPage1.get_selectedIndex();
alert(pvIndex);  
  if(pvIndex != -1)
  {
   var pvClientID = multiPage1.PageViews[pvIndex].ClientID;  // THIS LINE UNFINISHED.
   var tabstripOffset = sender.get_tabs().getTab(0).get_element().offsetLeft;

   document.getElementById(pvClientID).className = "subTabs";
   document.getElementById(pvClientID).style.left = ((sender.get_tabs().getTab(eventArgs.get_selectedIndex()).get_element().offsetLeft)-tabstripOffset)+"px";

            if(!sender.get_tabs().getTab(eventArgs.get_selectedIndex()).get_enabled())
            {
                document.getElementById(pvClientID).style.visibility = "hidden";
            }

   if(document.getElementById(pvClientID).offsetWidth < sender.get_tabs().getTab(eventArgs.get_selectedIndex()).get_element().offsetWidth)
   {
//          document.getElementById(pvClientID).style.width = sender.get_tabs().getTab(eventArgs.get_selectedIndex()).get_element().offsetWidth + "px";
   }
  }
 }

 

I cannot get the "multiPage1" object to respond to any of the client-side methods.  Does anyone have a clue?

Many thanks,

Doug

Doug
Top achievements
Rank 1
 answered on 16 Aug 2009
0 answers
172 views
Is there any way to have a RadToolbar appear 100% of the width of it's parent container, such as a table cell or div? Setting it to 100% doesn't seem to do anything.

OK, I found that the issue is being caused by the .RadMenu style, generated by the control itself. It is setting the float property to left. If I disable that style element only it does in fact show the full width of it's container, but I am not sure how to tell it to do that permanently, I am only able to turn off the style using the IE Developer Toolbar.

Any suggestions? Putting the toolbar itself in a div that has a float attribute of none doesn't do anything either.

NEVERMIND - I found the answer in another post I hadn't originally seen.
Tayonee
Top achievements
Rank 1
 asked on 15 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?