Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
177 views
Hello,

We want to use the RadFileExplorer in an SharePoint aspx page and browse SharePoint document library.
The RadFileExplorer works but to see any content I would need to set the ContentProviderTypeName to a SharePoint edition of the FileSystemContentProvider.

How to set the ContentProviderTypeName to a provider that read/writes SharePoint library's? I cannot find any documentation about it.

Thanks,
  Fabian
Lini
Telerik team
 answered on 17 Jun 2009
6 answers
403 views
Hi,

I'm designing a webapp using RAD AJAX controls and am trying to make use of the RadTextBox control.  The width of the website is dynamically sized with the width of the browser window.  Previously this had all been working without issue.  The textboxes had a width property set to a percentage size of the window, and when the page resized the text boxes also resized.

Recently I've had a tidy up of some of the html in my master page and now the text boxes will no longer resize with the browser window in Internet Explorer, however they still resize corectly in all other browsers (Firefox, Chrome and Opera).  

<

 

div class="panel">

 

 

    <div class="titleNS">

 

 

        <div>

 

 

            Site Address

 

 

        </div>

 

 

     </div>

 

 

    <div class="titleNS">

 

 

         <div>

 

 

            <telerik:radtextbox id="txtProjectSiteName" runat="server" maxlength="50" ReadOnlyStyle-ForeColor="black" Skin="Vista"
                width="100%"></telerik:radtextbox>

 

 

         </div>

 

 

     </div>

 

 

    <div class="cleaner"></div>
</div>


CSS:
.panel

 

 

 

{

 

padding:5px 5px 5px 5px;

 

border-width:1px;

 

border-style:solid;

 

border-color:#999999;

 

background-color:#ffffff;

}

.titleNS

 

 

 

{
font-weight:bold;
text-align:right;
float:left;
width:33%;
}

 

.titleNS div {
padding: 0px 5px 5px 0px
}

 

 

 

 

 

 

 

 

 

Dimo
Telerik team
 answered on 17 Jun 2009
3 answers
299 views
I just installed the latest RadControls ASP.NET AJAX, moved my reference to use that DLL, recompiled, cleared out my browser cache, and found some interesting side-effects.

I have several RadDatePicker instances on several different pages and now instead of showing the calendar icon that I can click to retrieve the popup, it says "Open the calendar popup."  Clicking that brings up the popup normally, but pretty tacky looking.  As an aside, I also have some RadTimePickers on there and they *do* correctly show their clock icon for the popup.  I'm just using the Default skin for both of them.

See below:

                    <telerik:RadDatePicker ID="calStart" runat="server">  
                        <DatePopupButton CssClass="radPopupImage_Default" /> 
                        <Calendar CellAlign="Center" CellVAlign="Middle" DayNameFormat="FirstLetter" FirstDayOfWeek="Default" 
                            MonthLayout="Layout_7columns_x_6rows" Orientation="RenderInRows" TitleAlign="Center" 
                            UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False">  
                        </Calendar> 
                        <DateInput Width="100%" CssClass="NormalTextBox">  
                        </DateInput> 
                    </telerik:RadDatePicker><br /> 
 

and:

                    <telerik:RadTimePicker ID="timeStartTime" runat="server">  
                        <TimeView UseAccessibleHeader="False">  
                        </TimeView> 
                        <DatePopupButton Visible="False" /> 
                        <Calendar CellAlign="Center" CellVAlign="Middle" DayNameFormat="FirstLetter" FirstDayOfWeek="Default" 
                            MonthLayout="Layout_7columns_x_6rows" Orientation="RenderInRows" TitleAlign="Center">  
                        </Calendar> 
                        <DateInput LabelCssClass="" CssClass="NormalTextBox">  
                        </DateInput> 
                    </telerik:RadTimePicker> 
 

Anything I should be doing differently?  As a note, I have tried using a different skin and it does the same thing.

As an aside (though probably related?), I also use the RadScheduler in the same project and it used to show the calendar icon for the DatePicker but now it doesn't.  I'm assuming that removal of the calendar icon is by design?
Dimo
Telerik team
 answered on 17 Jun 2009
1 answer
93 views
Hi,

I would like to suggest a new RadControl to add to your lib : an item picker with search capabilities...
I have done one as a usercontrol using the ajaxcontroltoolkit, but I think this can be converted to a RadControl...

I explain using a example : a city picker (country, zip code and name)

