Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
123 views
Hi there,
When I click the delete button on an appointment the default popup dialog appears.
I set DisplayDeleteConfirmation="False" yet it still shows, how do I stop it from showing?

<telerik:RadScheduler ID="RadScheduler1" runat="server" AllowDelete="True"   
                                                AllowEdit="False" AllowInsert="False" Culture="English (South Africa)"   
                                                DayEndTime="23:59:59" DayStartTime="00:00:00" Height="100%" Skin="Sunset"   
                                                Width="728px" DataEndField="EndTime" DataKeyField="Row_ID" ShowHeader="True" 
                                                ShowNavigationPane="false" ShowViewTabs="false"   
                                                DataSourceID="dsScheduleData" DataStartField="StartTime"   
                                                SelectedDate="2008-11-01"  MonthView-UserSelectable="false"   
                                                MonthView-ReadOnly="true" NumberOfHoveredRows="0"  SelectedView="WeekView" 
                                                ShowFooter="True" DisplayDeleteConfirmation="False" EnableDatePicker="false" 
                                                DataSubjectField="Name" ShowAllDayRow="False" DataRecurrenceField="RecurrenceRule" 
                                                DataRecurrenceParentKeyField="RecurrenceParentID">  
                                                <WeekView HeaderDateFormat="dd/MM"   /> 
 
                                                      
                                                <AppointmentTemplate> 
                                                    <div style="color: #744b24;border: 1px solid #b7af8b;background: #cbaf76;width: 100%;height: 100%;">  
                                                       <asp:Label ID="lblName" runat="server" Text='<%#Bind("Subject")%>' /> 
                                                    </div> 
                                                </AppointmentTemplate> 
                                                <MonthView ReadOnly="True" UserSelectable="False" /> 
                                           </telerik:RadScheduler> 
Peter
Telerik team
 answered on 05 Mar 2009
4 answers
135 views
if i was to deploy my website with telerik controls. do i need to install telerik on my server or just copy the whole folder over to the intepub/wwwroot folder? if there's a document please let me know. thank you
appdev
Top achievements
Rank 1
 answered on 05 Mar 2009
1 answer
113 views
I would like to see from Telerik a framework for developing for the iPhone like one of your competitors does. The iPhone is gaining big momentum. There are over 15,000 apps for it in a short time.
Serrin
Top achievements
Rank 1
 answered on 05 Mar 2009
3 answers
142 views
I am trying to delete a register from my grid using this but nothing happens !!! My Database is a mdb file (Access)

   Protected Sub RadGrid1_DeleteCommand(ByVal source As Object, ByVal e As Telerik.WebControls.GridCommandEventArgs) Handles RadGrid1.DeleteCommand 
        Dim objConn1 As OleDbConnection 
        Dim strCaminho As String = Server.MapPath("~/adm/bd/observatorio.mdb") 
        objConn1 = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strCaminho & ";") 
        Dim SqlCommand As New OleDbCommand() 
        'Get the GridDataItem of the RadGrid 
        Dim item As GridDataItem = DirectCast(e.Item, GridDataItem) 
        'Get the primary key value using the DataKeyValue. 
        Dim NEWSID As String = item.OwnerTableView.DataKeyValues(item.ItemIndex)("news_id").ToString() 
        Try 
            'Open the SqlConnection 
            objConn1.Open() 
            Try 
                Dim deleteQuery As String = "DELETE from tblNoticias where news_id='" & NEWSID & "'" 
                SqlCommand.CommandText = deleteQuery 
                SqlCommand.Connection = objConn1 
                SqlCommand.ExecuteNonQuery() 
                'Close the SqlConnection 
                objConn1.Close() 
            Catch ex As Exception 
                Response.Write(ex.Message) 
                'Me.lblError.Text = "Ocorreu um erro na tentativa de excluir o registro !" 
                Exit Sub 
            End Try 
        Catch ex As Exception 
            Me.lblError.Text = "Não foi possível abrir o banco de dados" 
            Exit Sub 
        End Try 
    End Sub 
 when i click in delete link nothing happens....

