Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
117 views
Hi,

I am using entity framwork with Radgrid, when I enable the column filter, the filter doesn't seem working. It works for seaching English character, but not for Chinese character. Is Radgrid filter support chinese character?
Thanks
Veli
Telerik team
 answered on 06 Jan 2012
1 answer
63 views
Hi all,
Please help me in this thread
I am using telerik radgrid control,
No issue in master table, datas are bind comfortably
my problem is
radgrid contain one detailed table
I am using DetailTableDataBind event to bind data
the datasource in detail table have the values but it does not shows while running .

here is my design source

<

 radG:RadGrid ID="dgrdResults" runat="server" Width="100%" AllowSorting="true"

 RadControlsDir="../Assets/RadControls/" GridLines="None" SkinsPath="../Assets/RadControls/Grid/Skins"

 EnableAJAX="true" AutoGenerateColumns="false" >

 <ExportSettings ExportOnlyData="false" IgnorePaging="true" OpenInNewWindow="true" />

 <PagerStyle Mode="NextPrevAndNumeric" />

 <MasterTableView DataKeyNames="RecipientId">

 <ExpandCollapseColumn Visible="false">

 <HeaderStyle Width="19px" />

 </ExpandCollapseColumn>

 <RowIndicatorColumn Visible="false">

 <HeaderStyle Width="20px" />

 </RowIndicatorColumn>

 <NoRecordsTemplate>

 <asp:Label ID="lblNoRecordsFound" runat="server" Text="No records bind">

 </asp:Label>

 </NoRecordsTemplate>

 <DetailTables >

 

 

<radG:GridTableView DataKeyNames ="ID" runat="server">

 

 

<ParentTableRelation >

 

 

<radG:GridRelationFields DetailKeyField="ID" MasterKeyField ="RecipientId" />

 

 

</ParentTableRelation>

 

 

<NoRecordsTemplate>

 

 

<asp:Label runat="server" ID="lblNorecord" Text="No records bind">

 

 

</asp:Label>

 

 

</NoRecordsTemplate>

 

 

<Columns>

 

 

<radG:GridBoundColumn HeaderText="Name" DataField="Name">

 

 

</radG:GridBoundColumn>

 

 

</Columns>

 

 

</radG:GridTableView>

 

 

</DetailTables>

 <Columns>

 <radG:GridTemplateColumn >

 <Headerstyle width="20px" />

 <Headertemplate>

 <asp:CheckBox runat="server" ID="All" OnCheckedChanged="SelectAllContacts" Autopostback="True" />

 </Headertemplate>

 <ItemTemplate>

 <asp:CheckBox runat="server" ID="Contact" />

 </ItemTemplate>

 </radG:GridTemplateColumn>

 <radG:GridBoundColumn DataField ="Email" HeaderText="<%$ Resources:ToolTextEmail, Recipient_Email %>" UniqueName="Email"></radG:GridBoundColumn>

 <radG:GridBoundColumn DataField="FirstName" HeaderText="<%$ Resources:ToolTextEmail, Recipient_FirstName %>" UniqueName="First Name"></radG:GridBoundColumn>

 <radG:GridBoundColumn DataField="LastName" HeaderText="<%$Resources:ToolTextEmail, Recipient_LastName %>" UniqueName="Lase Name"></radG:GridBoundColumn>

 <radG:GridBoundColumn DataField="Address1" HeaderText="<%$Resources:ToolTextEmail, Recipient_Address1 %>" UniqueName="Address1"></radG:GridBoundColumn>

 <radG:GridBoundColumn DataField="Company" HeaderText="<%$Resources:ToolTextEmail, Recipient_Company %>" UniqueName="Company"></radG:GridBoundColumn>

 <radG:GridBoundColumn DataField="City" HeaderText="<%$Resources:ToolTextEmail, Recipient_City %>" UniqueName="City"></radG:GridBoundColumn>

 <radG:GridBoundColumn DataField="State" HeaderText="<%$Resources:ToolTextEmail, Recipient_State %>" UniqueName="State"></radG:GridBoundColumn>

 </Columns>

 </MasterTableView>

 </radG:RadGrid>

and the source code is 

Private Sub dgrdResults_DetailTableDataBind(ByVal source As Object, ByVal e As Telerik.WebControls.GridDetailTableDataBindEventArgs) Handles dgrdResults.DetailTableDataBind
Dim db As Database

 

 

Dim dataset As DataSet = Nothing

 

 

Dim dbCommandWrapper As DbCommand = Nothing

 

 

Try

 

db = DatabaseFactory.CreateDatabase()

dbCommandWrapper = db.GetStoredProcCommand(

"spListGetByRecipient")

 

db.AddInParameter(dbCommandWrapper,

"@recipientId", DbType.Int32, 100125)

 

dataset = db.ExecuteDataSet(dbCommandWrapper)

e.DetailTableView.DataSource = dataset

dataset.Dispose()

dbCommandWrapper.Dispose()

 

Catch ex As Exception

 

 

Throw ex

 

 

Finally

 

 

If (Not dbCommandWrapper Is Nothing) Then

 

dbCommandWrapper.Dispose()

 

