Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
313 views
Hello:

I've implemented JavaScript so that the data in the first column of the RadGrid is a clickable link, clicking the link loads an informaiton form for whatever cell is clicked.

Is there a way to change the font of this cell so that it is obvious it is a clickable link? Change color, underline, or whatever?

So instead of

Col 1           Col 2         Col 3
Data            Data          Data
Data            Data          Data

I would have

Col 1           Col 2         Col 3
Data            Data          Data
Data            Data          Data

Or the cell text could be underlined.

Please note the grid is populated by a dynamic search at runtime, a datatable is built and bound to the grid.

John.
Pavlina
Telerik team
 answered on 05 Aug 2010
1 answer
82 views
Hi telerik team,

Does the example given in the below link works with the (Q3 2009).
http://demos.telerik.com/aspnet-ajax/chart/examples/silverlight/defaultcs.aspx

Actually i go the error
"Could not load file or assembly 'System.Web.Silverlight' or one of its dependencies. The system cannot find the file specified."

then i installed the silverlight in my system, and add the reference to the project.
finally i got the error

"BC32206: Indirect reference is being made to assembly System.Web.Extensions version 3.5.0.0, which contains 'System.Web.UI.SilverlightControls.Silverlight'. This Project references a prior version of System.Web.Extensions version 1.0.61025.0. To use 'System.Web.UI.SilverlightControls.Silverlight', you must replace the reference to System.Web.Extensions with version 3.5.0.0 or higher."

Plz help aspd..

Thanks
K²

Vladimir Milev
Telerik team
 answered on 05 Aug 2010
1 answer
127 views
Good Day All

My Radgrid is defined as follows

<telerik:RadGrid ID="RadGrid1" 
                        AllowPaging="True" PageSize="5"
                runat="server" GridLines="None" Width="100%" OnItemCreated="RadGrid1_ItemCreated"
                OnItemCommand="RadGrid1_ItemCommand" Skin="Black">
                <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" />
                <ItemStyle HorizontalAlign="Center" />
                                  
                  <MasterTableView>
                      <CommandItemSettings ExportToPdfText="Export to Pdf" />
                      <RowIndicatorColumn>
                          <HeaderStyle Width="20px" />
                      </RowIndicatorColumn>
                      <ExpandCollapseColumn>
                          <HeaderStyle Width="20px" />
                      </ExpandCollapseColumn>
                      <PagerStyle AlwaysVisible="True" />
                  </MasterTableView>
                                  
                <HeaderStyle HorizontalAlign="Center" />
                <AlternatingItemStyle HorizontalAlign="Center" />
            </telerik:RadGrid>

and i m getting data from XMl and i have a Function that returns the dataset and i am trying to do paging like this

