Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
73 views
Greetings,

The TagCloud control automatically adds a title attribute to each tag which automatically generates a ToolTip, is there anyway to disable this for the TagCloud control?

Thank you.
Princy
Top achievements
Rank 2
 answered on 17 Aug 2012
2 answers
99 views
Hi,

We have a radcombobox with list of Regions that gets populated with EntityDataSource, now we added a new column in table named as "MarkAsDeleted" We want to disable Regions in radcombobox where region is "MarkAsDeleted" = true.

I found that   it has property as below,  just don;t know how to automatically allow databinding to this property.

  <telerik:RadComboBoxItem runat="server" Enabled="False" Text="RadComboBoxItem3"
                            Value="RadComboBoxItem3" />

Any idea ?

Regards
JD.
Top achievements
Rank 1
 answered on 17 Aug 2012
2 answers
188 views
Hi,

I am adding the RadAsyncUpload user control both in asp:GridView and page in a single file. After selecting a file and click on Upload I am getting the following error.

---------------------------
Message from webpage
---------------------------
Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500
---------------------------
OK   
---------------------------

The uploaded file is saved into App_Data folder (like nkdeutts.hpj), but OnFileUploaded event is not firing. Before this event is fired I am getting the above error.

If I include the user control only in grid view or only in the page, it is working fine. If I use it in both the places, I am getting the error. Please help me in resolving this error as it is important for me to have the control in both the places.

Thanks.
Abhinav
Abhinav
Top achievements
Rank 1
 answered on 17 Aug 2012
1 answer
91 views
Hello Telerik,

I build the grid columns and set up the relationships in aspx and the data source is set in code-behind. The gird changes depending on a node selection which sends in a ID to filter out the master grid, which in turn filters out the detail grid based off the relationship.

Here is the grid in aspx:
<telerik:RadGrid runat="server" ID="RadGridMemberBoardPosition" Width="350px" Height="460px" AutoGenerateColumns="false"  >
    <MasterTableView DataKeyNames="MemberId" >
                                 
        <Columns>
            <telerik:GridClientSelectColumn ItemStyle-Width="10%"/>
            <telerik:GridBoundColumn DataField="Name" DataType="System.String" HeaderText="Name" UniqueName="Name" />
        </Columns>
 
        <DetailTables >
            <telerik:GridTableView DataKeyNames="MemberId">
                <Columns>
                    <telerik:GridBoundColumn DataField="FullName" DataType="System.String" HeaderText="FullName" UniqueName="FullName" />
                    <telerik:GridBoundColumn DataField="EmailAddress" DataType="System.String" HeaderText="EmailAddress" UniqueName="EmailAddress" />
                </Columns>
            </telerik:GridTableView>                                   
        </DetailTables>
 
        <ParentTableRelation>
            <telerik:GridRelationFields DetailKeyField="MemberId" MasterKeyField="MemberId" />
        </ParentTableRelation>
 
    </MasterTableView>
    <ClientSettings Selecting-AllowRowSelect="true" Scrolling-AllowScroll="true" />
</telerik:RadGrid>

Now in code behind i change the data with the node being selected in a TreeView on the page.

Protected Sub RadTreeViewGroups_NodeClick(sender As Object, e As Telerik.Web.UI.RadTreeNodeEventArgs) Handles RadTreeViewGroups.NodeClick
 
    If Me.m_cMyManager Is Nothing Then
        Me.m_cMyManager = New cMyManager
    End If
 
    ' get the board positions and the members for those postions - hierarchical grid
    Me.RadGridMemberBoardPosition.DataSource = Me.GetGroupBoardPositionDT(Me.m_cMyManager, e.Node.Attributes("GroupId"))
    Me.RadGridMemberBoardPosition.Rebind()
 
End Sub

This code works fine for filling in the master table with the appropriate records. Now when a record is expanded by clicking its arrow - showing the detail grid it is always nothing.

