Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
167 views
I need an alert box with a check box symbol/ icon green framing (instead of the default Notice sysmbol/icon yellow framing)
Can any one help me.......................................
Georgi Tunev
Telerik team
 answered on 19 Mar 2010
3 answers
94 views
Hi There

I see from the demo project that the scheduler can have the entries style using the following code:-

 
<ResourceStyles> 
                <telerik:ResourceStyleMapping Type="User" Text="Alex" ApplyCssClass="rsCategoryBlue" /> 
                <telerik:ResourceStyleMapping Type="User" Text="Bob" ApplyCssClass="rsCategoryOrange" /> 
                <telerik:ResourceStyleMapping Type="User" Text="Charlie" ApplyCssClass="rsCategoryGreen" /> 
            </ResourceStyles> 
 

 


I need to do the same thing so I can style the appointment entries in to be differet colours, how can I do this for the scheduler?

I have a blank solution with a blank page and just the scheduler on it - so how does the code above reference a stylesheet If I want to use my own styles and stylesheets to accomplish this?

Thanks
Gregor
T. Tsonev
Telerik team
 answered on 19 Mar 2010
1 answer
141 views
I just wondering how I would be able to implement the ability to enforce the file extension of a file when a user renames a file. Right now, if you rename a file it shows the user the entire filename (i.e. "NewFile.txt"), but if they write "NewFileName" in the rewrite dialog I lose the extension and it then becomes an unknown file. I've checked the documentation for the client-side and server-side and the control does tell you if a rename was performed, but no way of determining the file that was renamed nor the ability to change it if the extension was not included.

Is there some way for me to examine the file before it's renamed, check the extension and then update the file being saved with the extension if it was removed?
Lini
Telerik team
 answered on 19 Mar 2010
4 answers
301 views
Hi...

I need to disable the post back operation that occurs when selecting any default expression from the Filter Menu.
But i need the the filter menu and its selection to persist throughout so that i can use it later to apply custom filter.
Any help in this regard.....

btw, i am implementing multi column filtering for which this is required.

Thanks.
Ajay
Top achievements
Rank 2
 answered on 19 Mar 2010
2 answers
94 views
Hello,

I want the following: if I double click an appointment, I want a custom Recurrence action dialog. For this I have done the following steps:

1. in OnClientAppointmentDoubleClick I store the ID of the appointment which has been double clicked:
var apt = eventArgs.get_appointment(); 
// store this and use it on the popups OK button click 
$get("doubleClickedAppointment").value = apt.get_id(); 
2. In the OnClientRecurrenceActionDialogShowing I suppress the standard action and show my custom popup:
    eventArgs.set_cancel(true); 
    var modalPopupBehavior = $find('InstanceOrSeriesModalPopupExtender'); 
    modalPopupBehavior.show(); 
 
    return false; 
 
3. In the OnClick event handler of my custom popup's OK button, I use the stored doubleClickedAppointment and want to display the AdvancedEditForm.

But I have some issues:
a. If I double click an instance of a series, the ID received in the double click event handler is the ID of the series appointment, formatted like this: "c5628db3-7446-4550-94eb-62841308404f_0" <--- this is the GUID from the DB and a "_0". What is the "_0"?
b. What is the best way to find the instance of the series on which the user double clicked?
c. How should I call ShowAdvancedEditForm()? What should be the second parameter be based on? If the user chooses to edit the series, then I should pass true, right? Otherwise false.  But then again, what should the first parameter be? The exception appointment, or the series appointment?

Maybe my entire approach is not correct. Is there an easier way to accomplish this behavior?

Best regards,
Cantemir

Cantemir Mihu
Top achievements
Rank 1
 answered on 19 Mar 2010
3 answers
249 views
Is there any way to insert rows into a radgrid via javascript, without using the edit form?
Suppose I have a radgrid with some rows of data into it. Now I have a button and I want that on click of that button a new blank row should be inserted in the grid where user can enter their data and later it can be saved with some another button.
Is there any way to add a blank row using javascript.
Please suggest.
Thanks.
Tsvetoslav
Telerik team
 answered on 19 Mar 2010
2 answers
164 views
Is it possible to ajax the radformdecorator?

I use the code below for my aspx page.

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
    </telerik:RadScriptManager> 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
    </telerik:RadAjaxManager> 
    <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" /> 
    skins:<br /> 
    <telerik:RadComboBox ID="RadComboBox1" runat="server" AutoPostBack="true">  
        <Items> 
            <telerik:RadComboBoxItem Selected="true" Text="Vista" Value="Vista" /> 
            <telerik:RadComboBoxItem Text="Black" Value="Black" /> 
            <telerik:RadComboBoxItem Text="Telerik" Value="Telerik" /> 
        </Items> 
    </telerik:RadComboBox> 
    <br /> 
    <asp:Panel ID="Panel1" runat="server">  
        <asp:Button ID="Button1" runat="server" Text="Button" /><br /> 
        <asp:Button ID="Button2" runat="server" Text="Button" /><br /> 
        <asp:CheckBox ID="CheckBox1" runat="server" /><br /> 
        <asp:RadioButton ID="RadioButton1" runat="server" /><br /> 
        <asp:LinkButton ID="LinkButton1" runat="server">LinkButton</asp:LinkButton><br /> 
    </asp:Panel> 

and in the code behind I use the code below.