any help ???

Thanks
Jr
Edmond Junior
Top achievements
Rank 1
 answered on 05 Mar 2009
4 answers
159 views

When I have both a numerically typed column and a text column in a grid, and allow filtering on both, the text options don't display properly if I click on the numeric column's options first.

In that scenario, I only show the "NoFilter" option on the text column, which is the only one that's common between the two types which I display.  (I am using client-side javascript to not display some of the options based on unique name).

I don't see this problem on the numeric column if I click the text options first.  Also, if I click the text options a second time after seeing the numeric options, then the right set of options (those which I keep) show up.

Note that I don't actually filter to see this problem.  It's just clicking on the button to see the numeric options, then clicking on the text options.  It does seem to be consistent and reproducible in IE 7 and Firefox, 32-bit Vista.

Also note that the order of my client-side script (copied below) doesn't seem to be important.  I initially had the "numeric" area below the "text", and switched them, thinking I might see the opposite effect.  No, it's always numeric filter options, then text which causes the problem.

Finally, the "Weight" column is decimal(32,8) in our database, but I think this problem manifests with any numeric type.

Here's an example grid from my application:

<telerik:RadGrid  ID="grdStrategicCriterionSearchResults" runat="server" 
    
EnableViewState="True" 
    OnNeedDataSource="grdStrategicCriterionSearchResults_NeedDataSource"
    
onSelectedIndexChanged="grdStrategicCriterionSearchResults_SelectedIndexChanged"
    
Visible="true">

    
<ClientSettings EnablePostBackOnRowClick="true">
        
<ClientEvents OnFilterMenuShowing="FilterMenuShowing" />
    
</ClientSettings>
    
<MasterTableView DataKeyNames="StrategicCriterionID" 
        RetrieveAllDataFields
="False" EditMode="InPlace">
        
        
<NoRecordsTemplate>
            
No strategic criteria were found.
        </NoRecordsTemplate>

        <Columns>
            
<telerik:GridBoundColumn DataField="Name" HeaderText="Name" 
                    UniqueName
="colName" />
            
<telerik:GridBoundColumn DataField="Description" 
                    HeaderText="Description"  UniqueName="colDescription" />
            
<telerik:GridBoundColumn DataField="Weight" HeaderText="Weight" 
                    UniqueName
="colWeight" />
        
</Columns>
    
</MasterTableView>
</telerik:RadGrid>

And the javascript for client-side filter display (this is in my Master page, so all the other unique names are columns in other grids in the application).  I've left in some alerts I was using to debug.

function FilterMenuShowing(sender, eventArgs)

    
var menu = eventArgs.get_menu(); 
    
var items = menu._itemData; 
    
var i = 0;

    
// Customize filter options. 

    
// boolean
    
if (eventArgs.get_column().get_uniqueName() == "colSoftBenefit" ||
        eventArgs.get_column().get_uniqueName() ==
"colEnabled" ||
        eventArgs.get_column().get_uniqueName() ==
"colShared" ||
        eventArgs.get_column().get_uniqueName() ==
"colSuper")
    {
        alert(
"in boolean area");
        
while (i < items.length) 
        {
            
var item = menu._findItemByValue(items[i].value);
            
if (item != null)
            {
                
if (items[i].value != "EqualTo" && 
                    items[i].value !=
"NotEqualTo" &&
                    items[i].value !=
"NoFilter")
               {
                    item._element.style.display =
"none";
                }
else {
                    item._element.style.display =
'';
                }
            }

            i++;
        }
    }

    //numeric/date
    
