Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
92 views
I have an application with a RadScheduler control. Users add items to their schedule using an AdvancedEditTemplate or AdvancedInsertTemplate.

I would like to add a button to this to post to a Facebook wall, so users of the application can tell everyone when they are adding something to their schedule.

I have tried adding a RadSocialShare control, which does not seem to do anything when the buttons are clicked (possibly because the template is displayed as a modal dialog).  (This works if I add it elsewhere on the page).

Is it possible to use a RadSocialShare control here, or is there any other way I can post to a facebook wall from within the AdvancedEditTemplate dialog?

Thanks, Richard

Plamen
Telerik team
 answered on 06 Jan 2012
4 answers
593 views
I was trying to troubleshoot an issue and added "telerik.web.design.dll" and "telerik.web.ui.dll" to the GAC as part of the process. I think I may have made a mistake, because now, when I attempt to build a site using RadFileExplorer (that just happens to be what I am using at the moment), I get the message below:

Compiler Error Message: CS0433: The type 'Telerik.Web.UI.RadFileExplorer' exists in both 'c:\Windows\assembly\GAC_MSIL\Telerik.Web.UI\2009.2.701.20__121fae78165ba3d4\Telerik.Web.UI.dll' and 'c:\Windows\assembly\GAC_MSIL\Telerik.Web.UI\2009.2.701.35__121fae78165ba3d4\Telerik.Web.UI.dll'

I am not sure how to fix this. I tried going back and removing the dlls I added from the GAC, but I get a "There was an error removing Telerik.Web.Design" message. 

Any suggestions would be welcome.

Thanks!
Sudhanva
Top achievements
Rank 1
 answered on 06 Jan 2012
0 answers
137 views
Hello Group Members,
                                  This is siddiqali working on SharePoint 2010.I am new to using telerik controls ,My form have telerik Rad Editor When the user types the words then I need to count the number of words existed in it and displays total words in  label.Can any one tell me how can I do it.



Thanks,
Quality Communication Provides
Quality Work.
http://siddiq-sharepoint2010.blogspot.com
MOHAMMAD SIDDIQALI
Siddiqali
Top achievements
Rank 1
 asked on 06 Jan 2012
1 answer
334 views
I'm totally new to Telerik controls, just installed them today.  For an existing web site, what exactly happens if I choose to "Convert to Telerik Web Site" from the Telerik menu item in Visual Studio?  I presume it puts a Telerik dll in my Bin directory, adds references to it, and probably makes some changes to the web.config.  Anything more (or less) than that?

Thanks.
Jayesh Goyani
Top achievements
Rank 2
 answered on 06 Jan 2012
1 answer
90 views

 

We are binding a RadGrid DataSource to a list of objects that contain standard properties and a list of custom properties.

e.g.

Name
JobTitle
Contact
List<string> CustomProperties { customPropertyItem1, customPropertyItem2 ... n}

The custom properties are stored in our db such that one property has many propertyItems, so the column headings would look like this -

Name | Job Title | Contact | Custom Property 1 | Custom Property 2 ... n

What is the best way of binding to these custom properties?

Can we mix declarative code (columns for the standard properties) with programmatic code (columns created dynamically for the custom properties) ?

All properties including custom properties need to be groupable, sortable and filterable.

thanks

Princy
Top achievements
Rank 2
 answered on 06 Jan 2012
1 answer
177 views
I am trying to modify the filter menus on the grid at runtime using an example directly from your onlne manual, but the Grid_Init event code in the server is not firing.

Can anyone tell me what I am doing wrong?

Here's the actual grid definition from the .aspx:

