Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
72 views
Hi:

I am trying to collapse an already expanded item.  It doesn't seem to work?
<script type="text/javascript">
    function OnClicking(sender, eventArgs) {
        var item = eventArgs.get_item();
        if (item.get_expanded()) {
            item.set_expanded(false);
            item.set_selected(false);
        }
    }
</script>

Phil
Phil
Top achievements
Rank 2
 answered on 08 Aug 2012
1 answer
97 views
The thread for this is from 2009 .. some of the links are bad in it.. is there an update on how to  create Individual instances of a recurring appointment
Plamen
Telerik team
 answered on 08 Aug 2012
1 answer
106 views
Hi Everybody !!!!

Somebody can give me a hand with this please !

I have a radscheduler binded from database, and it works fine. I need clic on each appointement and display a custom template with a radtextbox, radeditor and a save button that allow me call and store procedure.
I know how radscheduler's custom templates works, but i don't know where i can include some hiddenfields, and then find it in code behind ? and i dont know also if the save button can have a commandname like a radgrid.

I can't achieve this scenario, i've tried to include in a edit or insert advance template binded hiddenfields from database and then finding it in a form create event, but it isn't working for me. I hope somebody can help me.
I don't need inline templates.

Thanks in advance.

Steve.


Plamen
Telerik team
 answered on 08 Aug 2012