if (eventArgs.get_column().get_uniqueName() == "colStartYear" ||
        eventArgs.get_column().get_uniqueName() ==
"colWeight" ||
        eventArgs.get_column().get_uniqueName() ==
"colICCDiscountRate" || 
        eventArgs.get_column().get_uniqueName() ==
"colTaxRate" ||
        eventArgs.get_column().get_uniqueName() ==
"colDate" || 
        eventArgs.get_column().get_uniqueName() ==
"colLevel" ||
        eventArgs.get_column().get_uniqueName() ==
"colFiscalYear"
    { 
        alert(
"in numeric area");

        
while (i < items.length) 
        { 
            
var item = menu._findItemByValue(items[i].value);

            if (item != null
            {
                
if (items[i].value != "GreaterThan" && 
                    items[i].value !=
"LessThan" && 
                    items[i].value !=
"NoFilter" &&
                    items[i].value !=
"EqualTo"
               { 
                    item._element.style.display=
"none"
                }
else {
                    item._element.style.display=
'';
                }

                i++; 
            } 
        }
    }

    // text-type filters
    
if (eventArgs.get_column().get_uniqueName() == "colName" ||
        eventArgs.get_column().get_uniqueName() ==
"colText" ||
        eventArgs.get_column().get_uniqueName() ==
"colPortfolioName" ||
        eventArgs.get_column().get_uniqueName() ==
"colTemplateName" ||
        eventArgs.get_column().get_uniqueName() ==
"colStrategicCriteria" ||
        eventArgs.get_column().get_uniqueName() ==
"colDescriptor" ||
        eventArgs.get_column().get_uniqueName() ==
"colDescriptorType" ||
        eventArgs.get_column().get_uniqueName() ==
"colExp" ||
        eventArgs.get_column().get_uniqueName() ==
"colUsername" ||
        eventArgs.get_column().get_uniqueName() ==
"colProjectName" ||
        eventArgs.get_column().get_uniqueName() ==
"colAction" ||
        eventArgs.get_column().get_uniqueName() ==
"colSource" ||
        eventArgs.get_column().get_uniqueName() ==
"colCategory" ||
        eventArgs.get_column().get_uniqueName() ==
"colMessage" ||
        eventArgs.get_column().get_uniqueName() ==
"colDescription" ||
        eventArgs.get_column().get_uniqueName() ==
"colPrefixAndSeed" ||
        eventArgs.get_column().get_uniqueName() ==
"colProjectMode" ||
        eventArgs.get_column().get_uniqueName() ==
"colSuperDescriptor" ||
        eventArgs.get_column().get_uniqueName() ==
"colInterval" ||
        eventArgs.get_column().get_uniqueName() ==
"colUnitType" ||
        eventArgs.get_column().get_uniqueName() ==
"colFirstName" ||
        eventArgs.get_column().get_uniqueName() ==
"colLastName" ||
        eventArgs.get_column().get_uniqueName() ==
"colEmail"
    { 
        
while (i < items.length) 
        { 
            
var item = menu._findItemByValue(items[i].value);

            if (item != null
            {
                
if (items[i].value != "Contains" && 
                    items[i].value !=
"EndsWith" && 
                    items[i].value !=
"StartsWith" &&
                    items[i].value !=
"NoFilter")
               {

                    alert(

" setting filter option " + items[i].value + " off");
                    item._element.style.display=
"none"
               }
else {
                    item._element.style.display=
'';
                    alert(
" setting filter option " + items[i].value + " on");
               }

                i++; 
            } 
        }
    }
}

</script>

illumination
Top achievements
Rank 2
 answered on 05 Mar 2009
1 answer
103 views


Hi

I'm looking for an example to show a radconfirm to the user after clicking on a toolBar_Button, i've found this thread : http://www.telerik.com/support/kb/aspnet-ajax/window/using-radprompt-and-radconfirm-with-telerik-navigational-controls.aspx
but my question is, why we cant just use a client side fonction on the OnClientButtonClicking event and like : 

 

OnClientButtonClicking="ConfirmData;return false;" and on this function juste make an AjaxRequestWithTarget("<%=ToolBar.ClientID%>") ? If i'm using this approach the postback are not canceled (with the "return false"), and if i'm cancelling the event (eventArgs.set_cancel(true)) the server side event is never raise.  So if someone can give me more informations about this approach, it will be really appreciated !

Thanks in advance for your help.

Yana
Telerik team
 answered on 05 Mar 2009
3 answers
115 views
Hi,
I like your demo Monitoring Custom Progress but I don't understand one thing:
How do you specify where the file is saved?
Paul
Telerik team
 answered on 05 Mar 2009
1 answer
236 views
i have a website that i developed on my developing machine. now i'm trying to host that site on a server 2003.so i ifirst install framework2.0, then installed telerik control. but it keeps failing. i tried to follow the document and added the dll to global cache but it still doesn't help. i thought if your server have everything installed like your developer machine, it should run fine. can you please tell me how to set up a server for the site? thanks.
Paul
Telerik team
 answered on 05 Mar 2009
2 answers
103 views
Hi,

I'm trying to write a client side script, that would disable the user from selecting masterTableView elements and DetailTable elements simultaneously.

The multiple or single selected rows should be all from master or from detail table view (XOR)

is this possible?

Thanx in advance,
Lp, Luka
Lukrs
Top achievements
Rank 2
 answered on 05 Mar 2009
1 answer
119 views
Hi guys,

I need to create a control dynamically and used with this features

- Shows date and time like "dd-mm-yyyy hh:mm" [ DONE: using base.DateInput.DateFormat = "dd-MM-yyyy HH:mm"; ]
- Only shows one button icon (not the 2 buttons like RadDateTime) [ DONE: using RadDatePicker ]
- Shows the text as a label if the page (if the control is in a page) / row (if the control in in a Grid) is not in Edit mode [ Need help! ]

How can I do this?

Right now I'm doing:

 
    [DefaultProperty("Value")] 
    [ToolboxData("<{0}:MyOwnDateTimePicker runat=server></{0}:MyOwnDateTimePicker>")] 
    public class MyOwnDateTimePicker : Telerik.Web.UI.RadDatePicker 
    { 
        System.Web.UI.Page page = (System.Web.UI.Page)HttpContext.Current.Handler; 
 
        protected override void Render(HtmlTextWriter writer) 
        { 
            /*
                <telerik:RadDatePicker ID="Raddatepicker2" Style="vertical-align: middle;" Width="200px"
                    MinDate="2006-02-01" runat="server" SelectedDate="2006-04-01" MaxDate="2099-12-16" Skin="Hay">
                    <DateInput onclick="ToggleSecondPopup()" DateFormat="D">
                    </DateInput>
                </telerik:RadDatePicker>
            */ 
 
            base.Skin = "Outlook"
            base.DateInput.DateFormat = "dd-MM-yyyy HH:mm"
 
            base.Render(writer); 
        } 
 
        public override void RenderControl(HtmlTextWriter writer) 
        { 
            // Bruno: Test 
            if (this.readOnly) 
            { 
                // Read-Only Calendar 
                // http://demos.telerik.com/aspnet-ajax/calendar/examples/functionality/readonlycalendar/defaultcs.aspx 
                // PresentationType="Preview", EnableNavigation="False" and EnableMonthYearFastNavigation="false" 
                base.Calendar.PresentationType = Telerik.Web.UI.Calendar.PresentationType.Preview; 
                base.Calendar.EnableNavigation = false
                base.Calendar.EnableMonthYearFastNavigation = false
 
                //Label lbl = new Label(); 
                //lbl.RenderControl(writer); 
            } 
            else 
            { 
               //Do nothing                  
            } 
            base.RenderControl(writer); 
        } 

How can I make the control to be ReadOnly? Showing only a "Label" like control?


Shinu
Top achievements
Rank 2
 answered on 05 Mar 2009
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?