Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
81 views
how i can call window from menu item ?
Veselin Vasilev
Telerik team
 answered on 04 Sep 2008
3 answers
93 views
Hello everybody,

in our company we use Rad Editor for MOSS 2007 version 5.2.
After inserting an image into the text, I want to change it's properties by right clicking and choosing "set image properties". A dialog pops up and I can change several properties, but the dialog has no "Ok" button (and no "Cancel" button), so I cannot save the changes I made to the picture.
Why don't I see those buttons?
Rumen
Telerik team
 answered on 04 Sep 2008
4 answers
274 views
Hi.

I have a form template inside my radgrid.

On ItemDatabound, I would like to access a button in this form template in order to register it fot an asyncpostback with the scriptmanager. But I cannot find it.

Here is the code I use:

Protected Sub grMessages_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles grMessages.ItemDataBound
        If TypeOf (e.Item) Is GridDataItem Then
            Dim messageID As Integer = e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("MessageID")
            Dim senderID As Integer = DataBinder.Eval(e.Item.DataItem, "FromID")
            Dim read As String = DataBinder.Eval(e.Item.DataItem, "Read")

            Dim lblSender As Label = e.Item.FindControl("lblSender")

            Dim query = (From tbl In db.tbl_UserProfiles Where tbl.UserID = senderID _
                         Select tbl.UserName).FirstOrDefault

            lblSender.Text = query

            If read = "False" Then
                e.Item.Style.Add("font-weight", "bold")
            End If

        ElseIf TypeOf (e.Item) Is GridEditFormItem Then
            Dim btnInsert As ImageButton = e.Item.FindControl("btnInsert")

            If Not btnInsert Is Nothing Then
                Dim script As ScriptManager =     Master.FindControl("ScriptManager1")
                script.RegisterAsyncPostBackControl(btnInsert)
            End If
        End If
    End Sub


But the button always commes back as nothing.

Any help would be highly appreciated...
Princy
Top achievements
Rank 2
 answered on 04 Sep 2008
9 answers
990 views
hi,

I have added to Template columns to RadGrid and placed Raddatepicker  control.

I have assigned some values to both the RadDatePickers when the Grid is Bound.

My problem is when i select the value it is showing the old value its not showing the new value what i selected. Can anybody give me the solution for this problem,.

i am giving sample code here'
 RadDatePicker radDtPckAss = (RadDatePicker)RadTaskDetails.Items[row].Cells[9].FindControl("RadDatePck_AssgnDt");
                           radDtPckAss.SelectedDate = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day);
                           RadDatePicker radDtPck = (RadDatePicker)RadTaskDetails.Items[row].Cells[10].FindControl("RadDatePck_DelDt");
                           radDtPck.SelectedDate = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day);
i have assigned some values in gridbind for both the Datepickers..

 protected void RadTaskDetails_ItemCommand(object source, GridCommandEventArgs e)
    {
AddTaskAssign(Convert.ToInt32(fint_AssgnID), Convert.ToInt32(fstr_TaskID), Convert.ToInt32(fstr_ProjID), Convert.ToInt32(fstr_Team), Convert.ToInt32(fstr_Team), Convert.ToInt32(fstr_AssgnBy),(DateTime)radDtPckAss.SelectedDate ,(DateTime)radDtPck.SelectedDate, fstr_Comments);
}
//
radDtPckAss.SelectedDate ,(DateTime)radDtPck.SelectedDate both tthis datepickers are not showing the selected value..instead they are showing the old value what i have assigned..
please give me some sol,,

Please send u r reply to lcutish@gmail.com
Missing User
 answered on 04 Sep 2008
2 answers
111 views
I want to have a button to close the RadWindow within the window.  I know that i can use the window.close() method, but it causes some troubles if I have some scripts before/after the closing.

Usually, if I click the default close icon on the top right, the window just close (and it is exactly what I want).  May I ask what is the script/code, by default, is run when clicking that button?

Thanks
Raymond Mui
Top achievements
Rank 1
 answered on 04 Sep 2008
1 answer
124 views
another question to anyone that can help...

i'm using a line chart with a secondary Y-axis  - how can i force this to have a minimum value of 0 without setting autoscale to false

the chart is dynamic and driven through data entry via the front end

