Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
93 views
Dear Telerik Team,

Let me know if the following approach would work out.

1) Page.aspx displays a RadGrid with a number of customizations user can  do on it to show the data.
2) Page.aspx has a button called 'Generate PDF'. When I click it, is it possible to create a new instance of RadGrid, assign the existing grid value to it (BYVAL and not BYREF). Then export the PDF from the new instance of RadGrid.

Basically I want to do this because I can not call 'Rebind' on the existing grid and/or visually make any changes on the existing grid. The new grid should be invisible totally only for the purpose of PDF.
Casey
Top achievements
Rank 1
 answered on 02 Mar 2012
3 answers
274 views
Greetings,

I have a GridCheckboxColumn in my grid and a need to create a GridTemplateColumn according to the checkbox is checked or not.
For instance,

line 1,

if the checkbox is checked the GridTempleColumn label displays "YES" ,
if the checkbox is not checked the GridTempleColumn label displays "NO",
if the checkbox is NULL : it displays "N/A".


To sum up, i have this in my aspx page:

<telerik:GridCheckBoxColumn DataField="facturable" DataType="System.Boolean" HeaderText="facturable"
    SortExpression="facturable" UniqueName="facturable">
</telerik:GridCheckBoxColumn>
 
                <telerik:GridTemplateColumn  HeaderText="Type de tickets"
    UniqueName="typedestickets">
    <ItemTemplate><asp:Label id="test" runat="server"></asp:Label></ItemTemplate>
</telerik:GridTemplateColumn>

My try in code behind : ( not working )

protected void RadGrid1_DataBound(object sender, EventArgs e)
{
    foreach (Telerik.Web.UI.GridDataItem dataItem in RadGrid1.MasterTableView.Items)
    {
        CheckBox chkDelete = (CheckBox)dataItem.FindControl("facturable"); 
        Label label = (Label)dataItem.FindControl("test");
 
        if (chkDelete.Checked == true) { label.Text = "MA"; }
    }
 
 
 
}


Thank you in advance for your help

Casey
Top achievements
Rank 1
 answered on 02 Mar 2012
2 answers
127 views
Since I upgraded to Telerki.Web.UI.dll version 2012.1.212.35, disabled RadDateInput controls show two dates.  It happens whether I pre-populate the date using the DbSelectedDate or the SelectedDate property.

 

<telerik:RadDateInput ID="BwrDOB" runat="server" Enabled="false" MinDate="1/1/1900">
</telerik:RadDateInput>

The two date problem appeared when I tested with the following browsers:

  • Internet Explorer 9.0.8112.16421 (update versions 9.0.5)
  • Opera 11.60 Build 1185, Opera 11.61 Build 1250

NOTE:  When I turned on IE compatibility mode, the problem disappeared.

I didn't have any problems with the following browsers:

  • Firefox 10.0.1
  • Google Chrome 16.0.912.77m, Google Chrome 17.0.963.56m
  • Safari 5.1.1 (7534.51.22)
Vasil
Telerik team
 answered on 02 Mar 2012
8 answers
317 views
Hello,

I am using the latest 2011 Ajax .Net version (2011 Q3). Can you please provide an example about how to programmatically create a Rad Alert with custom html text content?
Also, the  Rad Alert should auto-size (if possible?) and I need to control the position of the 'Ok' button.

What I am trying to achieve is to display a modal window (created by code) once I click on some areas of the page. This is necessary because I am pulling information from a database.

Regards,
M.R.
M. R.
Top achievements
Rank 1
 answered on 02 Mar 2012
2 answers
194 views
What is the preferred way to have a rotator auto advance ads, but also allow buttons for going back if they missed one?  It seems like the buttons are not available if you set the type to auto advance...  is there something there that I am missing?

Thanks,

-Chris
Slav
Telerik team
 answered on 02 Mar 2012
1 answer
177 views
Hi There,

In the Telerik version 2011.2.915.40 i found jquery version 1.6.4 and in my application i have used 1.7.1.

I cannot find the ID of the grid using $find('<%= grid.ClientID %>') it is returning null to me. It was working until i was using Jquery version 1.2.6.

NOTE: My grid is in ascx page and javascript is also in ascx page.

Waiting for your response.

Thanks.

Regards,
Dhaval
Richard
Top achievements
Rank 1
 answered on 02 Mar 2012
11 answers
343 views
Dear Forum,

I am working on a grid that has drag-and-drop grouping enabled, but I want to prevent the highest level of grouping from being dropped, so then the grid will always be grouped by that first data item. But I can find no way to eliminate the "x" from the group header box for that item and I can't seem to work out how to handle the GroupsChanging event and use the GridGroupsChangingAction.Ungroup to keep that item in the grouping expression. Can anyone advise or point me to a working
example?

Thanks,
Celeste
Marin
Telerik team
 answered on 02 Mar 2012
1 answer
268 views
Is there a way to group the rows (not columns) in the RadGrid control. Or maybe a way out to rowspan few rows in the RadGrid control.
Richard
Top achievements
Rank 1
 answered on 02 Mar 2012
3 answers
92 views

Hello Telerik Team,

Please am trying to do a search and open the result on a new tab and a new pageview but the search result clears up each time i navigate back to it and if i try another search on a giving opened tab, it show me error:

Multiple controls with the same ID 'ctl03' were found. FindControl requires that controls have unique IDs.

I have tried to enable view state but it did not help.

RadTab newTab1 = new RadTab();

newTab1.Text = Session["session_newtab"].ToString();

newTab1.Width = Unit.Pixel(150);
RadTabStrip1.Tabs.Add(newTab1);

  (RadTabStrip1.FindTabByText(Session["session_newtab"].ToString())).Selected = true;
RadPageView newwindow = new RadPageView();
newwindow.ID = newTab1.Text;
newwindow.ContentUrl = "search/search_judges.aspx?name=" + item;
newTab1.PageViewID = newwindow.ID;
newwindow.Width = Unit.Pixel(878);
newwindow.Height = Unit.Pixel(785);
newwindow.EnableViewState = true;

RadMultiPage2.PageViews.Add(newwindow);

Please this is urgent on my timeline

 Thanks 

Dimitar Terziev
Telerik team
 answered on 02 Mar 2012
3 answers
244 views
Here's the scenario:
  • MasterPage being used with RadAjaxManager and ScriptManager, the EnableHistory property of ScriptManager set to "true".
  • Page inheriting master has ScriptManagerProxy where OnNavigate event is being handled to read when user clicks 'Back' button.
  • Page has different buttons that cause ajax postbacks where I'm grabbing important info and using ScriptManager.AddHistoryPoint to maintain those values.
  • When user navigates back to my page, the OnNavigate fires and all my important info is there in the HistoryEventArgs.State.  I manually call to update form controls to account for that important info and, even though method calls appear to run successfully, form controls are not actually updated.

Seems like a typical AJAX scenario where some ajax setting is not set correctly but, in this case, I have no idea how I would setup ajax to update the necessary controls when OnNavigate fires.  Not even sure if I understand why ajax settings would be an issue.  I mean, we're talking about the initial page load.  Why wouldn't the controls that I'm clearly setting to certain values actually show those values on screen?
Maria Ilieva
Telerik team
 answered on 02 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?