Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
100 views
I keep getting the error...

Telerik.Web.UI.AppointmentData' does not contain a constructor that takes 4 arguments

since i have moved my site to .net 4, i'm still using...

RadControls_for_ASP.NET_AJAX_2010_1_519 - will this cause problems?
Peter
Telerik team
 answered on 04 Oct 2011
1 answer
126 views
Hi,
I am usig Telerik Scheduler in my project. I am able to get the advanced form values from the code behind by using'AppointmentUpdate' event. But my requirement is to find the values through client-side code. I have gone through the given link - 'http://www.telerik.com/community/forums/aspnet-ajax/scheduler/need-client-side-fxn-called-by-save-close-and-cancel-button-on-appointment-edit-form.aspx'. But I need something like this,

<

telerik:RadScheduler ID="RadScheduler1" runat="server" onClientAppointmentUpdate="SaveFormValues">

<   script type="text/javascript">


function
SaveFormValues() {

var saveButton= $find('<%=RadScheduler1.SaveButton.ClientID %>');  

}

</script>

Please help me to find a solution... :(

Thanks & Regards,
ViPiN.P.C

 

Peter
Telerik team
 answered on 04 Oct 2011
1 answer
62 views
Hi,

I have a customized calendar within a special page layout (calendar is always visible). I have also two navigation buttons for the previous/next  day/week/month/.

Do you have an example showing the Scheduler Navigation (GoToDate/Today/Prev/Next) on the Client-Side?

Cheers,
Jani
Peter
Telerik team
 answered on 04 Oct 2011
2 answers
522 views
Hi All,

  I have a cell text with a comma  delimited line so I have
Report_date, report_due, Report_Severity, report_order, Report_work_center. I can wrap the text of the grid cell by setting the tableLayout="fixed" and setting the style property like below
.itemNameColumn span
{
    display: block;
    width: 500px; 
  
    word-wrap: break-word; 
  
}

 

My problem is the line that is displayed is chopped off in between  so I get Report_date, report_due, report_sev on one line of the cell and then I get erity, report_order on another line. Is it possible that chopping off occurs at comma rather than in the middle of the text. Below is my radgrid. I am trying to display this huge comma delimited line "Select List" grid template column.

<telerik:RadGrid ID="RadGrid_LoadQuery" Width="100%" AllowSorting="false" AllowPaging="false"
      AllowMultiRowSelection="True" runat="server" GridLines="Both" ExportSettings-ExportOnlyData="true">
      <MasterTableView RetrieveAllDataFields="true" AutoGenerateColumns="false" TableLayout="Fixed">
          <Columns>
              <telerik:GridTemplateColumn HeaderText="Export Name">
                  <ItemTemplate>
                      <asp:Label ID="lblExportName" runat="server" Text='<%#Bind("ExportName") %>'></asp:Label>
                  </ItemTemplate>
              </telerik:GridTemplateColumn>
              <telerik:GridTemplateColumn HeaderText="Select List" ItemStyle-CssClass="itemNameColumn"
                  ItemStyle-Width="1000px">
                  <ItemTemplate>
                      <asp:Label ID="lblSelect" runat="server" Text='<%#Bind("SelectColumnList") %>'></asp:Label>
                  </ItemTemplate>
              </telerik:GridTemplateColumn>
              </telerik:GridTemplateColumn>
          </Columns>
      </MasterTableView>
  </telerik:RadGrid>

Any help will be greatly appreciated.

Anjali
Top achievements
Rank 1
 answered on 04 Oct 2011
0 answers
88 views

 

protected void RadGrid1_InsertCommand(object sender, GridCommandEventArgs e)

{

 

GridEditFormInsertItem inserteditem = (GridEditFormInsertItem) e.Item;

 

string Name = (inserteditem["Name"].Controls[0] as TextBox).Text;

 

string Last = (inserteditem["Last"].Controls[0] as TextBox).Text;

 

string Address = (inserteditem["Address"].Controls[0] as TextBox).Text;

 

int Age = Convert.ToInt32((inserteditem["Age"].Controls[0] as TextBox).Text);

 

//string Age = (inserteditem["Age"].Controls[0] as TextBox).Text;

 

con.Open();

 

string insertquery = "insert into test values('" + Name + "', '" + Last + "', '" + Address + "', " + Age + ")";

 

SqlCommand sql = new SqlCommand();

sql.CommandText = insertquery;

sql.Connection = con;

sql.ExecuteNonQuery();

 

//Close the SqlConnection

con.Close();

Vivek Tyagi
Top achievements
Rank 1
 asked on 04 Oct 2011
4 answers
148 views
I was able to get the RadFileExplorer to work well on a page, but now we need to get it into a popup window.  This fails wne loading the page on which the popup window is defined.  If I remove the RadFileExplorer control from the popup window, the rest of the controls load.
Dobromir
Telerik team
 answered on 04 Oct 2011
0 answers
120 views
EDIT: Problem was solved by installing the latest DLLs


Attached are two images from the same (test) page in my application

In IE8 (actually IE9 with IE8 rendering selected from the developer toolbar), the page renders well.

In IE9 the list items in the list boxes do not appear

The HTML page validates fine using the w3 service.

The Telerik version that I'm using is 2010.3.1317.35

Am I doing something wrong or is there a problem with the control?

Thanks a lot in advance for your time


EDIT -> "Problem" was solved by updating to the latest
John
Top achievements
Rank 2
 asked on 04 Oct 2011
2 answers
156 views

Is there a way to bind a list to a combo box, where the list contains two values on each item.  One to be the text, and one for the value?

This works very well as long as it only returns one value.  But it would be great if it could work like declaring an item individually and set PageID to the value and PageTitle to the text of each combobox item.  I've tried the DataBinding event, but the EventArgs seem to come back null.

RadComboBox1.DataSource = (from t in parentList
                      select new { t.PageID, t.PageTitle }).Distinct();
RadComboBox1.DataBind();

There is a way to bypass that by using the ItemDataBound event and just parsing out the string that's set in the DataItem like,

{ PageID = 1, PageTitle = Page1 Title }

Marbry
Top achievements
Rank 1
 answered on 04 Oct 2011
1 answer
85 views
So I have a RadPanelBar inside of an ASP DataList, because of this I'm having problems with javascript not working properly.  Here is a code snipped, this is also inside of a content area of a master page.  The javascript methods for the RadPanelItem (getExpanded, expand, and collapse) are not functioning.  The RadPanelItem never collapses.  If the PanelBar is moved outside of the datalist then everything works.  If the RadPanelBar is inside of the dataList then the following javascript items no longer work correctly.
    $find - using clientID
    RadPanelItem methods - getExpanded, expand, and collapse

<asp:DataList ID="dlDrugDetails" Runat="server" Width="100%" DataKeyField="OrderApplicantID" Visible="True" CellPadding="0" CellSpacing="0" 
onitemcreated="dlDrugDetails_ItemCreated" OnItemDataBound="dlDrugDetails_ItemDataBound">
         <ItemTemplate>
  
    <telerik:RadPanelBar ID="pbDrugs2" runat="server" Width="800px" OnClientLoad="pbDrugs2_OnLoad">
        <Items>
            <telerik:RadPanelItem Value="piDrugDetail" Expanded="false">
                <ContentTemplate>
                    <Drugs:Message runat="server" id="UCDrugDetail"></Drugs:Message>
                </ContentTemplate>
            </telerik:RadPanelItem>
        </Items>
    </telerik:RadPanelBar>
  
                    </ItemTemplate>
</
asp:DataList>


Javascript code:

var pbDrugs;
var pbDrugs2;
var isExpanded = true;
  
function pageLoad() {
  
 //pbDrugs2 = document.getElementById("ctl00_bodyPlaceHolder1_dlDrugDetails_ctl00_pbDrugs2");
    pbDrugs = $find("<%= pbNotes.ClientID %>");  //attempting to find a panelbar within the datalist this way results in a compile error
  
}
  
//this way seems to find the panel bar correctly
function pbDrugs2_OnLoad(sender) {
    pbDrugs2 = sender;
}
  
function toggleDrugSections() {
  
 var item = pbDrugs2.findItemByValue("piDrugDetail");
              
            if (item) {
                //if (!item.get_expanded()) {  --this method is always returning true
                if (!isExpanded) {   //replaced with javascript variable which does change
                    item.expand();   
                    isExpanded = true;
                }
                else {
                    item.collapse();   //this never collapses the panel at all
                    isExpanded = false;
                }
            }
            else {
                alert("Item not found.");
            }
        }
  
//called from a different panelbar (inside the datalist as well).  Always getting called correctly. 
        function pbApplicantDetail_ItemClicked(sender, eventArgs) {
            toggleDrugSections();
        }
Kate
Telerik team
 answered on 04 Oct 2011
9 answers
391 views
Hello
I have a radgrid binded to a sqldatasource.
I'm trying to put an aggregate function (sum) on one of my column but on my form load, on the Radgrid1.Databind() it gives me this error:

An exception was raised by the target d' a call. (sorry for the traduction I used a web traductor)
in french(Une exception a été levée par la cible d'un appel.)

When I continue to execute my webform anyway, it gives me this error on the webform in explorer
"Détails de l'exception: System.NotSupportedException: Sum is not supported for type "System.Object""
here is my column

<telerik:GridNumericColumn

SortExpression="PRIX"

DataType="System.decimal"

HeaderText="PRIX"

DataField="PRIX"

UniqueName="PRIX"

DataFormatString="{0:C}"

Visible="true" Aggregate="Sum">

<ItemStyle HorizontalAlign="Right" Width="40px" />

</telerik:GridNumericColumn>

Martin
Telerik team
 answered on 04 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?