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

I'm currently upgrading our application to support the Ajax editor. I'd like to hide the above mentioned button text. I just want to see their icons with tooltips. How would I do this?

Regards,
Laredo
Rumen
Telerik team
 answered on 31 Dec 2010
4 answers
137 views

 

hi I am trying to get a PDF Report for this following code.  But its displaying Empty Report.

Please help me .

Thanks in advance


<
telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False"

 

 

GridLines="None">

 

<

 

HeaderContextMenu EnableImageSprites="True" CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>

 

<

 

MasterTableView>

 

<

 

CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>

 

<

 

RowIndicatorColumn>

 

<

 

HeaderStyle Width="20px"></HeaderStyle>

 

</

 

RowIndicatorColumn>

 

<

 

ExpandCollapseColumn>

 

<

 

HeaderStyle Width="20px"></HeaderStyle>

 

</

 

ExpandCollapseColumn>

 

 

<Columns>

 

 

<telerik:GridTemplateColumn UniqueName="TemplateColumn">

 

 

<ItemTemplate>

 

 

<table>

 

 

<tr>

 

 

<td>

 

 

<asp:Label ID="lblSchoolName" runat="server" Text='<%# Eval("InstitutionName") %>'></asp:Label>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

Student Name

 

</td>

 

 

<td>

 

 

<asp:Label ID="lblStudentName" runat="server" Text='<%# Eval("FullName")%>'></asp:Label>

 

 

</td>

 

 

<td>

 

Date Of Payment

 

</td>

 

 

<td>

 

 

<asp:Label ID="lblDOP0" runat="server" Text='<%# Eval("DateOfPayment")%>'> </asp:Label>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

Class

 

</td>

 

 

<td>

 

 

<asp:Label ID="lblClass" runat="server" Text='<%#Eval("CourseName")%>'></asp:Label>

 

 

</td>

 

 

<td>

 

Transaction Number

 

</td>

 

 

<td>

 

 

<asp:Label ID="lblTransactionNumber" runat="server" Text='<%#Eval("TransactionNumber")%>'></asp:Label>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

Year

 

</td>

 

 

<td>

 

 

<asp:Label ID="lblYear" runat="server" Text='<%#Eval("Section")%>'></asp:Label>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

Fee Type

 

</td>

 

 

<td>

 

 

<asp:Label ID="lblFeeType" runat="server" Text='<%#Eval("FeeTypeName")%>'></asp:Label>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

Term

 

</td>

 

 

<td>

 

 

<asp:Label ID="lblTerm" runat="server" Text='<%#Eval("TermNameIndex")%>'></asp:Label>

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

</ItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

</Columns>

 

</

 

MasterTableView>

 

 

</telerik:RadGrid>

 

vijay
Top achievements
Rank 1
 answered on 31 Dec 2010
1 answer
102 views
Hi everybody and merry christmas !

I'm trying to cancel filtering client side on the "oncommand" client event.

It's Ok when i just lostfocus on the textbox filter but if i press enter key the event is not cancel.

js function :

function RadGrid1_Command(sender, eventArgs) {
 
        if (eventArgs.get_commandName() == "Sort" || eventArgs.get_commandName() == "Page" || eventArgs.get_commandName() == "PageSize" || eventArgs.get_commandName() == "Filter" ) {
            if (confirm("blablabmlablabla")) {
                eventArgs.set_cancel(true);
            }else{ ....}
        }
  }

Client setting :

<ClientSettings>
    <ClientEvents OnCommand="RadGrid1_Command" />
</ClientSettings>

Filter column :
<telerik:GridTemplateColumn HeaderText="Libellé"
                   SortExpression="LIBRED"
                   DataField="LIBRED"                            
                   AutoPostBackOnFilter="true"
                   CurrentFilterFunction="Contains"
                   ShowFilterIcon="false"
                   UniqueName="LIBRED">
                 <ItemTemplate>
                     <asp:Label ID="LibelleLbl" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "LIBRED")%>' />
                   </ItemTemplate>
</telerik:GridTemplateColumn>

Thanks.

OPL



Daniel
Telerik team
 answered on 31 Dec 2010
