Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
233 views
I have implemented with Silverlight and Flash a way for the user to browse select multiple files and then upload them. I like to find a way to do without using the plug-ins.
Anybody?
Right now I am using
http://demos.telerik.com/aspnet-ajax-beta/upload/examples/async/monitorprogress/defaultcs.aspx
and for the silverlight
http://demos.telerik.com/aspnet-ajax-beta/upload/examples/silverlight/defaultcs.aspx
Thanks in advance
Best regards
robertw102
Top achievements
Rank 1
 answered on 17 Feb 2010
0 answers
254 views
duplicate post...delete
Nathan
Top achievements
Rank 1
 asked on 17 Feb 2010
1 answer
110 views

I'd need an Input TextBox with the following characteristics:

- colour of the border: #ababab,
- height of the component: 22px,
- distance of the base of the text from the bottom: 5px,
- colour of the text: #333333,
- font of the text: verdana,
- size of the text: 11px.

Could you please send me the corresponding code,
(css head + html) valid for:

Internet Explorer,
Firefox,
Opera,
Safari,
Chrome?

Thank you

Alberto Bresesti

Kamen Bundev
Telerik team
 answered on 17 Feb 2010
3 answers
221 views
I have a grid inside the nestedviewtemplate of another grid.

In the commanditemtemplate i have a button for exporting the grid.

However, my header row is not displayed. I am unable to figure out why my header is not visible.

Grid declaration:

<

NestedViewTemplate>

 

 

 

 

<telerik:RadGrid ID="RadGridKeyRelation" runat="server" Visible="false" AllowPaging="true"

 

 

AllowFilteringByColumn="true" OnInit="RadGridKeyRelation_Init" OnNeedDataSource="RadGridKeyRelation_NeedDataSource" OnItemDataBound="RadGridKeyRelation_ItemDataBound"

 

 

Width="950px" AutoGenerateColumns="false" OnItemCommand="RadGridKeyRelation_ItemCommand" OnItemCreated="RadGridKeyRelation_ItemCreated" EnableLinqExpressions="false" PageSize="10" HeaderStyle-BackColor="#5297b9" HeaderStyle-BorderColor="#ffffff">

 

 

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

 

 

FileName="RelatedContactsExport">

 

 

<Pdf AllowAdd="false" AllowCopy="true" AllowModify="true" AllowPrinting="true" Author="Anonymous"

 

 

Keywords="None" PageBottomMargin="0.5in" PageLeftMargin="0.5in" PageRightMargin="0.5in" PageWidth="425mm"

 

 

PageTopMargin="0.5in" PageTitle="Grid export document" Subject="Grid Export" Title="Grid export"

 

 

PaperSize="Letter" />

 

 

</ExportSettings>

 

 

<MasterTableView TableLayout="Fixed" Name="KeyRelations" DataKeyNames="RelatedContactID, LastName, FirstName"

 

 

CommandItemDisplay="Top">

 

 

<Columns>

 

 

<telerik:GridTemplateColumn HeaderText="Name" UniqueName="KeyRelName" HeaderStyle-Width="20%"

 

 

FilterControlWidth="140px" DataField="LastName" CurrentFilterFunction="StartsWith"

 

 

ItemStyle-BackColor="#eef6f9" AutoPostBackOnFilter="true">

 

 

<ItemTemplate>

 

 

<br />

 

 

<asp:LinkButton ID="LinkButtonSpouseName" CssClass="linkButton" CommandName="ShowContact"

 

 

runat="server"><b><%# Eval("Name")%></b></asp:LinkButton>

 

 

<asp:Label ID="Label1" runat="server" CssClass="label" Visible='<%# !Convert.IsDBNull(Eval("Relationship")) %>'><br /><b>Relationship</b>:&nbsp;</asp:Label><%# Eval("Relationship")%>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn HeaderText="Type" UniqueName="Type" HeaderStyle-Width="10%"

 

 

ItemStyle-BackColor="#eef6f9" DataField="RelationType">

 

 

<FilterTemplate>

 

 

<telerik:RadComboBox ID="RadComboBoxRelatedContacts" runat="server" AutoPostBack="true"

 

 

OnPreRender="RadComboBoxRelatedContacts_PreRender" Width="95px" OnSelectedIndexChanged="RadComboBoxRelatedContacts_SelectedIndexChanged">

 

 

<Items>

 

 

<telerik:RadComboBoxItem Text="Family" Value="Family" />

 

 

<telerik:RadComboBoxItem Text="Business" Value="Business" />

 

 

<telerik:RadComboBoxItem Text="Personal" Value="Personal" />

 

 

<telerik:RadComboBoxItem Text="Professional" Value="Professional" />

 

 

<telerik:RadComboBoxItem Text="Colleagues" Value="Colleagues" />

 

 

</Items>

 

 

</telerik:RadComboBox>

 

 