i.e. in my primary Y-axis the values can dip below 0, but the secondary one should not. what currently happens now i that a Y2-axis with only 0 values - the default state on page load -  (a flat line) seems to take it scaling cue from the primary Y axis so it in turn displays (unwanted) negative values

anything i can do about this - am sure a screenshot would explain better if i could find a way to attach one (?!)

cheers
Giuseppe
Telerik team
 answered on 04 Sep 2008
22 answers
625 views
Hi

I know there is plenty of posts with the UpdateCommand not firing, but I am at a loss why these event(s) do not get called after clicking on the update link in the grid. My grid is dynamically built, and once running, it has all the features that I requre, however, when clicking on the edit link the approriate event gets called, so far so good, but when I click on the update link none of these events fire.

I handle NeedDataSource and I have tried various combinations of viewstate but to no avail.

Can you advise, thanks

P

Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init

BuildListMembersGrid()

End Sub

Private Sub BuildListMembersGrid()

Dim IsEventList As Boolean = False

Dim UDFS As List(Of CMXModel.UDF)

Dim BaseListName As String

If Me.Request.Cookies("BaseListInfo") IsNot Nothing Then

BaseListName =

Me.Request.Cookies("BaseListInfo").Value.Split("~")(1)

IsEventList =

Me.Request.Cookies("BaseListInfo").Value.Split("~")(0) = "Event"

Using cx As New CMXEntities

UDFS = cx.GetUDFS(BaseListName)

End Using

Me.ViewState("CurrentBaseListName") = BaseListName

Else

Exit Sub

End If

Dim GridBoundColumn As GridBoundColumn

Dim GridCheckBoxColumn As GridCheckBoxColumn

Dim grdBaseListMembers As New RadGrid

grdBaseListMembers.ID =

"grdBaseListMembers"

PlaceHolder1.Controls.Clear()

PlaceHolder1.Controls.Add(grdBaseListMembers)

grdBaseListMembers.Skin =

"Office2007"

grdBaseListMembers.Width = Unit.Percentage(100)

grdBaseListMembers.Height = Unit.Percentage(100)

grdBaseListMembers.EnableViewState =

True

grdBaseListMembers.AllowPaging =

True

grdBaseListMembers.PagerStyle.Mode = GridPagerMode.NextPrevAndNumeric

grdBaseListMembers.AutoGenerateColumns =

False

grdBaseListMembers.AllowMultiRowSelection =

True

grdBaseListMembers.AllowAutomaticUpdates =

False

grdBaseListMembers.AllowAutomaticInserts =

False

grdBaseListMembers.AllowAutomaticDeletes =

False

 

grdBaseListMembers.MasterTableView.PageSize = 10

grdBaseListMembers.MasterTableView.Width = Unit.Percentage(100)

grdBaseListMembers.MasterTableView.DataKeyNames =

New String() {"BaseListID", "BaseContactID", "BaseListMemberID"}

grdBaseListMembers.MasterTableView.EditMode = GridEditMode.InPlace

grdBaseListMembers.MasterTableView.EnableViewState =

True

grdBaseListMembers.MasterTableView.AllowAutomaticUpdates =

False

grdBaseListMembers.MasterTableView.AllowAutomaticInserts =

False

grdBaseListMembers.MasterTableView.AllowAutomaticDeletes =

False

grdBaseListMembers.MasterTableView.EnableViewState =

True

 

grdBaseListMembers.ClientSettings.Selecting.AllowRowSelect =

True

grdBaseListMembers.ClientSettings.EnablePostBackOnRowClick =

True

 

 

Dim SelectCommandColumn As New GridClientSelectColumn

grdBaseListMembers.MasterTableView.Columns.Add(SelectCommandColumn)

SelectCommandColumn.ButtonType = ButtonColumnType.LinkButton

SelectCommandColumn.Text =

"Select"

Dim EditCommandColumn As New GridEditCommandColumn

grdBaseListMembers.MasterTableView.Columns.Add(EditCommandColumn)

EditCommandColumn.ButtonType = ButtonColumnType.LinkButton

EditCommandColumn.UniqueName =

"Edit"

GridBoundColumn =

New GridBoundColumn