<telerik:RadGrid AutoGenerateColumns="false" ID="QualContsGrid" runat="server" Width="800px" OnItemCommand="QualContsGrid_ItemCommand"
    Height="430px" On
    AllowSorting="true" AllowFilteringByColumn="true" EnableLinqExpressions="true"
    OnItemDataBound="QualContsGrid_ItemDataBound"
    AllowPaging="true" PageSize="15"
    BorderWidth="1px" BorderColor="#999999" EnableEmbeddedSkins="true" Skin="Default"
    DataSourceID="SQLDataSource1"
    ShowFooter="True" GridLines="None" >
    <StatusBarSettings ReadyText="Ready" LoadingText="Loading..." />
    <MasterTableView >
        <Columns>
            <telerik:GridBoundColumn HeaderStyle-Width="125px" UniqueName="VoterFirstName" HeaderText="First Name" DataField="FirstName" SortExpression="FirstName" >
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderStyle-Width="125px" UniqueName="VoterLastName" HeaderText="Last Name" DataField="LastName" SortExpression="LastName" >
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderStyle-Width="300px" UniqueName="VoterAddress" HeaderText="Address" DataField="Address" SortExpression="Address" >
            </telerik:GridBoundColumn >
            <telerik:GridButtonColumn DataTextFormatString="Remove" ButtonType="PushButton" UniqueName="RemoveContribution" HeaderStyle-Width="75px"
                ConfirmText="Are you certain that you want to remove this contribution?"  Text="Remove"
                HeaderText="Remove" CommandName="RemoveContribution" CommandArgument="VoterQualifyingContributionId" DataTextField="VoterQualifyingContributionId" >
            </telerik:GridButtonColumn>
            <telerik:GridBoundColumn HeaderStyle-Width="125px" UniqueName="ContributionStatus" HeaderText="Status" DataField="PaymentDescription" SortExpression="PaymentDescription" >
            </telerik:GridBoundColumn >
            <telerik:GridBoundColumn UniqueName="VoterQualifyingContributionId" HeaderText="" DataField="VoterQualifyingContributionId" Visible="false" >
            </telerik:GridBoundColumn >
        </Columns>
    </MasterTableView>
    <ClientSettings>
        <Scrolling AllowScroll="true" UseStaticHeaders="true" />
    </ClientSettings>
</telerik:RadGrid>

The code behind contains:

protected void QualContsGrid_Init(object sender, System.EventArgs e)
{
    GridFilterMenu menu = QualContsGrid.FilterMenu;
    int i = 0;
    string a = "";
    while (i < menu.Items.Count)
    {
 
        a = menu.Items[i].Text;
 
        if (menu.Items[i].Text == "NoFilter" || menu.Items[i].Text == "Contains" || menu.Items[i].Text == "StartsWith" || menu.Items[i].Text == "EqualTo")
        {
            i++;
        }
        else
        {
            menu.Items.RemoveAt(i);
        }
    }
}

The only reason the line of code "a = menu.Items[i].Text;" is in there is that I had a debug stop placed on it (and it never executed).  I also had a debug stop on the very first line in this event's code and it never fired.

On code/debug stops in Page_Init and Page_Load did fire correctly.

Also, code (and the debug stop) in the "QualContsGrid_AjaxRequest" DID execute correctly.

How do I get the RadGrid_Init event code to fire?

Thanks in advance!

Lynn

Shinu
Top achievements
Rank 2
 answered on 06 Jan 2012
1 answer
201 views
Hello

I want to change modal window size dynamically.
So I using setSize client method. But it does not work. Is there something wrong with my code?
Here is my javascript code.
function RadButtonNew_OnClientClicked() {
    var oManager = GetRadWindowManager();
    var windowClientID = "RadWindowTest";
    var oWnd = oManager.getWindowById(windowClientID);
 
    oWnd.setUrl("./Test.aspx");
    oWnd.set_title("New");
    oWnd.set_reloadOnShow(true);
 
    oWnd.show();
    var popupWidth = $telerik.$(window).width() * 0.8;
    var popupHeight = $telerik.$(window).height() * 0.8;
 
    oWnd.setSize(popupWidth, popupHeight);
    oWnd.center();
     
    return false;
}

aspx
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" AutoSize="false"
            Modal="false" VisibleTitlebar="true" Width="600" Height="400" MinWidth="600" MinHeight="400" Behaviors="Close, Move, Resize"
            VisibleStatusbar="false" Skin="Default" ShowContentDuringLoad="false" ReloadOnShow="false"
            Style="position: absolute; z-index: 7000;" RestrictionZoneID="RadPaneContents"
            OnClientBeforeClose="RadWindowManager1_OnClientBeforeClose" OnClientClose="RadWindowManager1_OnClientClose"
            OnClientShow="RadWindowManager1_OnClientShow" OnClientDragEnd="ResizeSplitterWrap">
            <Windows>
                <telerik:RadWindow ID="RadWindowTest" runat="server" />
            </Windows>
        </telerik:RadWindowManager>