1 answer
88 views
I have a clientside RadGrid that I am doing the following:
grid.tableView = grid.get_masterTableView();
grid.tableView.set_dataSource(data.Items);
grid.tableView.dataBind();
grid.tableView.set_virtualItemCount(data.Count);
Before my RowDatabound and DataBound Events are called, I am getting a bunch of blank rows with "System.Data.DataRowView" displayed in them. 
My attempt to fix this was to default the grid to display:none and then set it back later one, but I can't find a good event to do this since RowDataBound isn't good enough as it does it on the first row and that's not good enough. Any thoughts/ideas?
Tsvetoslav
Telerik team
 answered on 31 Dec 2010
8 answers
181 views
When using the GroupsDefaultExpanded = False, and also using inline editing, when I click the editbutton, my inline edit form won't show but instead the group collapses again. When using groups and not having GroupsDefaultExpanded on false there is no problem.

Using 2008.3.1124, in a dotNetNuke module. But also tried a testpage without dotnetnuke with the same problem.





G
Top achievements
Rank 1
 answered on 31 Dec 2010
1 answer
144 views
I have a case in which I need to use a custom validator in a grid edit form, and part of the custom validation is dependent upon ID of the data item being edited, but I don't see how to find that data item in my validation code.  Basically, I need to ensure that the name value entered in a text box is unique in the database for that table - which means that for an insert no other record should exist in the table with that name value, and for an update only the record with the matching ID should exist with that value.  My custom validator looks like:

<asp:CustomValidator ID="UniqueNameValidator" runat="server" Display="Dynamic"  ErrorMessage='A record already exists with this name' ControlToValidate="NameEditTextBox" OnServerValidate="ValidateUniqueName" />

Then the server side method would be:

        protected void ValidateUniqueName(object source, ServerValidateEventArgs args)
        {
            /// code here
        }

My problem is that the args object only gives me the value of the field being validated.  In order for me to do the dupe check I need to know the GridEditableItem being edited, and I don't know how to find that programmatically in this case because I don't have a GridCommandEventArgs or similar object with which to look at e.Item.

Is there any way to find the current GridEditableItem object from just looking at the grid object? Or is there another way to approach this that I am missing?
Princy
Top achievements
Rank 2
 answered on 31 Dec 2010
3 answers
233 views
I would like to validate file name when I upload document or image in RadEditor. If the file name is not valid, I would like to prompt an error message to user.

Is there any quick and easy way to do this?

I attach a screen shot to help clarify my case.
Rumen
Telerik team
 answered on 31 Dec 2010
2 answers
569 views
Dear all,

Does Telerik Grid have feature to Merge Cells? I want to Merge by Column (eg. Merge A1, A2, A3) .
If Telerik Grid doesn't have it, is there any way to do?

* My version is Q1 2010 SP2.
Hope you all can guide me as this is my first ASP.Net prj.

Thanks & Best Regards.
Naunton
Top achievements
Rank 1
 answered on 31 Dec 2010
2 answers
256 views
Hi,

I need to create a grid which is very similar to the demo Grid in Hierarchy
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/threelevel/defaultcs.aspx

Since this for a mock up demo,  i don't have any database to point out.

I followed this example http://www.telerik.com/community/forums/aspnet-ajax/grid/show-columns-without-datasource.aspx to create a single level grid.

Could you please tel me , what is the best way to create a hierarchy grid datasource with out a database.

Need help ASAP.
Thanks.
Eva
Eva
Top achievements
Rank 1
 answered on 31 Dec 2010
2 answers
64 views
Hi There,

I have a issue where I have a RadAjaxPanel and on this panel I have a Literal that holds the html from a function that creates some tables and RadTickers.
The panel is updates every 10 sec. by a timer

The first time the page is loaded and the Literal  is updated from the Page_Load event everythings works fine, but when the timer event runs after 10 sec. only tables are updated. if I look at the html that is generated it all looks fine, except the Radtikers don't start.

If I do a normal postback everything also works fine.

Do I need to update something in the ScriptManager from the Ajax event or does anyone have an idea on what could be wrong?

Thanks,

Hendrik

Hendrik Johns
Top achievements
Rank 1
 answered on 31 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
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?