The control in a readonly mode (like in FormView with CurrentMode=Select) :
If one item is selected, item data is shown (Ex : FR 69000 LYON)
If no item is selected, a custom text is shown (Ex : No city selected)

In read/write mode, the behavior is the same as readonly mode, but there are 2 buttons : Delete and Search.
Delete remove current item selection, and Search opens a modal popup (modalpopupextender) to help users search the item.
The search form contains searchable fields that user can fill (country as dropdown, zip code and name as text), a search button, a cancel button, and a result grid.
The grid contains a "Select" command button, that let the user select the desired item.

All is ajaxified to avoid page postbacks.

I think it is possible to create a rad control to avoid me copy/past the design behavior for each item I need to pick up like this (city, users...)

Thanks.
Sebastian
Telerik team
 answered on 17 Jun 2009
6 answers
454 views
It does work given the example at: http://www.telerik.com/help/aspnet-ajax/calendar_clientsidebasics.html

But it doesn't work if the RadDatePicker is default to disabled (Enabled="false") at startup. I am using a SharedCalendar control.

What it look like at startup when disabled:
1. Input is disabled (gray out).
2. Calendar icon/button is faded (it has a fade to it so that it looks disabled).

What it look like after "set_enabled(true)" is called:
1. Input is enabled (but the empty text is gray when the mouse is over it ... suppose to be black).
2. Calendar icon/button remain faded (unable to click it to show the pop up calendar).

Like I said, I'm able to get it to work if the control is default to enable at startup just like the example.

Edit: Same issue posted with workaround - http://www.telerik.com/community/forums/aspnet-ajax/calendar/enable-datepicker-in-javascript.aspx

I did come with a similar workaround (initialize the "disable" of the control by javascript at startup) stated in that post but still isn't an ideal solution.
Dimo
Telerik team
 answered on 17 Jun 2009
10 answers
254 views
I just updated to the new Q1 controls and since then, the rotator changes the font on one of the labels after the first rotation. The first set of data displays properly, then as soon as the second frame sets the message label defaults to Times or something. One thing I have checked is the web browser. I can not reproduce this in Chrome, Mozilla or Safari, only in IE (7.0.5730.13)

Here is the relavent code for the rotator.

CSS:
.newsFeed{        
    width: 425px;
    height: 130px;
    padding: 3px 0 0 20px;
    margin: 0 0 2px 0;       
}

.newsContent, .newsPoster{
    font:Trebuchet MS;
    font-family:Trebuchet MS;
    font-size: small;     
}

.newsContent {
   font-weight: bold;
}

ASPX:
<telerik:RadRotator ID="rrNews" runat="server" Height="130px"  
        ScrollDirection="Up" scrollDuration="2000" DataSourceID="newsDS" Width="446px" 
            FrameDuration="5000">             
        <ItemTemplate>
                <div class="newsFeed">
                    <asp:label runat="server" ID="message" CssClass="newsContent" Text='<%# bind("postMessage")%>'></asp:label>
                    <br />
                    <asp:label runat="server" ID="Label0" CssClass="newsPoster" Text="by "></asp:label>
                    <asp:label runat="server" ID="Label1" CssClass="newsPoster" Text='<%# bind("uName")%>'></asp:label>
                    <asp:label runat="server" ID="Label3" CssClass="newsPoster" Text="  on "></asp:label>
                    <asp:label runat="server" ID="Label2" CssClass="newsPoster" Text='<%# bind("postDate")%>'></asp:label>
                </div>
            </ItemTemplate>
        </telerik:RadRotator>

Any help is appreciated. Thank you.
Fiko
Telerik team
 answered on 17 Jun 2009
1 answer
194 views
Hi,

I would like a grid to have a checkbox column which is readily "checkable" by the user and a fixed (bound) textual column to the right of this column. Much like a CheckBoxLst control.

I have the following RadGrid:

<telerik:RadGrid ID="radGridGroups" runat="server" 
                                                    AllowCustomPaging="false" 
                                                    AllowAutomaticDeletes="false" 
                                                    AllowAutomaticInserts="false" 
                                                    AllowAutomaticUpdates="true" 
                                                    AllowFilteringByColumn="false" 
                                                    AllowMultiRowEdit="true" 
                                                    AllowMultiRowSelection="false" 
                                                    AllowPaging="false" 
                                                    AllowSorting="false" 
                                                    AutoGenerateColumns="false" 
                                                    AutoGenerateDeleteColumn="false" 
                                                    AutoGenerateEditColumn="false" 
                                                    EnableHeaderContextMenu="false" 
                                                    GroupingEnabled="false" 
                                                    Height="200" 
                                                    ShowStatusBar="false" 
                                                    ShowFooter="false" 
                                                    ShowGroupPanel="false" 
                                                    ShowHeader="false" 
                                                    Width="340"  
                                                    > 
                                                    <ClientSettings AllowColumnHide="false" AllowColumnsReorder="false" AllowRowHide="false" AllowRowsDragDrop="false" EnableAlternatingItems="false" EnablePostBackOnRowClick="false" EnableRowHoverStyle="false"> 
                                                        <Resizing AllowColumnResize="false" AllowRowResize="false" /> 
                                                        <Scrolling AllowScroll="true" EnableVirtualScrollPaging="true" /> 
                                                        <Selecting AllowRowSelect="false" EnableDragToSelectRows="false" /> 
                                                    </ClientSettings> 
                                                    <MasterTableView GridLines="None" NoMasterRecordsText="There are no Groups defined" DataKeyNames="DataGroupID"> 
                                                        <Columns> 
                                                            <telerik:GridCheckBoxColumn DataField="IsEnabled" DataType="System.Boolean" HeaderText="In Group" Resizable="false" Reorderable="false" UniqueName="IsEnabled" ReadOnly="false" > 
                                                                <ItemStyle Width="20" /> 
                                                            </telerik:GridCheckBoxColumn> 
                                                            <telerik:GridBoundColumn DataField="DataGroupName" DataType="System.String" HeaderText="Group Name" Resizable="false" Reorderable="false" ReadOnly="true" UniqueName="DataGroupName"> 
                                                                <ItemStyle Width="320" /> 
                                                            </telerik:GridBoundColumn> 
                                                        </Columns> 
                                                        <RowIndicatorColumn Display="false" />                                                       
                                                    </MasterTableView> 
                                                </telerik:RadGrid> 

I bind this using the LINQ:

private void PopulateDataGroupsGrid(bool rebind) 
        { 
            var query = from dg in _dataGroups 
                        join dgi in _originalDataGroupItems on dg.ID equals dgi.ParentDataGroup.ID into sr 
                        from x in sr.DefaultIfEmpty() 
                        select new { DataGroupID=dg.ID, IsEnabled = x != null, DataGroupName=dg.Name }; 
            radGridGroups.DataSource = query; 
            if (rebind) radGridGroups.DataBind(); 
        } 
 

Which is called by the NeedDataSource event handler:

        void radGridGroups_NeedDataSource(object source, GridNeedDataSourceEventArgs e) 
        { 
            PopulateDataGroupsGrid(false); 
        } 

The problem is that this produces a static grid. I can't tick/untick the items in the grid. I don't want to use a Row Selection mechanism, and I will need to add further columns in the future. 

I would dearly like to have the users just "tick"/"untick" as they see fit, hit the "Save" button on my form and for me to then apply the changes to the DB.

How can I best achieve this?

Yavor
Telerik team
 answered on 17 Jun 2009
1 answer
159 views
I have added a RadComboBox to the GridGroupHeader of my grid, however, the combobox does not display correctly.  You can no longer see the drop down arrow and when you hover over the drop down it is not using the correct style for the combo box.  It may be picking up on styles from the grid row.  I am using version 2009.1.402.35 of the controls with the Default theme.  I have also included my ItemDataBound code below to show what I am trying to accomplish.

protected void rgBuySell_ItemDataBound(object sender, GridItemEventArgs e)  
{  
    if (e.Item is GridGroupHeaderItem)  
    {  
        GridGroupHeaderItem item = (GridGroupHeaderItem)e.Item;  
          
        item.DataCell.Controls.Clear();  
        item.DataCell.Text = "";  
          
        RadComboBox rcbTradeUsing = new RadComboBox();  
        rcbTradeUsing.ID = "rcbTradeUsing";  
        rcbTradeUsing.Items.Add(new RadComboBoxItem("Dollars", "1"));  
        rcbTradeUsing.Items.Add(new RadComboBoxItem("Percent", "2"));  
        item.DataCell.Controls.Add(rcbTradeUsing);  
    }  
} 
Tsvetoslav
Telerik team
 answered on 17 Jun 2009