Protected Sub RadComboBox1_SelectedIndexChanged(ByVal o As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles RadComboBox1.SelectedIndexChanged  
        RadFormDecorator1.Skin = e.Value  
        RadComboBox1.Skin = e.Value  
    End Sub  
 
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load  
        RadAjaxManager1.AjaxSettings.AddAjaxSetting(RadComboBox1, RadFormDecorator1)  
    End Sub 

When the user selects a skin from the combobox none of the controls update with its new skin.

I am able to get it to work without using ajax, but then the whole page refreshes. Is it possible to update the controls with the new skin using ajax?

Mike
Michael
Top achievements
Rank 1
 answered on 19 Mar 2010
2 answers
119 views
when the Grid_PageSizeChanged Event fire,there is error:
It is impossible to change from  “Telerik.Web.UI.RadGrid”  to  “Telerik.Web.UI.GridTableView”.
Please give me a idea!
    protected void Grid_PageSizeChanged(object source, GridPageSizeChangedEventArgs e) 
    { 
        BindGridSpecial(); 
    } 
 
 private void BindGridSpecial() 
    { 
        Template[] listAll = Template.FindAll(); 
        List<TemplateItem> listTemplateItemAll = new List<TemplateItem>(); 
        foreach (Template tm in listAll) 
        { 
            if (tm.IsSpecial == true && tm.TemplateID != 0) 
            { 
                TemplateVersion version = TemplateVersion.FindDeployVersion(tm.TemplateID); 
                TemplateCategory[] category0 = TemplateCategory.FindAll(); 
                List<TemplateCategory> categoryList = new List<TemplateCategory>(); 
                foreach (TemplateCategory tc in category0) 
                { 
                    if (tc.TemplateVersion.ToString() == version.ToString()) 
                    { 
                        TemplateCategory categroy = TemplateCategory.Find(tc.TemplateCategoryID); 
                        TemplateItem[] itemList = TemplateItem.FindAll(version.TemplateVerID, categroy.TemplateCategoryID); 
                        listTemplateItemAll.AddRange(itemList); 
 
                    } 
                } 
 
            } 
        } 
        Grid.DataSource = listTemplateItemAll; 
        Grid.DataBind(); 
 
    } 

<telerik:RadGrid ID="Grid" runat="server" Width="100%" AllowPaging="True" AllowSorting="True" 
            EnableViewState="true" AutoGenerateColumns="False" GridLines="None" OnItemDataBound="Grid_ItemDataBound" 
            OnPageIndexChanged="Grid_PageIndexChanged" OnPageSizeChanged="Grid_PageSizeChanged" 
            OnSortCommand="Grid_SortCommand"
            <MasterTableView DataKeyNames="TemplateItemID"
                <RowIndicatorColumn> 
                    <HeaderStyle Width="20px" /> 
                </RowIndicatorColumn> 
                <ExpandCollapseColumn> 
                    <HeaderStyle Width="20px" /> 
                </ExpandCollapseColumn> 
                <Columns> 
                    <telerik:GridClientSelectColumn UniqueName="column2"
                    </telerik:GridClientSelectColumn> 
                    <telerik:GridBoundColumn DataField="Name" HeaderText="项" SortExpression="Name" UniqueName="Name"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Description" HeaderText="说明" SortExpression="Description" 
                        UniqueName="Description"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Item Type" HeaderText="类型" SortExpression="ItemType" 
                        UniqueName="Item Type"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="StartHour" HeaderText="开始时间" SortExpression="StartHour" 
                        UniqueName="StartHour"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="EndHour" HeaderText="截止时间" SortExpression="EndHour" 
                        UniqueName="EndHour"
                    </telerik:GridBoundColumn> 
                    <telerik:GridCheckBoxColumn DataField="IsAudit" HeaderText="是否审核" SortExpression="IsAudit" 
                        UniqueName="IsAudit"
                    </telerik:GridCheckBoxColumn> 
                </Columns> 
            </MasterTableView> 
        </telerik:RadGrid> 

liu qingshui
Top achievements
Rank 1
 answered on 19 Mar 2010
0 answers
85 views
I managed it to hides Add New Record button but only the one at the top. The other one at the bottom remains visible :(
if (e.Item is GridCommandItem) 
                    { 
                        GridCommandItem cmdItem = (GridCommandItem)RadGrid1.MasterTableView.GetItems(GridItemType.CommandItem)[0]; 
                        ((LinkButton)cmdItem.FindControl("InitInsertButton")).Visible = false
                    } 

Also how do i hide the delete button? I tried the next but it didn't work properly.

if (e.Item is GridDataItem) 
                    { 
                        GridDataItem item = (GridDataItem)e.Item; 
                        LinkButton editButton = (LinkButton)item.FindControl("EditButton"); 
                        editButton.Visible = false
                        //LinkButton deleteButton = (LinkButton)item.FindControl("DeleteButton"); 
                        //deleteButton.Visible = false; 
                    } 

the Edit button gets hidden but the delete throws an exception "Object reference not set to an instance of an object".


El
Top achievements
Rank 1
 asked on 19 Mar 2010
1 answer
78 views
Is it okay to use jQuery 1.4.2 with Telerik.Web.UI version 2009.3.1314?  I've done this...

        <TelerikControls:RadScriptManager ID="RadScriptManager1" runat="server"
            <Scripts> 
                <asp:ScriptReference Name="Telerik.Web.UI.Common.jQuery.js" Path="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" Assembly="Telerik.Web.UI" /> 
... 
 

Thanks,
Jason
T. Tsonev
Telerik team
 answered on 19 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?