grdBaseListMembers.MasterTableView.Columns.Add(GridBoundColumn)

GridBoundColumn.DataField =

"ContactName"

GridBoundColumn.UniqueName =

"ContactName"

GridBoundColumn.HeaderText =

"Contact Name"

GridBoundColumn.HeaderStyle.HorizontalAlign = HorizontalAlign.Center

GridBoundColumn.ReadOnly =

True

GridBoundColumn.DataType = Type.GetType(

"System.String")

GridBoundColumn =

New GridBoundColumn

grdBaseListMembers.MasterTableView.Columns.Add(GridBoundColumn)

GridBoundColumn.DataField =

"OrganisationName"

GridBoundColumn.UniqueName =

"OrganisationName"

GridBoundColumn.HeaderText =

"Org Name"

GridBoundColumn.HeaderStyle.HorizontalAlign = HorizontalAlign.Center

GridBoundColumn.ReadOnly =

True

GridBoundColumn.DataType = Type.GetType(

"System.String")

GridBoundColumn =

New GridBoundColumn

grdBaseListMembers.MasterTableView.Columns.Add(GridBoundColumn)

GridBoundColumn.DataField =

"OfficeName"

GridBoundColumn.UniqueName =

"OfficeName"

GridBoundColumn.HeaderText =

"Office Name"

GridBoundColumn.HeaderStyle.HorizontalAlign = HorizontalAlign.Center

GridBoundColumn.ReadOnly =

True

GridBoundColumn.DataType = Type.GetType(

"System.String")

GridBoundColumn =

New GridBoundColumn

grdBaseListMembers.MasterTableView.Columns.Add(GridBoundColumn)

GridBoundColumn.DataField =

"Phone"

GridBoundColumn.UniqueName =

"Phone"

GridBoundColumn.HeaderText =

"Phone"

GridBoundColumn.HeaderStyle.HorizontalAlign = HorizontalAlign.Center

GridBoundColumn.ReadOnly =

True

GridBoundColumn.DataType = Type.GetType(

"System.String")

If IsEventList Then

GridBoundColumn =

New GridBoundColumn

grdBaseListMembers.MasterTableView.Columns.Add(GridBoundColumn)

GridBoundColumn.DataField =

"HostName"

GridBoundColumn.UniqueName =

"HostName"

GridBoundColumn.HeaderText =

"Host"

GridBoundColumn.HeaderStyle.HorizontalAlign = HorizontalAlign.Center

GridBoundColumn.DataType = Type.GetType(

"System.String")

GridCheckBoxColumn =

New GridCheckBoxColumn

grdBaseListMembers.MasterTableView.Columns.Add(GridCheckBoxColumn)

GridCheckBoxColumn.DataField =

"Invited"

GridCheckBoxColumn.UniqueName =

"Invited"

GridCheckBoxColumn.HeaderText =

"Invited"

GridCheckBoxColumn.ItemStyle.HorizontalAlign = HorizontalAlign.Center

GridCheckBoxColumn.HeaderStyle.HorizontalAlign = HorizontalAlign.Center

GridCheckBoxColumn.DataType = Type.GetType(

"System.Boolean")

GridBoundColumn =

New GridBoundColumn

grdBaseListMembers.MasterTableView.Columns.Add(GridBoundColumn)

GridBoundColumn.DataField =

"InviteStatus"

GridBoundColumn.UniqueName =

"InviteStatus"

GridBoundColumn.HeaderText =

"Invite Status"

GridBoundColumn.HeaderStyle.HorizontalAlign = HorizontalAlign.Center

GridBoundColumn.DataType = Type.GetType(

"System.String")

Else

GridBoundColumn =

New GridBoundColumn

grdBaseListMembers.MasterTableView.Columns.Add(GridBoundColumn)

GridBoundColumn.DataField =

"EMail"

GridBoundColumn.UniqueName =

"EMail"

GridBoundColumn.HeaderText =

"EMail"

GridBoundColumn.HeaderStyle.HorizontalAlign = HorizontalAlign.Center

GridBoundColumn.ReadOnly =

True

GridBoundColumn.DataType = Type.GetType(

"System.String")

End If

'' Loop through the udfs (if any) and append them to the grid. Note these columns are required to

