Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
103 views
Hi,
  I have a RadGrid with PagerStyle set to GridPagerMode.NumericPager. I would like to attach client side event to the Page Numbers displayed in the Pager. I would like to do something like control.Attributes.Add("onclick", "PageIndexChanging"). How can this be done programmatically

Thanks
Satyaprakash J
Princy
Top achievements
Rank 2
 answered on 16 Nov 2009
2 answers
148 views
Hi,

As you can see on the attached image, my vertical axis shows the numbers 0 to 7.

However, what I would like is that I can show a text here, as each bar in my chart is representing a company department.

So my question is: How can I replace these numbers by the name of the company department?

Thanks!
Bouwe
Frans Musters
Top achievements
Rank 1
 answered on 16 Nov 2009
1 answer
247 views
Hi,

    I know there are a few threads about modifiying pdf exports.  Has any one found a solution to adding page numbers to the pdf exported from a grid?  I need to add xx of xx in a footer.

Thanks,

Dave
Princy
Top achievements
Rank 2
 answered on 16 Nov 2009
4 answers
193 views
Hello!

I want to make similar effect with RadGrid like here:
http://www.egobba.de/company.htm

Type "180280" in Company ID for example.

I don't how to make that if I enter some value in one textbox, then it's multiplying with value from other cell (in the same row) and showing in another cell of the same row.

--- value --- textbox --- result  

value*textbox = result

I want to do it without postbacks, just JS on client side.


Vlad
Telerik team
 answered on 16 Nov 2009
2 answers
157 views
Hello,

I am trying to evaluate the client-side databinding using WCF and am having a hard time getting the desired results.  It appears that I have everything working correctly, and in Firebug I can see that the data is being returned from my WCF method, but it's not showing up in the grid.  Also, it is returning the correct number of rows(it is showing the correct paging information and total row count) but is ignoring the pagesize property.  Here are some snippets:

<telerik:RadGrid  
            ID="rgTasks"  
            runat="server" 
            AllowPaging="true"  
            ShowHeader="true" 
            ShowStatusBar="true" 
            AutoGenerateColumns="false" 
            Skin="Vista" 
            PageSize="15" 
            AllowSorting="true"> 
            <MasterTableView  
            DataKeyNames="taskid"  
            AlternatingItemStyle-BackColor="AliceBlue" 
            CommandItemDisplay="Top" 
            NoMasterRecordsText="No tasks found." 
            ClientDataKeyNames="taskid"> 
                <CommandItemSettings 
                ShowExportToWordButton="true" 
                ShowExportToExcelButton="true" 
                ShowExportToCsvButton="true" 
                ShowExportToPdfButton="true"/> 
                <Columns> 
                    <telerik:GridBoundColumn  
                    DataField="taskid"  
                    HeaderText="Task ID" 
                    DataType="System.Int32"> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn  
                    DataField="title"  
                    HeaderText="Title" 
                    DataType="System.String"> 
                    </telerik:GridBoundColumn> 
                    <%--<telerik:GridTemplateColumn  
                    DataField="description"  
                    SortExpression="description" 
                    HeaderText="Description"> 
                        <ItemTemplate> 
                            <dp:Label 
                            runat="server" 
                            ID="lblDescription" 
                            Text='<%# FormatTextForGridDisplay(Eval("description").ToString()) %>' 
                            ToolTip='<%# Eval("description") %>'> 
                            </dp:Label> 
                        </ItemTemplate> 
                    </telerik:GridTemplateColumn>--%> 
                    <telerik:GridBoundColumn  
                    DataField="assignedto"  
                    HeaderText="Assigned To" 
                    DataType="System.String"> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn  
                    DataField="status"  
                    HeaderText="Status" 
                    DataType="System.String"> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn  
                    DataField="priority"  
                    HeaderText="Priority" 
                    DataType="System.String"> 
                    </telerik:GridBoundColumn> 
                    <%--<telerik:GridTemplateColumn  
                    DataField="account"  
                    SortExpression="Account" 
                    HeaderText="account"> 
                        <ItemTemplate> 
                            <dp:Label 
                            runat="server" 
                            ID="lblAccount" 
                            Text='<%# Eval("description") %>'> 
                            </dp:Label> 
                        </ItemTemplate> 
                    </telerik:GridTemplateColumn>--%> 
                    <telerik:GridBoundColumn  
                    DataField="startdate"  
                    HeaderText="Start Date" 
                    DataType="System.String"> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn  
                    DataField="duedate"  
                    HeaderText="Due Date" 
                    DataType="System.String"> 
                    </telerik:GridBoundColumn> 
                </Columns> 
                <PagerStyle Mode="NextPrevAndNumeric" /> 
            </MasterTableView> 
            <ClientSettings> 
                <DataBinding  
                SelectMethod="GetTasksForList"  
                SelectCountMethod="GetTasksForListCount" 
                Location="~/Services/Service.svc" 
                StartRowIndexParameterName="startIndex" 
                MaximumRowsParameterName="maxRowCount"> 
                </DataBinding> 
            </ClientSettings> 
            </telerik:RadGrid> 

