Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
111 views
Hi,

I have RadDateTimePicker in my ASP.net web page.
I noticed that it is not working properly on IE 8 and 10. After selecting the date or the time, the control shows another date (wrong year).
I also tried the  Demo page 
http://demos.telerik.com/aspnet-ajax/calendar/examples/overview/defaultcs.aspx

It contains the same issue.
Can you help me please?

Thank you in advance.
Konstantin Dikov
Telerik team
 answered on 03 Feb 2015
3 answers
234 views
Hi all,
I have a hierarchical radgrid. I have problem like, on postback the hierarchy expand state is vanished. When a button outside the grid is clicked, the expanded row will be collapsed, I need it expanded even after the button click.
Please help.

Thanks in advance
Eyup
Telerik team
 answered on 03 Feb 2015
1 answer
172 views
Hello

All I need is to change colors of several controls in common skin MetroTouch. I easily create and download new skin through Visual Style Builder. But when I apply the new skin some elements are corrupted. 

For testing the problem I have created a new skin based on MetroTouch without any changes. I downloaded it and applied to a toolbar and a greed. But the result cordially differ from the result when I simply use standard MultiTouch skin (see attachment).

So what is problem? I use UI for ASP.NET AJAX 2014.2 724 (Jul 24, 2014)

Slav
Telerik team
 answered on 03 Feb 2015
2 answers
143 views
Hello

I have a little problem with selectedValue,

If a dataValueField contain space , i don't get the selectedvalue.