</FilterTemplate>

 

 

<ItemTemplate>

 

<%

# Eval("RelationType")%>&nbsp;

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn HeaderText="Phone" UniqueName="Phone" HeaderStyle-Width="21%"

 

 

ItemStyle-BackColor="#eef6f9" AllowFiltering="false">

 

 

<ItemTemplate>

 

<%

# Eval("Phone")%>&nbsp;

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn HeaderText="Remarks" UniqueName="Remarks" HeaderStyle-Width="10%"

 

 

ItemStyle-BackColor="#eef6f9" FilterControlWidth="75px" DataField="Remarks" AllowFiltering="false">

 

 

<ItemTemplate>

 

<%

# Eval("Remarks")%>&nbsp;

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

</Columns>

 

 

<CommandItemTemplate>

 

 

<asp:LinkButton ID="LinkButtonExportKeyRel" runat="server" CommandName="Export" OnClick="LinkGridRelatedContactPrint_OnClick"

 

 

CausesValidation="false" Text="Export" ForeColor="Black"></asp:LinkButton>&nbsp;

 

 

</CommandItemTemplate>

 

 

<PagerStyle Position="TopAndBottom" PrevPageText="Prev" NextPageText="Next" />

 

 

</MasterTableView>

 

 

</telerik:RadGrid>

 



.cs code for export

protected

void LinkGridRelatedContactPrint_OnClick(object sender, EventArgs e)

 

{

 

foreach (GridNestedViewItem item in RadGridContact.MasterTableView.GetItems(Telerik.Web.UI.GridItemType.NestedView))

 

{

 

RadGrid gridKeyRel = (RadGrid)item.FindControl("RadGridKeyRelation"); 

 

gridKeyRel.Rebind();

FormatGridExport(gridKeyRel);

 

gridKeyRel.MasterTableView.ExportToPdf();

}

}


I am also unable to put any formatting on the pdf export.

 

private

void FormatGridExport(RadGrid grid)

 

{

 

foreach(GridHeaderItem headerItem in grid.MasterTableView.GetItems(Telerik.Web.UI.GridItemType.Header))

 

{

 

 

headerItem.Style[

"font-size"] = "6pt";

 

headerItem.Style[

"color"] = "#ffffff";

 

headerItem.Style[

"background-color"] = "#003e7e";
headerItem.Style["vertical-align"] = "middle";

 

 

foreach (TableCell cell in headerItem.Cells)

 

{

cell.Style[

"font-family"] = "Tahoma";

 

cell.Style[

"text-align"] = "center";

 

cell.Style[

"font-weight"] = "normal";

 

cell.Style[

"border-color"] = "#003e7e";

 

}

 

}

 

foreach (Telerik.Web.UI.GridItem dataItem in grid.MasterTableView.GetItems(Telerik.Web.UI.GridItemType.Item))

 

{

 

 

foreach (TableCell cell in dataItem.Cells)

 

{

cell.Style[

"font-family"] = "Tahoma";

 

cell.Style[

"text-align"] = "center";

 

cell.Style[

"color"] = "#898a8c";

 

cell.Style[

"font-size"] = "5.5pt";}

 

}

}

What am I doing wrong here?

Daniel
Telerik team
 answered on 17 Feb 2010
5 answers
116 views
I am trying to add a checkbox to the group headings in my RadGrid, and I followed the instructions in a forum to do this server side. The problem I am having is similar to what the users are describing here:



I need to add the checkbox, but seems I can only get it to work when I have the grid GroupLoadMode set to Server. The issue I have is

 that I specifically need this set to client for other functionality I have already coded. Does somebody have an example of adding a

 checkbox or other control to a group heading using javascript (Client-side) as opposed to some of the other examples on this website

 that accomplish the same thing using server side code?
Pavlina
Telerik team
 answered on 17 Feb 2010
5 answers
194 views
Hi
            I am using NestedView grid. It is having the the feature of ExportPDF. So i added export button inside the CommandItemTemplate.

I firmly need a formatted PDF ouptut, so as per the Telerik direaction i used ItemCreated Event to set up the formatting styles for exporting based on the true flag set inside the ItemCommand event when i called export button.

Normally when i click the export button the grid has to fire the ItemCreated event then need to fire ItemCommand event again it return back to ItemCreated  event . so that only i can set the flag in ItemCommand event that helps to form the PDF file output in the Itemcreated event.

But in my Nested grid the Itemcreated event firing first and then ItemCommand event fires but finally it never return back to Itemcreated event . As a result of these i could not set the flag so that could not format the PDF out put.

So guide me to solve the scenario...

-Thanks
Daniel
Telerik team
 answered on 17 Feb 2010
