Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
122 views

Hallo,
when I am use radgrid editmode=popup with a web user controll with insert action the template was displayed with empty field (no datarecord was bound).
For a better useibility I want to preset the template fields with default values. But how can I do this? To set the fields in the user control has no affect becaus it would be overitten after bounding to the empty insert record.

Harald

Eyup
Telerik team
 answered on 24 Jun 2016
1 answer
132 views

Is there some way to add a QueryString to the NavigateUrl parameter of a NavigationNode like ?ClientID=123

each node in my navigation needs to have the QS appended when the web form based on a master page that contains the <RadNavigation/> loads for a new client

I was thinking the codebehind of the .master could modify the NavigateUrl of each node?

david
Top achievements
Rank 1
 answered on 23 Jun 2016
1 answer
23 views

I have many telerik rad grids in my DNN project . It initialize with ability to have client side row selection with

<clientsettings>
      <Selecting AllowRowSelect="True" />
</clientsettings>

it is ok and in first load when my paging selector is on 10 object per grid selecting works fine , but when I change page size to 20 or 50 selecting suddenly stops working and I can not select row anymore . Can anyone help me with this ?

Pavlina
Telerik team
 answered on 23 Jun 2016
1 answer
226 views

I am using Telerik RadDiagram for building a diagram. The gray lines are over the shapes (requirements, development etc) in my diagram. Is there any way to put them behind the shapes?

// ... getting ready the shape objects ...
for (int i = 0, j = 0; i < monthCount + 1; i++, j = j + 2)
{
// ... getting ready the shape and connection objects...
RadDiagram1.ShapesCollection.Add(shapeForLines[j]);
RadDiagram1.ShapesCollection.Add(shapeForLines[j + 1]);
RadDiagram1.ConnectionsCollection.Add(monthLine[i]);
RadDiagram1.ShapesCollection.Add(labelMonth[i]);
}
for (int i = 0; i < 7; i++)
{
if (i < 6)
{
RadDiagram1.ShapesCollection.Add(shape[i]);
}
if (i < 7)
{
RadDiagram1.ShapesCollection.Add(label[i]);
}
}

Vessy
Telerik team
 answered on 23 Jun 2016
5 answers
52 views
I have tried setting the property for the filter window to sort the setbox here for the pivot grid

FilterWindow-SetBox-Sort="Ascending" 

Have also tried sorting from code behind (which does seem to sort the items) and then update the setbox but no matter what I try the items in the setbox list are always completely unsorted. I tried putting this code in multiple events but something must be firing after the fact to unsort the values or sort them based on groups. I want a clean alphabetical sort for all items in the list. Thanks

RadPivotGrid1.FilterWindow.SetBox.Sort = RadListBoxSort.Ascending;
RadPivotGrid1.FilterWindow.SetBox.SortItems();
RadPivotGrid1.FilterWindow.SetBox.DataBind();
Konstantin Dikov
Telerik team
 answered on 23 Jun 2016
1 answer
208 views

hi all, please help me. i have code below and it adds tab and pageview fine. but after 2 tab it will not add anymore and keep complaining that i'm trying to add control with same ID. i know i'm not adding the same ID. So please help me resolve this issue. thank you so much for your time

<script type="text/javascript">
        function OnClientTabSelecting(sender, eventArgs) {
            var tab = eventArgs.get_tab();
            if (tab.get_text() == "")
            {
                document.getElementById("div_AddTab").style.display = "block";
                eventArgs.set_cancel(true);
            }
            else
            {
                eventArgs.set_cancel(false);
            }
        }
    </script>
 