I did set AutoSize="true" but it does not work too.
In some case, even when I did set number not percentage, it does not work too.
For example, setSize(1250, 700)
set_width and SetWidth do not work too.
I really don't know why it does not work.
What is the problem?

Hee
Princy
Top achievements
Rank 2
 answered on 06 Jan 2012
1 answer
60 views
Hi,

Is it possible to display multiple web pages (aspx) inside the radgrid control and then export the radgrid into a pdf?

Regards.
Shinu
Top achievements
Rank 2
 answered on 06 Jan 2012
1 answer
136 views
I have radgrid with itemplate for every column like below
<telerik:RadGrid ID="RadGrid1" runat="server" GridLines="Vertical" Skin="Hay" PageSize="250"
      AllowSorting="True" AllowPaging="True" ShowGroupPanel="False" AutoGenerateColumns="false"
      Width="100%" >
      <PagerStyle Mode="Slider"></PagerStyle>
      <MasterTableView ShowGroupFooter="true" GroupsDefaultExpanded="False" HeaderStyle-HorizontalAlign="Center"
          GroupHeaderItemStyle-BackColor="white" GroupHeaderItemStyle-ForeColor="Black"
          GroupHeaderItemStyle-Font-Size="Medium" DataKeyNames="SkillID">
          <GroupByExpressions>
              <telerik:GridGroupByExpression>
                  <SelectFields>
                      <telerik:GridGroupByField FieldName="SkillAreaId" HeaderText=" " />
                      <telerik:GridGroupByField FieldName="SkillArea" HeaderText=" " />
                  </SelectFields>
                  <GroupByFields>
                      <telerik:GridGroupByField FieldName="SkillAreaId" HeaderText="" HeaderValueSeparator=" " />
                  </GroupByFields>
              </telerik:GridGroupByExpression>
          </GroupByExpressions>
          <Columns>
              <telerik:GridTemplateColumn  UniqueName="SkillID">
                  <ItemTemplate>
                      <b>
                          <%# Eval("SkillID")%>
                      </b>
                  </ItemTemplate>
                  <FooterTemplate>
                  </FooterTemplate>
              </telerik:GridTemplateColumn>
              <telerik:GridTemplateColumn>
                  <ItemTemplate>
                      <%# Eval("Skill")%>
                  </ItemTemplate>
              </telerik:GridTemplateColumn>
              <telerik:GridTemplateColumn>
                  <HeaderTemplate>
                      None<br />
                      0</HeaderTemplate>
                  <ItemTemplate>
                      <asp:RadioButton ID="RadioButton1" runat="server" /></ItemTemplate>
              </telerik:GridTemplateColumn>
              <telerik:GridTemplateColumn>
                  <HeaderTemplate>
                      Basic<br />
                      1</HeaderTemplate>
                  <ItemTemplate>
                      <asp:RadioButton ID="RadioButton2" runat="server" /></ItemTemplate>
              </telerik:GridTemplateColumn>

I  been trying to access each column in the grid to add a link button for each row with the same event attached to all the link button. But I am stuck at even getting the column value or adding link button to the column. I tried below,

Protected Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As GridItemEventArgs) Handles RadGrid1.ItemDataBound
 
If TypeOf e.Item Is GridDataItem Then
            Dim itm As GridDataItem = CType(e.Item, GridDataItem)
 itm("SkillId").Controls.Add(New LiteralControl("test"))
End If


But nothing works. I just simply want to get the value of the column first and embed a link button to the column and trigger a common event. Help me out. 
Shinu
Top achievements
Rank 2
 answered on 06 Jan 2012
1 answer
65 views
Hi Everyone,

When I select a different value in a combobox after exporting a grid (export process is a custom fonction using RadGrid1.MasterTableView.ExportToCSV();) We end up with this error: "
Failed to load viewstate.  The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.  For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request."

Is it normal? Is there a way to refresh/rebind the gris after creating the export?

Thank you

Regis

regis
Top achievements
Rank 1
 answered on 05 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?