This is the data source for the detail - setup in the page load.

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
 
    If Me.m_cMyManager Is Nothing Then
        Me.m_cMyManager = New cMyManager
    End If
  
    ' get the sql datasource for the detail of the datagrid
    Dim mySqlDataSource As New SqlDataSource("System.Data.SqlClient", Me.m_cMyManager.MyDb.ConnectionString(), Me.GetBoardPositionMembersQuery(Me.m_cMyManager))
    ' add the parameters
    Dim myParameter As New UI.WebControls.Parameter("MemberId", DbType.Int64)
    mySqlDataSource.SelectParameters.Add(myParameter)
 
    Me.RadGridMemberBoardPosition.MasterTableView.DetailTables(0).DataSource = mySqlDataSource
 
End Sub

I also tried to put it in the Handles RadGridMemberBoardPosition.DetailTableDataBind event, but it still failed to show the records related to the master table. This is a little different than your example http://demos.telerik.com/aspnet-ajax/grid/examples/programming/hierarchy/defaultvb.aspx  so I was wondering if it should all be in the code-behind. Also, if this will work in my scenario with a node changing the data source of a master and detail tables at run-time. 

Can you shed some light on this?

Thanks!
SDI




Andrey
Telerik team
 answered on 17 Aug 2012
5 answers
219 views
Hello there,
     I want a header for my ClientSelectColumn. Can anybody help me with a code snippet to accomplish the above if possible.
Thanks in advance
Savyo
Shinu
Top achievements
Rank 2
 answered on 17 Aug 2012
1 answer
138 views
Hi, i am using this version of telerik asembly:RadControls for ASP.NET AJAX Q2 2011
I am looking for a way to change the location of my date/time control, but i don't find the resources apropiate.
do you can specify a link for learn about it?, i was reading for some articles but i cant find mi localization dll or similar.

So, culture propierty when i set to "es-CO" does not change representation.

Thank you very much.
Pharsat
Top achievements
Rank 2
 answered on 16 Aug 2012
22 answers
269 views
How can I get the text of phonenumber in code behind with the following code?

<

 

telerik:GridBoundColumn DataField="phonenumber" HeaderText="phone number " UniqueName="phonenumber" AllowFiltering="false" />

 

 

<telerik:GridTemplateColumn>

 

 

      <ItemTemplate>

 

 

           <asp:LinkButton ID="LinkButton1" runat="server" Text="get phone number" OnClick="getphone"></asp:LinkButton>

 

 

      </ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

Protected

 

Sub getphone(ByVal sender As Object, ByVal e As System.EventArgs)

 

 

 

    Dim dataItem As GridDataItem

 

 

    Dim cell As TableCell = dataItem("phonenumber")

 

 

    Dim itemValue As String = dataItem["phonenumber"].Text  --------this gives error: Identifier expected.

    I also try the following and still cannot get the value of the phonenumber field:

 

    RadGrid1.MasterTableView.GetColumn(

"phonenumber").ToString())

 

 

End Sub

 

Lisa
Top achievements
Rank 1
 answered on 16 Aug 2012
3 answers
261 views
Hello! I'm starting to use this component and I have some doubts. I have on my page the following controls:

RadScriptManager1
RadAjaxManager1
RadAjaxLoadingPanel1

RadTabStrip1 // Filters for the query
RadMultiPage11
- RadComboBox111, RadComboBox112 and RadComboBox113.
RadMultiPage12
- RadTextBox121, RadDatePicker122 and RadButton.

RadTabStrip2 // Query values from dataTable
RadMultiPage21 
- RadHtmlChart211
RadMultiPage22 
- RadGrid221

------------------------------------------------------ 
Events:

1. Select filters;
2. I press the radButton;
3. Make the query;
4. I carry the dataTable;
5. Link the dataTable to the radGrid and radHtmlChart.

Problem:

The radGrid not showing values​​. Only when I group a column or orderer a column alphabetically, the values ​​appear. Are missing some event handler? This is the right way?

Thanks!


Pavlina
Telerik team
 answered on 16 Aug 2012