<div id="div_AddTab" style="display:none;">
        Tab Title: <telerik:RadTextBox ID="txt_TabTitle" runat="server" />
        Element Type: <telerik:RadComboBox ID="ddl_ElementType" runat="server" />
        <telerik:RadButton ID="btn_AddTab" runat="server" Text="Add Tab" />
 <div>
    <div>
        <telerik:RadTabStrip RenderMode="Lightweight" runat="server" ID="RadTabStrip1"  Orientation="HorizontalTop" Width="760"
             MultiPageID="RadMultiPage1" Skin="Windows7" OnClientTabSelecting="OnClientTabSelecting">
            <Tabs>
                <telerik:RadTab runat="server" Text="tab1" />
                <telerik:RadTab runat="server" Text="tab2" />
                <telerik:RadTab runat="server" Text="" ImageUrl="~/images/add.png" />
            </Tabs>
        </telerik:RadTabStrip>
        <telerik:RadMultiPage ID="RadMultiPage1" runat="server" Width="760" Height="380" SelectedIndex="0" OnPageViewCreated="RadMultiPage1_PageViewCreated">
            <telerik:RadPageView ID="RadPageView1" runat="server">
                test
            </telerik:RadPageView>
            <telerik:RadPageView ID="RadPageView2" runat="server">
                test 2
            </telerik:RadPageView>           
        </telerik:RadMultiPage>
    </div>

Protected Sub btn_AddTab_Click(sender As Object, e As EventArgs) Handles btn_AddTab.Click       
        AddPageView(Trim(txt_TabTitle.Text), ddl_ElementType.SelectedItem.Text)
        AddTab(Trim(txt_TabTitle.Text))
    End Sub
 
    Protected Sub RadMultiPage1_PageViewCreated(sender As Object, e As RadMultiPageEventArgs)
        Dim rad_Editor As RadEditor = New RadEditor
        Dim radSlider As New RadSlider
        Select Case ddl_ElementType.SelectedValue
            Case "T"
                rad_Editor.ID = "radEditor_" & Trim(txt_TabTitle.Text)
                e.PageView.Controls.Add(rad_Editor)
            Case "B"
 
            Case "N"
        End Select
    End Sub
 
    Private Sub AddTab(title As String)
        Dim tabTemplate = New TabTemplate()
        Dim tab As New RadTab() With { _
            .Text = title,
            .PageViewID = "pv" & title _
        }
        RadTabStrip1.Tabs.Insert((RadTabStrip1.Tabs.Count - 1), tab)
        RadTabStrip1.DataBind()
        RadTabStrip1.SelectedIndex = tab.Index
    End Sub
 
    Private Sub AddPageView(pvId As String, elementType As String)
        Dim pageView As RadPageView = New RadPageView()
        pageView.ID = "pv_" & pvId
        pageView.CssClass = "pageView"
        RadMultiPage1.PageViews.Add(pageView)
        RadMultiPage1.SelectedIndex = pageView.Index
 
    End Sub
Duy
Top achievements
Rank 1
 answered on 23 Jun 2016
1 answer
187 views

Hi,

I am trying to bind SharePoint 2013 Online calendar list with Kendo UI Scheduler. All the events are getting displayed except recurring events.

Is there any example available to bind SharePoint recurrence events with Kendo UI Scheduler?

I tried to fetch 'RecurrenceData' field using REST and bind it to the recurrenceRule field but it doesn't seem to be working.

 

Thanks,

Shruti

Vladimir Iliev
Telerik team
 answered on 23 Jun 2016
6 answers
258 views
i've been searching for a way to get the Text of my Menu to be in the middle of the Tab. I've found different Forum posts, seemingly about the same thing as me, but they dont seem to work.
here is my code so far

<div style="height:20%;padding-top:50px;">
           <telerik:RadMenu ID="RadMenu1" Style="float:right;" Flow="Horizontal" runat="server">
              
          <Items>
              <telerik:RadMenuItem text="Messages"></telerik:RadMenuItem>
              <telerik:RadMenuItem Text="Stock"></telerik:RadMenuItem>
              <telerik:RadMenuItem Text="Cash"></telerik:RadMenuItem>
              <telerik:RadMenuItem Text="Staff"></telerik:RadMenuItem>
              <telerik:RadMenuItem Text="Reports"></telerik:RadMenuItem>
              <telerik:RadMenuItem Selected="true" Text="Stock Admin" >
                 <GroupSettings Flow="Vertical" />
                  <Items>
                      <telerik:RadMenuItem Text="Admin"></telerik:RadMenuItem>
                      <telerik:RadMenuItem Text="Stock Admin"></telerik:RadMenuItem>
                  </Items>
              </telerik:RadMenuItem>
          </Items>
      </telerik:RadMenu>
       </div>