1 answer
115 views
<Telerik:RadGrid AutoGenerateColumns="False" Skin="Vista" GridLines="Both" 
    OnItemDataBound="grForumList_ItemDataBound" ID="grForumList" AllowPaging="True"  
    AllowSorting="True" runat="server"> 
    <PagerStyle Mode="NextPrevAndNumeric" /> 
    <GroupingSettings CaseSensitive="false" /> 
    <MasterTableView TableLayout="Fixed" Dir="RTL" PageSize="2"> 
        <Columns> 
            <Telerik:GridTemplateColumn UniqueName="clForumIcon" HeaderText="סוג"> 
                <ItemTemplate> 
                     <YAF:ThemeImage ID="ThemeForumIcon" runat="server" /> 
                </ItemTemplate> 
            </Telerik:GridTemplateColumn> 
            <Telerik:GridTemplateColumn UniqueName="clLnkForum" HeaderText="פורום"> 
                <ItemTemplate> 
                    <asp:LinkButton CommandName="Select" ID="lnkForum" runat="server"></asp:LinkButton> 
                </ItemTemplate> 
            </Telerik:GridTemplateColumn> 
            <Telerik:GridBoundColumn SortExpression="ProductName" HeaderText="צפו בפורום" HeaderButtonType="TextButton" UniqueName="lblForumViewing"></Telerik:GridBoundColumn> 
            <Telerik:GridBoundColumn SortExpression="ProductName" HeaderText="תיאור" HeaderButtonType="TextButton" UniqueName="lblForumDescription"></Telerik:GridBoundColumn> 
            <Telerik:GridBoundColumn SortExpression="ProductName" HeaderText="נושאים" HeaderButtonType="TextButton" UniqueName="lblCountTopics"></Telerik:GridBoundColumn> 
            <Telerik:GridBoundColumn SortExpression="ProductName" HeaderText="הודעות" HeaderButtonType="TextButton" UniqueName="lblCountPosts"></Telerik:GridBoundColumn> 
            <Telerik:GridTemplateColumn UniqueName="clLnkLastPosts" HeaderText="הודעה אחרונה"> 
                <ItemTemplate> 
                    <asp:LinkButton CommandName="Select" ID="lnkLastPosts" runat="server"></asp:LinkButton> 
                </ItemTemplate> 
            </Telerik:GridTemplateColumn> 
        </Columns> 
        <HeaderStyle Width="80px"></HeaderStyle> 
    </MasterTableView> 
    <PagerStyle Mode="NextPrevAndNumeric" /> 
</Telerik:RadGrid> 
Hi,
I am facing very odd problem with my grid design, when i am in design mode i can see the grid skin with borders, pager style etc..
But, when i run the application i see the grid with no borders or skin, just the data on the page with nothing.

You can see the code above.
* As you can see, i am using ItemDataBound event.

Can you please advice?

Martin
Telerik team
 answered on 17 Feb 2010
3 answers
349 views
Hi

I'm using template columns in rad grid. I would like to use the pencil & trash images that u guys provide for the default GridEditColumns.
I think the images are packaged in the DLL, is there a way to access them ?

Please let me know.

Thanks
Kiran
XXXX
Top achievements
Rank 1
 answered on 17 Feb 2010
1 answer
40 views
Hi,

I'm using WebUserControl for Grid EditForm. It show up if I click "Add new record" icon from top bar, but nothing happened if I click "Edit" on row level. What are the restrictions which can prevent the grid from showing user control edit form?

Thanks,
Enoch
Enoch Kuang
Top achievements
Rank 1
 answered on 17 Feb 2010
7 answers
177 views

This cannot be this difficult.  When I set the AllowColumnResize = 'true' the grid still won't allow me to resize the column header.

  <telerik:RadGrid ID="MyClientsViewGrid" runat="server"   
        AllowAutomaticDeletes="True" AllowAutomaticInserts="True"   
        AllowAutomaticUpdates="True" AllowSorting="True" DataSourceID="SqlDataSource1"   
        GridLines="None" Skin="Web20" ShowFooter="True">  
         
      <ClientSettings AllowColumnsReorder="true" ReorderColumnsOnClient="true">  
            <Resizing AllowRowResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="True" AllowColumnResize="True"></Resizing> 
      </ClientSettings> 
 
          
        <HeaderContextMenu Skin="Web20">  
            <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
        </HeaderContextMenu> 
 
        <MasterTableView AutoGenerateColumns="False" DataKeyNames="ListValueID" DataSourceID="SqlDataSource1" CommandItemDisplay="TopAndBottom" > 
            <Columns> 
               ...  
            </Columns> 
        </MasterTableView> 
 
        <FilterMenu Skin="Web20">  
            <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
        </FilterMenu> 
    </telerik:RadGrid> 

I found this article but it isn't allowing me to resize (The icon doesn't change into the Resizer)
http://www.telerik.com/help/aspnet-ajax/grdresizingcolumns.html  

 

Nathan
Top achievements
Rank 1
 answered on 17 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?