2 answers
125 views
Friends,
I am using Entityframe work in my project now what I am trying to do is bind a grid with objectdatasource , I have to load data from three tables.
There are around 5-6 tables I am trying to read data from. 
public IEnumerable<BetsDifficultToRead> GetBetsDifficultToReadsWithDetail()
        {
            return context.BetsDifficultToReads.Include("BetToBeSettled").Include("BetToBeSettled.BetDetails").Include("BetToBeSettled.BetDetails.Meeting").Include("BetToBeSettled.BetDetails.Event").ToList();
             
 
            //var test = (from h in context.BetsDifficultToReads
            //            select new
            //            {
            //                BetsDifficultToReadId = h.BetsDifficultToReadId,
            //                BetToBeSettledId = h.BetToBeSettled.BetToBeSettledId,
            //                UserId = h.UserId,
            //                ShortName = h.BetToBeSettled.BetDetails.Select(t => t.Meeting.ShortName),
            //                Expr1 = h.BetToBeSettled.BetDetails.Select(t => t.Event.ShortName),
            //                IsStartingPrice = h.BetToBeSettled.BetDetails.Select(t => t.IsStartingPrice),
            //                Stake = h.BetToBeSettled.Stake,
            //            });
            
        }

<telerik:RadGrid ID="radGridAllBets" runat="server" Skin="Metro"
    DataSourceID="odsAllBets" CellSpacing="0" GridLines="None">
    <MasterTableView DataSourceID="odsAllBets" AutoGenerateColumns="False">
        <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
        <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
            <HeaderStyle Width="20px"></HeaderStyle>
        </RowIndicatorColumn>
        <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
            <HeaderStyle Width="20px"></HeaderStyle>
        </ExpandCollapseColumn>
        <Columns>
            <telerik:GridBoundColumn DataField="BetsDifficultToReadId"
                DataType="System.Int32"
                FilterControlAltText="Filter BetsDifficultToReadId column"
                HeaderText="BetsDifficultToReadId" SortExpression="BetsDifficultToReadId"
                UniqueName="BetsDifficultToReadId">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="UserId" DataType="System.Guid"
                FilterControlAltText="Filter UserId column" HeaderText="UserId"
                SortExpression="UserId" UniqueName="UserId">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="BetToBeSettled.BetDetails.Meeting.ShortName" DataType="System.String"
                FilterControlAltText="Filter EntityState column" HeaderText="EntityState"
                ReadOnly="True" SortExpression="Meeting.ShortName" UniqueName="Meeting.ShortName">
            </telerik:GridBoundColumn>
        </Columns>
        <EditFormSettings>
            <EditColumn FilterControlAltText="Filter EditCommandColumn column">
            </EditColumn>
        </EditFormSettings>
    </MasterTableView>
    <FilterMenu EnableImageSprites="False">
    </FilterMenu>
</telerik:RadGrid>
<asp:EntityDataSource ID="edsAllBets" runat="server">
</asp:EntityDataSource>
<asp:ObjectDataSource ID="odsAllBets" runat="server" TypeName="EPOS.Web.Business.BetsDifficultToReadBL"
    SelectMethod="GetBetsDifficultToReadsWithDetail"
    OldValuesParameterFormatString="original_{0}"></asp:ObjectDataSource>


Below is the table structure  but I have issue I am not able to get value of all tables column, is I am doing wrong or there is any other best way! 

http://s10.postimage.org/l9eufbvt5/Capture.jpg

Thanks,
Shakti










Shakti SIngh Dulawat
Top achievements
Rank 1
 answered on 16 Aug 2012
4 answers
171 views
I replaced native DDL with Combobox:

<telerik:RadComboBox ID="ddlPatientSuchwort2" Runat="server" Culture="de-DE"
             DataSourceID="sqlWinacsPatientSuchwort" DataTextField="Suchwort"
             DataValueField="PublicNummer" AutoPostBack="True"
             EnableAutomaticLoadOnDemand="True"
             onselectedindexchanged="ddlPatientSuchwort2_SelectedIndexChanged"
             filter="StartsWith" EmptyMessage="Wähle Patient Name" Skin="WebBlue" >
           </telerik:RadComboBox>

Data source is stored procedure which returns about 8000 rows in format ID, Name

Now performance is terrible, before result was displayed immediately, now even on DEV machine I need to wait few seconds, but in prod environment event more than 5 secs. At the current stage system is almost not usable. Any ideas how Ican improve performance? 
berto
Top achievements
Rank 1
 answered on 16 Aug 2012
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?