/*RadMenu Styles*/
/*This is the new Menu that is on the Header.ascx control*/
 
  
     
     
    .RadMenu_Default .rmGroup .rmLink {
        padding-left: 0px ;      /*these two will give the Sub Menu Items their styling*/
    }
    .RadMenu_Default .rmGroup .rmLink .rmText {
        padding-left: 5px ;      /*these two will give the Sub Menu Items their styling*/
    }
 
    .RadMenu_Default  .rmRootGroup  .rmSelected
    {
        background:#f7931d; /*what happens when the Tab is 'Selected'*/           
      
    }
 
 
    div.RadMenu .rmRootGroup
    {
        /*all the border tags here, remove the black border that went round the entire Menu Control*/
        border-width:0px;    
        border-bottom:5px solid #f7931d;  
              
    }
 
 
 
    div.RadMenu .rmGroup .rmItem .rmText
    {
        text-align:left;       
    }
 
    .RadMenu_Default .rmRootGroup .rmItem .rmText
    {
        text-align:center;
  
        /*the Border tags help to seperate each Root Menu Tab to make it look like its a seperate entity*/
        border-left:solid;          
        border-right:solid;
        border-left-color:white;
        border-right-color:white;                       
         
         
        width:70px; /*width of each Root Menu Items*/
        /*height:35px;    height of each Root Menu Items*/
        height:35px;
        color:#979797; /*colour of the text on Root and Sub Menu Tabs*/
        font-family:Helvetica, Arial, sans-serif;       
    }
  
 
 
    .RadMenu_Default .rmRootLink:hover span.rmText
    {
        /*this sets the text white for the Root Menu Items only, when hovering over the Root Menu Item*/
       color:white
    }
 
    .RadMenu_Default .rmGroup .rmLink:hover span.rmText
    {
        /*This sets the text white when hovering over the Sub Menu Items.*/
        color:white;
         
    }
 
    .RadMenu_Default .rmGroup .rmText
    {
        /*the border and background properties will remove the block on the left side of the Sub Menu Items where an icon would usually be placed.*/
         border: 1px solid #979797 ;
         background: #f0f0f0 ;                      
          
    }
  
    .RadMenu_Default .rmText:hover
    {
        background:#f7931d; /*background of tabs when moused over*/
        cursor: pointer; cursor: hand;
    }
 
    .RadMenu_Default .rmRootGroup
    {
        background: #f0f0f0 /*specify the colour of the Root Tabs. Without doing this, it gives a gradient colour scheme from top to bottom*/    
    }
 
    .RadMenu_Default
    {
        width:598px; /*width of the entire control*/                     
    }
 
/*RadMenu Styles*/


currently, the text in the Tabs (e.g 'Messages','Stock','Staff' etc) are Horizontally align so that they are in the centre of their respective Tabs - but Vertically, they are at the top.
I would like to get it so that the text is slap-bang in the middle, Vertically as well as Horizontally.

Is this possible?
i've attached an image of how my menu looks. i've put black crosses in the places that i would like the text to be. i drew the black crosses free-hand, so their not perfectly central (i would like it to be perfectly central in my Application), but my idea is to give a visual representation of what i'm talking about.


cheers
Magdalena
Telerik team
 answered on 23 Jun 2016
5 answers
153 views
I'm using three RadWindows on a page as simple static containers.

I want all windows to have the rwNormalWindow style at all times. However, when one window has the focus, the others are getting the rwInactiveWindow style that I don't want.

How do I prevent the focus feature from changing the window styles?

Thanks,

Ken
Marin Bratanov
Telerik team
 answered on 23 Jun 2016
2 answers
107 views

Hi

Looking for some direction here:

I have a grid that I bind with data, and I have an imageButton control that I want to use to open a pop up with more data, but I don't want to do another database call, so the data in the pop up must be bound when the grid binds.

Any ideas / examples on how to achieve this.

Andy

 

 

Andy Green
Top achievements
Rank 2
 answered on 23 Jun 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?