Here is the service:
[OperationContract] 
    public TList<Tasks> GetTasksForList(int startIndex, int maxRowCount) 
    { 
        TasksService ts = new TasksService(); 
        TList<Tasks> tlist = ts.GetAll(); 
        return tlist; 
    } 
 
    [OperationContract] 
    public int GetTasksForListCount() 
    { 
        TasksService ts = new TasksService(); 
        return ts.GetAll().Count; 
    } 

Here is my web.config

<system.serviceModel> 
        <behaviors> 
            <endpointBehaviors> 
                <behavior name="ServiceAspNetAjaxBehavior"> 
                    <enableWebScript/> 
                </behavior> 
            </endpointBehaviors> 
            <serviceBehaviors> 
                <behavior name="metadataAndDebug"> 
                    <serviceMetadata httpGetEnabled="true" httpGetUrl="" /> 
                    <serviceDebug httpHelpPageEnabled="true" includeExceptionDetailInFaults="true" /> 
                </behavior> 
            </serviceBehaviors> 
        </behaviors> 
        <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/> 
        <services> 
            <service name="Service"> 
                <endpoint address="" behaviorConfiguration="ServiceAspNetAjaxBehavior" binding="webHttpBinding" contract="Service"/> 
                <endpoint address="mex" binding="mexHttpBinding" contract="Service"   /> 
            </service> 
        </services> 
    </system.serviceModel> 



Thanks!!



Vlad
Telerik team
 answered on 16 Nov 2009
1 answer
107 views
Am I right that filters set on a client-side databound radgrid are not preserved during a postback?

Currently I have my own buttons to set a filter on the grid. When I press one of the buttons, this client-side function is called:
function actionFilter(obj, value) 
{ 
    var tableview = grid.get_masterTableView(); 
    tableview.filter('Action', value, 'EqualTo'); 
     
} 

I have one column which causes a postback. After the postback, the filter is gone and all records are shown. So if I want to preserve the filter, I have to save it programmatically?
Princy
Top achievements
Rank 2
 answered on 16 Nov 2009
2 answers
158 views
Hello,
I have a NextPrevAndNumeric pager in a grid and I wanted to localize the text for the label that says "Page size:", but I cannot seem to find out how to do this.

Is it in PagerStyle?  Somewhere else?  Does this have to be done using a FindControl of the label on the ItemCreated event (I am already creating the grid programatically on Page_Init).

dqAnswer.PagerStyle.PrevPageToolTip 
dqAnswer.PagerStyle.NextPageToolTip 
dqAnswer.PagerStyle.PagerTextFormat 


Princy
Top achievements
Rank 2
 answered on 16 Nov 2009
1 answer
96 views
Hi,

I have grid with tabstrip. tabstrip is inside NestedViewTemplate. When i expand one of row i want close previous expanded row.
How can i do this. Is there any gridproperty set it

lakmal
Princy
Top achievements
Rank 2
 answered on 16 Nov 2009
1 answer
90 views
Hello,

A site I am working on has people to copying and pasting articles into the Editor.  I'm trying to make it so people can simply paste a whole article from Word or the like and each paragraph in Word will be wrapped with paragraph tags in the HTML.  I essentially have it set up how I want it (with NewLineBR="false" and stripping some other stuff out), except the last paragraph doesn't get wrapped in the paragraph tags.  The person can hit Enter every time after the last paragraph (which does wrap it in the paragraph tags), but I can't expect everyone to do that.

This also happens when they aren't pasting the content in.  If they type out (rather than paste) a summary, for example, the last paragraph is not wrapped in paragraph tags.  Again, if the person hits Enter then it wraps it with the paragraph tags.

Basically, here's what people currently have to do:
  • Paste the article in from Word
  • Hit Enter to correctly wrap the last paragraph in paragraph tags
  • Submit

I'm looking to trim out the part where people have hit enter after pasting in their article.  Here's how I have one of the Editors set up:

<telerik:RadEditor StripFormattingOptions="MSWordRemoveAll, css, span" OnClientPasteHtml="StripCharacters" OnClientLoad="DeveloperDescriptionCounter" SkinID="DeveloperDescription" runat="server" ID="editor" AllowScripts="false" NewLineBr="false" ToolsFile="~/App_Data/Editor/EditorToolbar.xml" CssClass="description"> 
    <Content></Content> 
</telerik:RadEditor> 

I'm not sure if that helps at all, but I figured it wouldn't hurt to include it.  I should probably re-mention that every paragraph, except for the last one, works fine.

Thanks,
Nathan
Nathan
Top achievements
Rank 1
 answered on 16 Nov 2009
1 answer
108 views
Is there any way to have the markup for Telerik controls like the RADGrid not be reformatted by Visual Studio? It seems to be removing whitespace to conserve space but this is really annoying when trying to view and edit the aspx.

Bob
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 16 Nov 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?