End If

 

 

If (Not dataset Is Nothing) Then

 

dataset.Dispose()

 

End If

 

 

End Try

 

 

End Sub

And in this code e.DetailTableView.DataSource = dataset  I get table with values, but in browser "No record bind" message shown .
Does I miss something or forget anything in code?
 Please help me

 

Jayesh Goyani
Top achievements
Rank 2
 answered on 06 Jan 2012
2 answers
157 views
I have a static table in Radwindow's <ContentTemplate> tag. Upon popping up the Radwindow, it opens as collapsed for IE9. Works fine with rest of the major browsers, vis. IE 8, IE 9 Compat mode, FF, Chrome.
Here is my code
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .hide
        {
            overflow: hidden;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div style="overflow: hidden;">
        <table cellspacing="0" border="0" style="table-layout: auto;">
            <tbody>
                <tr>
                    <th style="width: 100px;">
                        Column 1
                    </th>
                    <th style="width: 100px;">
                        Column 2
                    </th>
                </tr>
                <tr>
                    <td>
                        a
                    </td>
                    <td>
                        a
                    </td>
                </tr>
                <tr>
                    <td>
                        b
                    </td>
                    <td>
                        b
                    </td>
                </tr>
                <tr>
                    <td>
                        c
                    </td>
                    <td>
                        c
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    <br />
    <br />
    <br />
    <br />
    <telerik:RadScriptManager ID="scriptManager" runat="server" />
    <telerik:RadButton ID="btnOpen" runat="server" Text="Open" OnClick="btnOpen_Click" />
    <br />
    <telerik:RadWindow ID="TestDialog" runat="server" Title="Select Order Services" VisibleStatusbar="false"
        AutoSize="true" AutoSizeBehaviors="Height" Width="400px" Modal="true" VisibleOnPageLoad="false" Behaviors="Close, Move"
        EnableShadow="true" CssClass="hide">
        <ContentTemplate>
            <div>
                <table cellspacing="0" border="0" style="table-layout: auto;">
                    <tbody>
                        <tr>
                            <th style="width: 100px;">
                                Column 1
                            </th>
                            <th style="width: 100px;">
                                Column 2
                            </th>
                        </tr>
                        <tr>
                            <td>
                                a
                            </td>
                            <td>
                                a
                            </td>
                        </tr>
                        <tr>
                            <td>
                                b
                            </td>
                            <td>
                                b
                            </td>
                        </tr>
                        <tr>
                            <td>
                                c
                            </td>
                            <td>
                                c
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </ContentTemplate>
    </telerik:RadWindow>
    </form>
</body>
</html>
Code behind:
protected void btnOpen_Click(object sender, EventArgs e)
        {
            TestDialog.VisibleOnPageLoad = true; // Pop up the radwindow
        }
Svetlina Anati
Telerik team
 answered on 06 Jan 2012
1 answer
168 views
Hi Team,
How can I resize a radeditor to fit the screen when a window is resized. I have used the setSize() property and i have used the below coding but i didn't get the result as expected. Anybody help me on how to resize the radEditor?. Is any possible way to do this via .css?


function
OnClientLoad(editor, args) {

//set the editor size

editor.setSize( 

"100%", document.body.offsetHeight - 90);

window.onresize = ResizeEditor(editor);
}

var resizeFlag = true;

function ResizeEditor(editor)  

if (resizeFlag) {  

editor.setSize( 

"100%", document.body.offsetHeight - 90);  

resizeFlag = false;  

window.setTimeout(function()  

{

resizeFlag = true;  

},100);

}

}

Thanks in advance
Sasireka

Princy
Top achievements
Rank 2
 answered on 06 Jan 2012
4 answers
508 views
Hello Telerik!

We have a page that uses a couple RadButtons as check boxes. A grid row is selected and it fills in controls with data on the page. Other controls work fine but the RadButton will not accept the Boolean value for setting it checked. Once the data is read and then rendered to the controls the RadButton's are always go unchecked to checked.

Here is the control in ASPX
<telerik:RadButton runat="server" ID="RadButtonIsFemale" Text="Female?" ButtonType="ToggleButton" AutoPostBack="false" ToggleType="CheckBox"></telerik:RadButton>

And the RadGrid calls a Javascript function RowSelected that updates the controls with grid data.

function RowSelected(sender, args) {
var myRadGrid = sender;
        var myMasterTable = myRadGrid.get_masterTableView();
        var myName = myMasterTable.get_selectedItems()[0].getDataKeyValue('Name');
$find("<%= RadTextBoxName.ClientID %>").set_value(myName);
...
...
...
var myIsFemale = myMasterTable.get_selectedItems()[0].getDataKeyValue('IsFemale');
$find("<%= RadButtonIsFemale.ClientID %>").set_checked(myIsFemale);
}

The bold line above always just sets it to True - I have validated the data, so False and True values are definitely set to 'IsFemale', but it doesn't toggle the check. Is there a different property that needs to be set?

Thanks!
SDI

Sally
Top achievements
Rank 1
 answered on 06 Jan 2012
1 answer
79 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
567 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
113 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
316 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
70 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?