1 answer
128 views
Hi,
I am having some problems deleting content from my database using the radgrid. In my database, I have a table of "contents", one of "users" and one of "favourites" where there is the pair of user and content ids. I am creating a grid of the user's favourite contents, and want to have a column where he can remove a content from his list of favourites, but not delete the content itself from the contents table in the database.
I tried using the automatic delete of the radgrid, but the problem is that it deletes the actual content from the table "contents", whilst all I want is to remove the pair from the table "favourites". I understand that this is because the datasource is a select to that table "contents", but I am unsure of how I can solve this problem so that the content itself is not deleted but only the favourite.
Here is my code:

<telerik:RadGrid ID="MeusFavoritos" runat="server" AllowPaging="True" AllowSorting="True" DataSourceID="GET_MEUS_FAVORITOS" GridLines="None" AutoGenerateColumns="False" PageSize="5"  ClientSettings-EnableRowHoverStyle="True" PagerStyle-Mode="NumericPages" PagerStyle-ShowPagerText="false" >
                <MasterTableView CellSpacing="-1" DataSourceID="GET_MEUS_FAVORITOS">
                    <Columns>
                        <telerik:GridHyperLinkColumn DataNavigateUrlFormatString="/lms_bd/FichaConteudo.aspx?conteudo={0}" DataTextField="Titulo" Target="_self" DataNavigateUrlFields="IDConteudo" UniqueName="Titulo" HeaderText="T&#237;tulo" SortExpression="Titulo" />
                        <telerik:GridHyperLinkColumn DataNavigateUrlFormatString="/lms_bd/conteudosTema.aspx?tema={0}" DataTextField="Tema" Target="_self" DataNavigateUrlFields="IDTema" UniqueName="Tema" HeaderText="Tema" SortExpression="Tema" />
                        <telerik:GridButtonColumn ConfirmText="Tem a certeza que quer remover este conteúdo dos seus favoritos?" ConfirmDialogType="RadWindow"
                        ConfirmTitle="Remover" ButtonType="ImageButton" CommandName="Delete" Text="Remover"
                        UniqueName="RemoverFav" ImageUrl="~/imagens/bt_apagar.gif" HeaderText="Remover" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" />
                    </Columns>
                </MasterTableView>
                <PagerStyle Mode="NumericPages" ShowPagerText="False" />
                <ClientSettings EnableRowHoverStyle="True" />
            </telerik:RadGrid>

<asp:SqlDataSource ID="GET_MEUS_FAVORITOS" runat="server" ConnectionString="<%$ ConnectionStrings:lms_bibliotecaConnectionString1 %>"
                      SelectCommand="SELECT * FROM ([NL_LMS_BIB_conteudos] INNER JOIN NL_LMS_BIB_temas ON NL_LMS_BIB_conteudos.IDTema = NL_LMS_BIB_temas.IDTema)
                      INNER JOIN NL_LMS_BIB_favoritos on NL_LMS_BIB_conteudos.IDConteudo = NL_LMS_BIB_favoritos.IDConteudo
                      WHERE NL_LMS_BIB_favoritos.IDUser = @UserID">
    <SelectParameters>
        <asp:SessionParameter Name="UserID" SessionField="UserID" />
    </SelectParameters>
</asp:SqlDataSource>


Can anyone please help me?
Thank you.
Marta
Top achievements
Rank 1
 answered on 17 Jun 2009
2 answers
730 views
I hv open the rad window from code behind

Protected Sub imgmail_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles imgmail.Click

            Dim rptWindows As Telerik.Web.UI.RadWindow = New Telerik.Web.UI.RadWindow()
            rptWindows.NavigateUrl = "reportMail.aspx"
            Form1.Controls.Add(rptWindows)
            rptWindows.Height = 535
            rptWindows.Width = 500
            rptWindows.BorderColor = Drawing.Color.BlueViolet
            rptWindows.BorderStyle = BorderStyle.Solid
            rptWindows.Modal = False
            rptWindows.VisibleStatusbar = False
            rptWindows.Behavior = WindowBehaviors.Close Or WindowBehaviors.Move
            rptWindows.VisibleOnPageLoad = True

     
        End Sub
    End Class




I need to pass some argument when rad window open pass some id, name, orgid ? and the radwindow contain textbox when i pass value that time the id is diplay in textbox how to do this ?

help me urgent
Shinu
Top achievements
Rank 2
 answered on 17 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?