'' be editable, therefore attach the custom Edit Template Column

For Each UDF As CMXModel.UDF In UDFS

Dim ListValue As New ArrayList

Dim gtc As New GridTemplateColumn

gtc.ItemTemplate =

New UDFValueItemTemplateColumn(udf, gtc)

gtc.EditItemTemplate =

New UDFValueEditTemplateColumn(UDF, gtc)

gtc.HeaderTemplate =

New UDFValueHeaderTemplateColumn(UDF, gtc)

gtc.Resizable =

False

gtc.UniqueName =

"GridTemplateColumnUDF~" & UDF.Name

gtc.HeaderStyle.HorizontalAlign = HorizontalAlign.Center

grdBaseListMembers.MasterTableView.Columns.Add(gtc)

Next

AddHandler grdBaseListMembers.ItemDataBound, AddressOf BaseListMembers_ItemDataBound

AddHandler grdBaseListMembers.NeedDataSource, AddressOf BaseListMembers_NeedDataSource

AddHandler grdBaseListMembers.ItemCommand, AddressOf BaseListMembers_ItemCommand

' AddHandler grdBaseListMembers.EditCommand, AddressOf BaseListMembers_EditCommand

'AddHandler grdBaseListMembers.ItemEvent, AddressOf BaseListMembers_ItemEvent

'AddHandler grdBaseListMembers.ItemCreated, AddressOf BaseListMembers_ItemCreated

AddHandler grdBaseListMembers.ItemUpdated, AddressOf BaseListMembers_ItemUpdated

AddHandler grdBaseListMembers.UpdateCommand, AddressOf BaseListMembers_UpdateCommand

End Sub

Paul Gallen
Top achievements
Rank 1
 answered on 04 Sep 2008
1 answer
131 views
have an issue or want to know how to completely disable the content filtering in the Rad editor.  I need to be able to put any text in a HTML tag like the following, where i need to put style="{MYSTYLE}" in the image tag.

<image style="{MYSTYLE}" src="..." />      ({MYSTYLE} may be filetered):

above filters to:

<image style="" src="..." originalAttribute="src" />

any help would be great...

Rumen
Telerik team
 answered on 04 Sep 2008
3 answers
98 views

Hi

I'm using in-place editing, and when I have saved the item data to the database I cannot seem to hide the edit item from the grid, I have tried the following routines.

e.Item.OwnerTableView.IsItemInserted =

False

RadGrid1.MasterTableView.ClearEditItems()


But It stays in edit mode or I get the error message below?

Insert item is available only when grid is in insert mode.

How can I hide the in-place edit row??

Ian Coetzer
Top achievements
Rank 2
 answered on 04 Sep 2008
3 answers
182 views
Hi all,

I have a combobox in the cell of a table. For some weird reason the combobox fill the whole area of the cell. I have set the cell's padding to 2px, but i dont really want the cell to be that large.

Is there any way to set the combobox height to some specific value?

My css is

#searchFilter { 
    background:url(../images/insideSearchBck.gif) no-repeat left top
    width:282px
    padding:0px
#searchFilter h2 { 
    color:#FFFFFF
 
#searchFilter td { 
    padding:2px 0 5px 15px
#searchFilter th { 
    padding:5px 0 0 15px
    font-weight:bold
    font-size:75%; 
#searchFilter input.searchBtn { 
    background:url(../images/insideSearchBtn.gif) no-repeat
    width:282px
    height:34px
    border:none
#searchFilter select { 
    width:240px
#searchFilter select.time { 
    width:100px
#searchFilter input { 
    width:240px
#searchFilter a { 
    font-size:75%; 
    font-weight:bold
    color:#0097de






and the asp is:

<div id="searchFilter"
        <table cellpadding="0" cellspacing="0"
        <tr><td style="padding-top:10px;" colspan="2"><h2>Something</h2></td></tr> 
        <tr><th colspan="2">Something</th></tr
        <tr><td colspan="2"
            <telerik:RadComboBox ID="cmbNomoi" Runat="server" > 
                <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
            </telerik:RadComboBox> 
        </td></tr
        ................ - Several cells with combobox follow - .............. 
    </table> 
</div> 
 

Alex Gyoshev
Telerik team
 answered on 04 Sep 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?