this.PCB.Items.Add(new Telerik.Web.UI.RadComboBoxItem("LOCATION","L ");
this.PCB.Items.Add(new Telerik.Web.UI.RadComboBoxItem("VENTE","V ");
this.PCB.Items.Add(new Telerik.Web.UI.RadComboBoxItem("LOCATION MEUBLE","LM");
this.PCB.Items.Add(new Telerik.Web.UI.RadComboBoxItem("VENTE COMMERCE","VC");

If choose

this.PCB_TYPE_TRANS.SelectedValue="LM";  it's works
this.PCB_TYPE_TRANS.SelectedValue="L"; or this.PCB_TYPE_TRANS.SelectedValue="L ";  it's doesn"t work

i have a space cause i add the item from database with telerik dataaccess and datasource.


thanks for your help
Olivier,






Olivier
Top achievements
Rank 2
 answered on 03 Feb 2015
4 answers
211 views
Hi, I am using the ExcelML export format and there are a few issues that I am encountering and looking for help to resolve.

1. While exporting in the ExcelMLExportRowCreated event handler, I am trying to add indentation to a cell text by adding spaces but my spaces are being trimmed. How can I add a tab or spaces in front of the cell text?

2. I don't see a way to hide the workbook gridlines. If there is not a way, I could manipulate the XML before it renders and add <DoNotDisplayGridlines/> to the WorksheetOptions node. Where/how, can I manipulate the XML output?

3. Is there a way to autosize the columns or execute a script to do it on open or calculate the correct size after the worksheet is built and adjust the size of the columns?

Thanks for your help.
 
Kostadin
Telerik team
 answered on 03 Feb 2015
1 answer
829 views
I am attempting to create a web form with a RadPivotGrid and RadChart according to http://demos.telerik.com/aspnet-ajax/pivotgrid/examples/applicationscenarios/chartintegration/defaultvb.aspx?show-source=true

However, I am getting the following error when I run the project:
JavaScript runtime error: Unable to get property 'PageRequestManager' of undefined or null reference

Can you kindly advise?
Radoslav
Telerik team
 answered on 03 Feb 2015
1 answer
101 views
Hi, how do you set he style for the edit form field titles (to the left of the input controls). I have a CSS class that I would like to apply to the table cells that hold the titles, but cannot see how to do this.

I have attached a screen shot of the area that I mean.

thanks

Eyup
Telerik team
 answered on 03 Feb 2015
1 answer
99 views
Hi,

The Site structure as below
1. www.root.org
2. www.root.org/subsite
3. www.root.org/subsite/Audience etc. 
                
We have a requirement to customize the CSS Class Layout dropdown for “Publishing Page Content (content field)” and Telerik RadEditor for SharePoint Web Part.
This customization should work for media kit site level and its sub sites level (www.root.org/subsite   & www.root.org/subsite/Audience).
We followed the instruction as in http://www.telerik.com/help/aspnet-ajax/moss-sp2010-different-configuration-files-for-different-webs.html and media kit site is picking the custom style sheet in the dropdown under Table Wizard  Table Properties  CSS Class Layout. 
However the sub sites www.root.org/subsite/Audience are not picking the custom styles. They are displaying some default value as in the screenshot attached (Telerik_Table_CSS_Class_Layout_Issue.png). 

If we make some customization in some site level, will it be inherited to its sub site?

Ianko
Telerik team
 answered on 03 Feb 2015
19 answers
516 views
I've followed the  tutorials and examples to save the Grid settings by user. I"m using the  GridSettingsPersister.cs class. Everything is working fine using the SessionState.  I have a requirement that a user should be able to save multiple settings and reload them as needed for a report.  Basically saving the report search criteria and display, so when the user comes back in the future they can select a saved report settings name from a combobox and the report will return results in the saved format.  I'm using a Sql Server table to save my named search and display criteria.  I'm having trouble getting the saved grid format to load.  It seems to be saving fine but when I get the value from the combobox_selectedIndex change event (autopostback=true).  The saved settings for the grid aren't applied.
I've followed this example: http://www.telerik.com/help/aspnet-ajax/grdsavingsettingsonperuserbasis.html but I'm missing something when restoring from the database.  What do I need to do to get this work properly?

Aspx:
                <telerik:RadComboBox ID="RadComboBox1" runat="server" EmptyMessage="Select Report Setting" LoadingMessage="Loading..." AutoPostBack="true" OnSelectedIndexChanged="RadComboBox1_SelectedIndexChanged" Skin="Outlook" Width="250px" ></telerik:RadComboBox> 
                &nbsp;<telerik:RadTextBox ID="RadTextBox1" runat="server"  Skin="Outlook"></telerik:RadTextBox>&nbsp;  
                <asp:Button ID="btnSaveSettings" runat="server" Text="Save Setttings" CommandName="SaveProfile" OnClick="btnSaveSettings_Click" /> 
            </td>   
        </tr>               
        <tr valign="top">    
            <td><img src="images/spacer.gif" width="15px" alt=""  /></td>             
            <td style="height:600px;">  
                <telerik:RadGrid ID="ARGrid" runat="server" Width="95%" GridLines="None" 
                    AutoGenerateColumns="False" PageSize="13" AllowSorting="True" AllowPaging="True" 
                    OnNeedDataSource="ARGrid_NeedDataSource" ShowStatusBar="true" ShowGroupPanel="true" Skin="Outlook" > 
                    <MasterTableView DataKeyNames="Userreportid" AllowFilteringByColumn="true" AllowMultiColumnSorting="true" Width="100%" CommandItemDisplay="None" EditMode="InPlace" > 
                        <Columns> 
                            <telerik:GridBoundColumn UniqueName="Userid" SortExpression="Userid" HeaderText="Userid" DataField="Userid"/>  
                            <telerik:GridBoundColumn UniqueName="Fields" SortExpression="Fields" HeaderText="Fields" DataField="Fields"/>                              
                            <telerik:GridBoundColumn UniqueName="Grouping" SortExpression="Grouping" HeaderText="Grouping" DataField="Grouping"/>  
                            <telerik:GridBoundColumn UniqueName="Sorting" SortExpression="Sorting" HeaderText="Sorting" DataField="Sorting"/>   
                            <telerik:GridBoundColumn UniqueName="Filtering" SortExpression="Filtering" HeaderText="Filtering" DataField="Filtering"/>                                                                                       
                        </Columns> 
                    </MasterTableView> 
                    <ClientSettings AllowColumnsReorder="true" AllowDragToGroup="true" ColumnsReorderMethod="Reorder" > 
                    </ClientSettings> 
                     <GroupingSettings ShowUnGroupButton="true"  /> 
                </telerik:RadGrid> 

Code Behind:
       protected string SettingsState  
        {  
            get { return (string)Session["_settingsar"] ?? string.Empty; }  
            set { Session["_settingsar"] = value; }  
        }  
 
        protected void Page_Init(object sender, EventArgs e)  
        {  
            if (SettingsState != string.Empty)  
            {  
                GridSettingsPersister persister = new GridSettingsPersister(ARGrid);  
                persister.LoadSettings(SettingsState);  
            }  
        }  
 
       protected void Page_PreRender(object sender, EventArgs e)  
        {  
            GridSettingsPersister persister = new GridSettingsPersister(ARGrid);  
            SettingsState = persister.SaveSettings();  
        }  
 
 
        protected void RadComboBox1_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)  
        {  
            if (RadComboBox1.SelectedItem != null)  
            {  
                List<UserReport> ursettings = UserReport.getByUserid(Master.loggedUser.Userid);  
                foreach (UserReport ur in ursettings)  
                {  
                    if (ur.Fields == RadComboBox1.SelectedItem.Text)  //property for grid settings  
                    {  
                        SettingsState = ur.Filtering;  //set sesssion var for the grid settings  
                    }  
                }  
            }  
        } 

 

protected void btnSaveSettings_Click(Object sender, EventArgs e)

 

{

 

string settingname = RadTextBox1.Text;

 

 

 

if (RadTextBox1.Text != string.Empty)

 

{

 

string grsettings = string.Empty;

 

 

GridSettingsPersister persister = new GridSettingsPersister(ARGrid);

 

grsettings = persister.SaveSettings();

 

UserReport ursettings = new UserReport();

 

ursettings.Userid = Master.loggedUser.Userid;

ursettings.Fields = RadTextBox1.Text;

ursettings.Filtering = grsettings;

ursettings.Grouping=

"group stuff";

 

ursettings.save();

BindSavedSettings();

}

 

}




SIMPLE
Top achievements
Rank 1
 answered on 03 Feb 2015
2 answers
191 views
When a file gets uploaded to the temporary folder its name is changed to ensure that it is unique. However the file gets copied to the TargetFolder with its original name. If two people upload files with the same name at the same time then the latter will overwrite the former. How can I ensure that each file in the TargetFolder will be unique so as to prevent collisions?
Mike
Top achievements
Rank 1
 answered on 02 Feb 2015
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?