//Paging
 private DataSet CreateDataSetFilterPaging(String Filter)
 {
 
     //Subject Filter
     string SubjectstrExpr = "SUBSTRING(DESCR,1,1) ='" + Filter + "'";
     //Staff Filter
     string StaffsstrExpr = "SUBSTRING(DESCR,1,1) ='" + Filter + "'";
 
     //Venue Filter
     string VenuestrExpr = "SUBSTRING(DESCR,1,1) ='" + Filter + "'";
     //Timetable Filter
     string TimetablestrExpr = "SUBSTRING(Code,1,1) ='" + Filter + "'";
 
     DataColumn[] keys = new DataColumn[1];
     DataSet dsFinalTimeTable = new DataSet();
     DataTable tbldt;
 
     tbldt = new DataTable("Subjects");
     //Add Staff Table
     XmlDataDocument xmlDatadocStaff = new XmlDataDocument();
     xmlDatadocStaff.DataSet.ReadXml(@"C:\Pilot Project\App_Data\Subjects.xml");
     tbldt = xmlDatadocStaff.DataSet.Tables["Subjects"];
     keys = new DataColumn[1];
     keys[0] = tbldt.Columns["ID"];
     tbldt.PrimaryKey = keys;
     DataView dvSubjects = tbldt.DefaultView;
     dvSubjects.RowFilter = StaffsstrExpr;
     DataTable tbldtFinal = dvSubjects.Table;
     dsFinalTimeTable.Tables.Add(tbldtFinal.Copy());
 
      
     //Add Venue Table
     tbldt = new DataTable("Venues");
     XmlDataDocument xmlDatadocVenue = new XmlDataDocument();
     xmlDatadocVenue.DataSet.ReadXml(@"C:\Pilot Project\App_Data\XML_Venue.xml");
     tbldt = xmlDatadocVenue.DataSet.Tables["VENUES"];
     keys = new DataColumn[1];
     keys[0] = tbldt.Columns["ID"];
     tbldt.PrimaryKey = keys;
     //DataView dvVenues = tbldt.DefaultView;
     //dvVenues.RowFilter = VenuestrExpr;
     //tbldt.Clear();
     //tbldt = dvVenues.Table;
     dsFinalTimeTable.Tables.Add(tbldt.Copy());
 
     //TimeTable
     tbldt = new DataTable("TimeTable");
     XmlDataDocument xmlDatadocTimeTable = new XmlDataDocument();
     xmlDatadocTimeTable.DataSet.ReadXml(@"C:\Pilot Project\App_Data\TimeTableFull.xml");
     tbldt = xmlDatadocTimeTable.DataSet.Tables[0];
     keys = new DataColumn[1];
     keys[0] = tbldt.Columns["ID"];
     tbldt.PrimaryKey = keys;
     DataView dvTimeTable = tbldt.DefaultView;
     dvTimeTable.RowFilter = TimetablestrExpr;
     DataTable tbldtfinaltime = dvTimeTable.Table;
     dsFinalTimeTable.Tables.Add(tbldtfinaltime.Copy());
 
     //Setup RelationsTimeTable//
     DataRelation VenuesRelations = new DataRelation("VenuesRel", dsFinalTimeTable.Tables["Appointment"].Columns["ID"], dsFinalTimeTable.Tables["Venues"].Columns["ID"]);
     DataRelation ModuleRelations = new DataRelation("SubjectRel", dsFinalTimeTable.Tables["Subjects"].Columns["ID"], dsFinalTimeTable.Tables["Appointment"].Columns["subjectid"]);
     dsFinalTimeTable.Relations.Add(VenuesRelations);
     dsFinalTimeTable.Relations.Add(ModuleRelations);
     return dsFinalTimeTable;
 }

and my ItemCreated Events looks like this

protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
  {
 
 
      if (e.Item is GridPagerItem)
      {
          GridPagerItem pagerItem = (e.Item as GridPagerItem);
          pagerItem.PagerContentCell.Controls.Clear();
 
          for (int i = 65; i <= 65 + 25; i++)
          {
              LinkButton linkButton1 = new LinkButton();
              LiteralControl lc = new LiteralControl("  ");
 
              linkButton1.Text = "" + (char)i;
 
              linkButton1.CommandName = "alpha";
              linkButton1.CommandArgument = "" + (char)i;
 
              pagerItem.PagerContentCell.Controls.Add(linkButton1);
              pagerItem.PagerContentCell.Controls.Add(lc);
          }
 
          LiteralControl lcLast = new LiteralControl(" ");
          pagerItem.PagerContentCell.Controls.Add(lcLast);
 
          LinkButton linkButtonAll = new LinkButton();
          linkButtonAll.Text = "All";
          linkButtonAll.CommandName = "NoFilter";
          pagerItem.PagerContentCell.Controls.Add(linkButtonAll);
      }
 
  }

and my ItemCommand event looks like this

protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)
  {
      String value = null;
      switch (e.CommandName)
      {
          case ("alpha"):
              {
                  value = string.Format("{0}", e.CommandArgument);
                  break;
              }
          case ("NoFilter"):
              {
                  value = "%";
                  break;
              }
      }
 
      RadGrid1.DataSource = CreateDataSetFilterPaging(value);
      RadGrid1.Rebind();
 
  }

