Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
409 views
I have a RadTreeView control that is configured to Load on Demand (client side). Specifically, the TreeNodeExpandMode is "ServerSideCallBack".

I would like to be able to select the selected node upon the loading of the page. I have this working fine with a TreeView that is "fully loaded" (meaning all of the nodes are pre-loaded), but the page is very large because of the size of the treeview.

I could not find an example showing how to load only the root nodes + the nodes that need to be loaded in order to make this work. Any suggestions would be appreciated!
Nikolay Tsenkov
Telerik team
 answered on 09 Aug 2010
1 answer
86 views
I can't move my mouse over the child elements of any of the tabs except the initial tab.

code:

<telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
            
        

        <script type="text/javascript">
            /* <![CDATA[ */
            function SelectMyTab(sender, eventArgs) {
                var tab = eventArgs.get_tab();
                tab.select();
            }

            function UnSelectMyTab(sender, eventArgs) {
                var tabStrip = $find('<%= RadTabStrip1.ClientID%>');
                if (!tabStrip) return;
                //Find the element which the mouse is over
                var destElement = eventArgs.relatedTarget || eventArgs.toElement;
                if ($telerik.isDescendant(tabStrip.get_element(), destElement))
                    return;
                var initialTab = tabStrip.findTabByText(tabStrip.get_attributes().getAttribute("InitialTab"));
                initialTab.unselect();
                initialTab.selectParents();
            }
            /* ]]> */
        </script>
        </telerik:RadCodeBlock>

        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadTabStrip1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>


        <telerik:RadTabStrip ID="RadTabStrip1" runat="server" UnSelectChildren="True"
                                OnClientMouseOver="SelectMyTab"
                                OnClientMouseOut="UnSelectMyTab"
                                ClickSelectedTab="True"
                                SelectedIndex="0"
                                AutoPostBack="True" Skin="" >
            <Tabs>
                <telerik:RadTab runat="server" Text="HOME"
                    CssClass="selectedNav">
                    <Tabs>
                        <telerik:RadTab runat="server" Text="Child RadTab 1" CssClass="childNav">
                        </telerik:RadTab>
                        <telerik:RadTab runat="server" Text="Child RadTab 2" CssClass="childNav">
                        </telerik:RadTab>
                    </Tabs>
                </telerik:RadTab>
                <telerik:RadTab runat="server" Text="GROW YOUR BUSINESS"
                    CssClass="unselectedNav">
                    <Tabs>
                        <telerik:RadTab runat="server" Text="test" CssClass="childNav">
                        </telerik:RadTab>
                        <telerik:RadTab runat="server" Text="test 2" CssClass="childNav">
                        </telerik:RadTab>
                    </Tabs>
                </telerik:RadTab>
                <telerik:RadTab runat="server" Text="INCREASE SALES" CssClass="unselectedNav"
                    Selected="True">
                </telerik:RadTab>
            </Tabs>

        </telerik:RadTabStrip>

Please help.

Thanks,

Kirk
Yana
Telerik team
 answered on 09 Aug 2010
1 answer
324 views
I want to add a serial column in the grid that is not related to database. How can I do this?
Princy
Top achievements
Rank 2
 answered on 09 Aug 2010
2 answers
104 views
Hi,

I thought I saw some postings for this, but I can't seem to find the keywords to find them now, so perhaps someone can remind me.

Basically, in our scheduling application, the board displays double height rows whenever there are appointments on the row. We would much prefer that it didn't do this particularly because we don't allow insert, and don't handle events on the timeslot cell.

Is there a way to stop the rows from displaying the unnescessary blank space.

Thanks.
Dave
Top achievements
Rank 1
 answered on 09 Aug 2010
0 answers
82 views
Hi All,
i want to build page with dynamic videos that this videos goes from database.how can i create a box to show a slice of source video like gallery pages.
thx
kv's rhwnd
Top achievements
Rank 1
 asked on 09 Aug 2010
1 answer
129 views
Hi.
I have a grid with a combobox that use OnItemsRequested, to get only the values that is not already in the grid. But the problem is that i can not get a record in edit mode when using OnItemsRequested. If I instead use the combobox datasource, the edit mode works fine but then i get all the values from the database table. In edit-mode the user should not have the possibility to change the value and thee combobox will be disabled. (The OnItemsRequeste methode will not fill the combobox values with the choosen value from insert.) So how can i work it out?

The following code i am using is:

protected void RadComboBox1_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
      {
          var users = MtUserAccountBiz.GetMtUserWithNoAccountMapping();
 
          var comboBox = (RadComboBox)sender;
          comboBox.Items.Clear();
          foreach (var user in users)
          {
              var item = new RadComboBoxItem();
              item.Text = user.UserNumber + " " + user.FirstName + " " + user.LastName;
              item.Value = user.UserNumber.ToString();
              comboBox.Items.Add(item);
          }          
      }