1 answer
121 views
We are running SharePoint 2010 and the version of the editor is 6.1.6.0. The web part is in Page Content. The issue crops up when I try to edit the page. When I go into edit the page in the browser (doesn't matter which, happens in Chrome, Firefox, IE) the page loads the content, however, the telerik editor web part does not load the text that is already in the field.  Also the ribbon is totally grayed out when I enter the edit mode. On a side note, when I enter the Edit Properties from the ribbon I get a duplication of the Page Content section. But, the second one is the one that I can edit. The first does nothing.

I would like to know if this is a Sharepoint issue or if this is something to do with the webpart. If it is sharepoint then perhaps you can point me in the right direction. Same thing for the webpart, if there is something that I can do, please let me know. Thanks in advance, and if this is all ready addressed in another thread let me know.
Rumen
Telerik team
 answered on 08 Aug 2012
1 answer
121 views
I'm using editForm template and I have a Cancel button on my edit form. This cancel button has CancelCommand name. All is well if I click the Cancel button in normal condition and it closes the edit form as expected. However, if I have validation errors on the editForm, clicking the Cancel button does not close the editForm and I suspect that it causes validation to be fired.

Can anyone tell me how to close the editForm regardless whether I have validation errors on the form or not?

Thanks.
Princy
Top achievements
Rank 2
 answered on 08 Aug 2012
7 answers
92 views

Hello Telerik Team,

i found  a strange behavior in my RadGrid.
While GridEditMode.InPlace and GridCellSelectionMode.SingleCell both are active, i can not click in editable cells. I reproduced this bahavior in Firefox and IE 8 and higher.

To my Testpage: It is a single RadGrid with following parameters:  

RadGrid1.ClientSettings.Selecting.CellSelectionMode = GridCellSelectionMode.SingleCell
RadGrid1.MasterTableView.EditMode = GridEditMode.InPlace

The datasource is a simple table bound in NeedDataSource event.

Protected Sub getData(sender As Object, e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource
        RadGrid1.DataSource = GetTable()
    End Sub
    Function GetTable() As DataTable
        ' Create new DataTable instance.
        Dim table As New DataTable
        ' Create four typed columns in the DataTable.
        table.Columns.Add("FELD1", GetType(String))
        table.Columns.Add("FELD2", GetType(String))
        table.Columns.Add("FELD3", GetType(String))
        table.Columns.Add("FELD4", GetType(String))
        ' Add five rows with those columns filled in the DataTable.
        table.Rows.Add("11", "12", "13", "14")
        table.Rows.Add("21", "22", "23", "24")
        table.Rows.Add("31", "32", "33", "34")
        table.Rows.Add("41", "42", "43", "44")
        table.Rows.Add("51", "52", "53", "54")
        Return table
    End Function

The last step is the PreRender event.
Private Sub RadGrid1_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadGrid1.PreRender
Dim i As Integer
For i = 0 To RadGrid1.PageSize - 1
RadGrid1.EditIndexes.Add(i)
Next i
RadGrid1.Rebind()
End Sub

It looks good, but the open cells are inaccessable on mouse click... the only thing i can do to access them is to tab in.

Without "RadGrid1.ClientSettings.Selecting.CellSelectionMode = GridCellSelectionMode.SingleCell" everything is working fine. But this setting is needed in the real page to execute js on Clientside in OnCellSelected event.
The InPlace-Editmode is required too.

i hope i provided enough informations so you can help me to find my error.

Kind regards,
Ilja Resch
Ilja
Top achievements
Rank 1
 answered on 08 Aug 2012
3 answers
90 views
HI,

I am using RADgrid.

I have a multi line text box. I need to move the column header on top of the control as shown in the attached images.
By default it comes to the left of the control. I need to change only one column header position. All othe columns are fine. I have implemented it as template column so I can add a header template.

Please suggest.

Prachi
Jayesh Goyani
Top achievements
Rank 2
 answered on 08 Aug 2012
7 answers
182 views
I added one extra entry in PageSizeComboBox of Grid paging control on (v2010.1.628.40)

 

 

GridItemCreated(

 

object source, GridItemEventArgs e)

 


{

if

 

 

(e.Item is GridPagerItem)

 

{

 

 

GridPagerItem pagerItem = (GridPagerItem)e.Item;

 

 

 

RadComboBox PageSizeComboBox = (RadComboBox)pagerItem.FindControl("PageSizeComboBox");

 

 

 

// Create a new item for showing All

 

 

 

RadComboBoxItem item = new RadComboBoxItem("All", int.MaxValue.ToString());

 

item.Attributes.Add(

 

"ownerTableViewId", e.Item.OwnerTableView.ClientID);

 

PageSizeComboBox.Items.Add(item);

}


}

and with (becasue I want to always show Page style with PageSizeComboBox even there is only one page, so that user can use PageSizeComboBox)

<

 

 

PagerStyle AlwaysVisible="true" />

 


It is working fine and I can see my "All" option on the page.
But when I select this option, page postbacks, it display me all the rows correctly, but appending one more entry in PageSizeComboBox and the Text of that entry is "2147483647".

This looks like a bug, How can I stop RadGrid to append this extra entry?

Thanks!
Nirnay
Martin
Telerik team
 answered on 08 Aug 2012
0 answers
109 views
Hi guys,

I am trying to get the validation working. The validation is working fine but it does not prevent to stay in the current mode. Is there any way to lock the grid if the validation failed? (lock it to current mode (edit mode). Currently it is display the error message but it does not lock the grid. 

protected void ParticipationGrid_UpdateCommand(object sender, GridCommandEventArgs e)
    {
        RadDatePicker dpEndDate = new RadDatePicker();
        RadDatePicker dpStartDate = new RadDatePicker();
        RadComboBox cbReason = new RadComboBox();


        dpStartDate = (RadDatePicker)e.Item.FindControl("dtParticipationStartDate");
        dpEndDate = (RadDatePicker)e.Item.FindControl("dtParticipationEndDate");
        cbReason = (RadComboBox)e.Item.FindControl("ddlReasonLeaving");


      
        bool canUpdate = true;
       
        


        if (dpStartDate.SelectedDate < dtInstanceStartDate.SelectedDate)
        {
            message = "- Participation start date must be less than current instance start date";
            lblErrorParticipationDate.Text = message;
            lblErrorParticipationDate.Visible = true;
            canUpdate = false;
        }

        
        else
        {
            lblErrorParticipationDate.Visible = false;
            GridEditableItem editItem = (GridEditableItem)e.Item;
            string id = editItem.OwnerTableView.DataKeyValues[editItem.ItemIndex]["ParticipationID"].ToString();
            participationEntity = new ParticipationEntity(int.Parse(id));
            //participationEntity.ParticipationId = int.Parse(id);
            if (dpEndDate.SelectedDate != null && dpEndDate.SelectedDate > DateTime.MinValue)
            {
                participationEntity.ParticipationEnd = dpEndDate.SelectedDate;
                participationEntity.ReasonForLeavingId = int.Parse(cbReason.SelectedValue);
            }
            else if (dpEndDate.SelectedDate == null && cbReason.SelectedValue == "0")
            {
                participationEntity.ParticipationEnd = null;
                participationEntity.ReasonForLeavingId = null;
            }


            TextBox tbNotes = new TextBox();
            tbNotes = (TextBox)e.Item.FindControl("txtNotes");
            participationEntity.ParticipationNotes = tbNotes.Text;
            if (canUpdate)
            {
                SaveParticipation(sender, e);
            }


        }


    }
Mark de Torres
Top achievements
Rank 1
 asked on 08 Aug 2012
1 answer
151 views
Hi,

I have a ajaxified grid with a DetailTable, which is programmatically generated in Page_Load event. Is there a way I can Freeze the first column in the DetailTable when scrolling. And also, is there a way I can programmatically adjust the columns width to match in all the DetailTables without specifying the column width? i.e. to have all the columns to be aligned when two DetailTables are exapned in the grid like Excel vertical lines.

Any help is greatly appreciated!!

Thank you,
Ana
Pavlina
Telerik team
 answered on 08 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?