and when a User clicks on alphabet it must filter the data according to the Filter. Now my Problem here is that even i select any Alphabet i still receive "A" Records , which will be a Default.  I am looking at the demo
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/alphabeticpaging/defaultcs.aspx


Thanks



Pavlina
Telerik team
 answered on 05 Aug 2010
1 answer
74 views
Hi,
I would like to show the number in my YAxis with the point separator '.' and don't show the decimal.
How can I do that?
Tnx
Vladimir Milev
Telerik team
 answered on 05 Aug 2010
3 answers
165 views
I want to export the contents of a gridview to an excel document However the problems is
my telerik grid contains the time formate.
e.g:

Service                        AvgST            AvgWT
=================================================
Customer Services        00:04:35      00:43:30
Account Holder             00:02:37      00:11:36
Corporate Service        00:02:05      00:13:03
Sales Services              00:18:25     01:57:18
VIP                                00:02:54     05:02:59
Credit Card Services    00:00:00     00:00:00
Personal Loans            00:00:00     00:00:00
Services Details            00:16:58    04:34:56     
=================================================
TOTAL:                         00:47:34    12:43:22


When i tried to exporting it into excel, it will give me the wrong result(Time formate is wrong)

RESULT

Service                             AvgST            AvgWT
=================================================
Customer Services          12:04:35AM    12:43:30AM
Account Holder                12:02:37AM    12:11:36AM
Corporate Service           12:02:05AM    12:13:03AM
Sales Services                 12:18:25AM    01:57:18AM
VIP                                   12:02:54AM    05:02:59AM
Credit Card Services        12:00:00AM    12:00:00AM
Personal Loans                12:00:00AM    12:00:00AM
Services Details                12:16:58AM    04:34:56AM

and also grid footer not showing me

My Code is :

    protected void imgExcel_Click(object sender, ImageClickEventArgs e)
    {
         grdReport.ExportSettings.ExportOnlyData = true;
        grdReport.MasterTableView.ExportToExcel();
    }

can anyone help me?

My Telerik dll version is :2010.1.406.35

Dharmesh
Daniel
Telerik team
 answered on 05 Aug 2010
1 answer
144 views
Hi,
I am trying to make an application that on the delete button will first insert that selected row into a new table and after it was inserted, then delete it from the previous table.

I am having difficulties, any suggestions?

Thank you.
Tsvetoslav
Telerik team
 answered on 05 Aug 2010
5 answers
112 views
Hi

Am using Hierarchial grid with hierarchyloadmode as client.Also i set detailtable Gridboundcolumns to edit mode with inline editing.

While saving am not able to get the detail table items using

(radgrid1.items[0].ChildItem.NestedTableViews[0].Items[1]["ServiceTypeKey"].controls[0] as textbox).text

Please provide me with sample


Regards

Sathya

Radoslav
Telerik team
 answered on 05 Aug 2010
4 answers
225 views
Hi Telerik,

How do I remove the right-click context menu in the RadEditor content pane? By this I mean the one that has cut/copy/paste/paste from word/paste plain text/paste as html.

Also, is it possible to remove individual items from this context menu, e.g. remove 'paste from word' but leave 'paste as plain text'?

Debbie
Debbie Roberts
Top achievements
Rank 1
 answered on 05 Aug 2010
1 answer
258 views
Hi Sir/Mam,

I am facing a problem in a RAD telerik editor controls inside an aspx page.  When i type the content inside the editor control and change the font to say (42px)  ,it shows fine and saves. But when i retreive it back , the content is fine , but when i select the content , the Font size dropdownbox displays 7 by default (istead of 42px). Please see the attached image.
Let me know why the editor is behaving in this way.
Rumen
Telerik team
 answered on 05 Aug 2010
1 answer
139 views
Hi,
        I have checkbox in one of the column in GridTemplateColumn-ItemTemplate inside the radgrid.mastertableview. On selecting the checkbox it fires the OnCheckedChanged event. In that event, I need to get value of the all other columns in that particular row. Please get me the solution as soon as possible.

Regards,
Asif
    
Princy
Top achievements
Rank 2
 answered on 05 Aug 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?