<Columns>       
  <telerik:GridTemplateColumn UniqueName="UserNumber" DataField="UserNumber" HeaderText="Bruker"  >
    <ItemTemplate><%#DataBinder.Eval(Container.DataItem,"UserNumber")%></ItemTemplate>
    <EditItemTemplate>
      <telerik:RadComboBox DataTextField="UserNumber" DataValueField="UserNumber" EnableLoadOnDemand="True" ID="RadComboBox1"   HighlightTemplatedItems="true"
            runat="server" Height="160px" Width="220px" SelectedValue='<%#Bind("UserNumber") %>'  
                   OnItemsRequested="RadComboBox1_ItemsRequested" AutoPostBack="true">                   
      </telerik:RadComboBox>
    </EditItemTemplate>
  </telerik:GridTemplateColumn>
  <telerik:GridNumericColumn  DataField="Account" HeaderText="Reskontro"  UniqueName="Account">   </telerik:GridNumericColumn>
  <telerik:GridEditCommandColumn CancelText="Avbryt" EditText="Endre" InsertText="Sett inn" UpdateText="Oppdater"></telerik:GridEditCommandColumn>
                     
    </Columns>
Cecilie Nordbø
Top achievements
Rank 1
 answered on 09 Aug 2010
1 answer
58 views
Hi,

the content of the radSliddingPane is always white or without style.

I set for the radformdecoartor DecoratedControls to "All"
I my RadSliddingPane I have asp Panel, asp Label and Radcombobox.

You can see the screen shoot of my problem in attached file.

What do I do to resolve this problem?

Thanks.

Stéphane.
Svetlina Anati
Telerik team
 answered on 09 Aug 2010
1 answer
257 views
Hi,
I note that the RadSkinManager does not apply "skinID" property to user controls. For example, the included Telerik sample "LoginControl.ascx" does not inherit the skin set using RadSkinManager on the masterpage.
Is there some generic code you could suggest that could be applied to any of the following to program the user controls to inherit the skin of the masterpage?
Page_Load event of either the masterpage or the actual user control
OnPreInit of the BasePage class

...or is there a more efficient way of applying skins to user controls programmatically?
Tsvetina
Telerik team
 answered on 09 Aug 2010
4 answers
160 views
Hi.
I have a grid with a GridTemplateColumn containing a combobox. I want the combobox to only be available when the grid is in insert mode. I use the following code:
protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
 {     
    if (e.Item.OwnerTableView.IsItemInserted && e.Item is GridDataInsertItem)
    {
        var column =
(GridTemplateColumn)e.Item.OwnerTableView.GetColumnSafe("UserNumber");
         column.ReadOnly = false;
   }
             
   if (!(e.Item is GridDataInsertItem) && e.Item.IsInEditMode)
   {
         var column = (GridTemplateColumn)e.Item.OwnerTableView.GetColumnSafe("UserNumber");
         column.ReadOnly = true;
   }           
}

But the problem is that sometimes the combobox is available in edit mode and othertimes is not, also the same for insert mode. Somebody who knows what i am doing wrong? I assume the if-test maybe is wrong...

The code for the grid only the columns:
<Columns>      
   <telerik:GridTemplateColumn UniqueName="UserNumber" DataField="UserNumber" HeaderText="Bruker" SortExpression="UserNumber">                   
   <ItemTemplate><%#DataBinder.Eval(Container.DataItem,"UserNumber")%></ItemTemplate>
   <EditItemTemplate>
  <telerik:RadComboBox DataTextField="UserNumber" DataValueField="UserNumber" EnableLoadOnDemand="True" ID="RadComboBox1"   HighlightTemplatedItems="true"
                     runat="server" SelectedValue='<%#Bind("UserNumber") %>' DataSourceID="MtUserLinqDataSource">
  <ItemTemplate>                        
    <%# DataBinder.Eval(Container.DataItem, "UserNumber") %> 
    <%# DataBinder.Eval(Container.DataItem, "FirstName") %> 
    <%# DataBinder.Eval(Container.DataItem, "LastName")%>                        
  </ItemTemplate>
 </telerik:RadComboBox>
</EditItemTemplate>
</telerik:GridTemplateColumn>   
<telerik:GridNumericColumn DataField="Account" HeaderText="Reskontro"  UniqueName="Account"></telerik:GridNumericColumn>
<telerik:GridEditCommandColumn CancelText="Avbryt" EditText="Endre" InsertText="Sett inn" UpdateText="Oppdater"></telerik:GridEditCommandColumn>     
</Columns>



Ceci

Cecilie Nordbø
Top achievements
Rank 1
 answered on 09 Aug 2010
2 answers
72 views
Hi,

Is it possible to get the VisibleRangeStart and End from javascript?

Cheers
Jon
Jonathan Levy
Top achievements
Rank 1
 answered on 09 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?