Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
98 views
I ran the example on my machine and it works, but when I emulate another browser, ex: IE9, the chart does not export. IS there a filesystem setting that needs to be added, as I have seen an error with something like that from time to time.
Ivan Danchev
Telerik team
 answered on 06 Apr 2015
1 answer
171 views

This post exactly explains my situation but instead of removing the Boolean value yes, I need to disable a radcombo item (please check under Rad comboBox filter2 item Show All Temporary reports).
http://www.telerik.com/forums/combobox-with-textbox-filtering 
Rad comboBox filter1:
<telerik:GridBoundColumn UniqueName="STATE_CODE" DataField="STATE_CODE" HeaderText="STATE_CODE" >
                        <FilterTemplate>
                            <telerik:RadComboBox ID="RadComboBoxSTATE_CODE" DataSourceID="SqlDataSource1" DataTextField="STATE_CODE"
                                DataValueField="STATE_CODE" Height="200px" AppendDataBoundItems="true" SelectedValue='<%# TryCast(Container,GridItem).OwnerTableView.GetColumn("STATE_CODE").CurrentFilterValue %>'
                                runat="server" OnClientSelectedIndexChanged="STATE_CODEIndexChanged">
                                <Items>
                                    <telerik:RadComboBoxItem Text="All" />
                                </Items>
                            </telerik:RadComboBox>
                            <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
                                <script type="text/javascript">

                                    function STATE_CODEIndexChanged(sender, args) {

                                        var tableView = $find("<%# TryCast(Container,GridItem).OwnerTableView.ClientID %>");

                                        tableView.filter("STATE_CODE", args.get_item().get_value(), "EqualTo");

                                    }

                                </script>
                            </telerik:RadScriptBlock>
                        </FilterTemplate>
                    </telerik:GridBoundColumn>

Rad comboBox filter2:
   <telerik:GridBoundColumn UniqueName="report" DataField="report" HeaderText="report" >
                        <FilterTemplate>
                            <telerik:RadComboBox ID="RadComboBoxreport" DataSourceID="SqlDataSource2" DataTextField="report"
                                DataValueField="report" Height="200px" AppendDataBoundItems="true" SelectedValue='<%# TryCast(Container,GridItem).OwnerTableView.GetColumn("report").CurrentFilterValue %>'
                                runat="server" OnClientSelectedIndexChanged="reportIndexChanged">
                                <Items>
                                    <telerik:RadComboBoxItem Value="All" Text="All" />
                                    <telerik:RadComboBoxItem Value="T" Text="Show All Temporary reports" Enabled="true" />
                                </Items>
                            </telerik:RadComboBox>
                            <telerik:RadScriptBlock ID="RadScriptBlock2" runat="server">
                                <script type="text/javascript">

                                    function reportIndexChanged(sender, args) {

                                        var tableView = $find("<%# TryCast(Container,GridItem).OwnerTableView.ClientID %>");

                                        tableView.filter("report", args.get_item().get_value(), "Contains");

                                    }

                                </script>
                            </telerik:RadScriptBlock>
                        </FilterTemplate>
                    </telerik:GridBoundColumn>
Temp Report numbers start with T. Regulars do not have T.
On selecting a state, say CA, if they have temp reports, it is working fine. If CA doesn't have temporary reports, but the user chooses "Show all temp records", I get ArgumentOutofRangeException and - Selection out of range Parameter name: value error.
I am not sure where to disable the item.  It will be great if I get some help on this.

Hristo Valyavicharski
Telerik team
 answered on 06 Apr 2015
9 answers
1.5K+ views
how do i remove the column(s) in the radgrid on runtime.
can anybody help me with this.
Ibraheem
Top achievements
Rank 1
 answered on 06 Apr 2015
1 answer
75 views
Hi all,

I can't get new check items on code behind. I bind the listbox on page load.

<telerik:RadListBox ID="listBoxEmp" runat="server" CheckBoxes="true" ShowCheckAll="true"
                                            Width="250px" Height="200px" >

.cs

List<tbl_Employee> data = GetEmp("");
       if (data != null)
       {
           for (int i = 0; i < data.Count; i++)
               listBoxEmp.Items.Add(new RadListBoxItem(data[i].ID.ToString() + " | " + data[i].Name.ToString(), data[i].ID.ToString()));
 
       }
 
There will be other comboboxs. I have to check items based on other combobox selection. So in codebehind,  I do it like this. It will checked all items that returned from query.

foreach (RadListBoxItem cbi in listBoxEmp.Items)
       {
           if (objEmp.Where(x => x.EmployeeID == cbi.Value).Count() > 0 && cbi.Checked == false)
           {
               cbi.Checked = true;
               //checkEmp += cbi.Value + ",";
           }
       }

After that I also check some more items from the UI but when I click search,new items are not inside the listBoxEmp.CheckedItems list. Please suggest.

Thank you.

Best regards,
Ei Wai
Konstantin Dikov
Telerik team
 answered on 06 Apr 2015
1 answer
72 views

Dear Support Team,


We just started using your GanttView and we have a requirement to have multiple events or "GanttTasks" on a single line.

It appears that whenever I add a GanttTask or child to a GanttTask, it always creates a new line item for the task.

Is there anyway to represent multiple events or tasks on a single line?



Thanks in advance,

 

Atul Soni

 

Bozhidar
Telerik team
 answered on 06 Apr 2015
1 answer
77 views
Good day,

we have a radgrid that works as expected.
Today we needed to add a two columns to this grid.
The columns are in a connected table of a connected table, so we specify

include="table1,table1.table2, table3,table3.table4"

When relations for these tables are simple (grid's table has a 1-1 relation with table1, which has a 1-1 relation with table2) we can later use
table1.table2.textfield in our grid's columns data fields with no problem.

The problem is that when table3 has a 1-n relation with table 4 (grid's table has a 1-1 relation with table3, which has a 1-n relation with table4)
we receive a
DataBinding: 'table1' does not contain a property with the name 'table3.table4.textfield'
when trying to bind table3.table4.textfield to our new column

We are subsetting table4 in the onselecting event with the
mygrid.DataSource.Where = "EXISTS(SELECT VALUE u FROM it.table3.table4 AS u WHERE u.IDtextfield = 1)";
the query executes correctly so we'd expect to be able to reference table3.table4.textfield as we're able for table1.table2.textfield

What are we missing?
Is there any special syntax to identify the table4.textfield field during databinding?

Thanks in advance.


Angel Petrov
Telerik team
 answered on 06 Apr 2015
1 answer
34 views


For example look at the attached screenshot to see what I was
talking about, from the screen what I want is as follows

You can see the selected region in the day view of my
scheduler, here my question is how do I know which date & time got selected
here?

Question2 is you can see the when and duration fields in the
left side if I change those any one (or) two of them then selected region has
to be changed accordingly so, how do I achive this functionality in telerik
scheduler?

Could you please advise…?

Thanks,

Plamen
Telerik team
 answered on 06 Apr 2015
1 answer
55 views
For example look at the attached screenshot to see what I was
talking about, from the screen what I want is as follows

You can see the selected region in the day view of my
scheduler, here my question is how do I know which date & time got selected
here?

Question2 is you can see the when and duration fields in the
left side if I change those any one (or) two of them then selected region has
to be changed accordingly so, how do I achive this functionality in telerik
scheduler?

Could you please advise…?

Thanks,
Plamen
Telerik team
 answered on 06 Apr 2015
4 answers
71 views
I have come across a problem where the position of the pop-up context menu seems to be affected by the scroll position of the browser. On a page with multiple RadEditors where the user must scroll to get to the bottom few editors, the context menu popup position gets higher the further down the page the user right-clicks a RadEditor. It is also affected by the amount of content in each editor when AutoResizeHeight="true".  I want the appearance of "textbox-like RadEditors" as per the online demo, so the css classes in my sample below are similar to the online demo. Removing ContentAreaMode="div" seems to alleviate the problem, but I haven't fully tested my project without that setting. I am using the latest release build and IE9.

Sample:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title>Test Telerik boxes</title>
    <style type="text/css">   
        
       /* The following CSS needs to be copied to the page to produce textbox-like RadEditor */
        .reWrapper_corner, .reWrapper_center, .reToolZone,
        .reToolCell,
        .reBottomZone,
        .reModule
        {
               display: none !important;               
        }
                 
        .reLeftVerticalSide,
        .reRightVerticalSide
        {
            background: white !important;
        }
     
        .reContentCell
        {
            border-width: 0 !important;
            width:100%;
        }
         
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnableScriptCombine="true" OutputCompression="AutoDetect" >
        <Scripts>
            <%--Needed for JavaScript IntelliSense in VS2010--%>
            <%--For VS2008 replace RadScriptManager with ScriptManager--%>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <div> </div><div> </div>
    <div>1:</div>
    <div>
    <telerik:RadEditor ID="RadEditor0" runat="server"
        EditModes="Design" AutoResizeHeight="true"
        ContentAreaMode="Div" Height="30px" ToolsWidth="685px">
        <Content></Content>
    </telerik:RadEditor>
    </div>
    <div> </div><div> </div>
    <div>2:</div>
    <div>
    <telerik:RadEditor ID="RadEditor1" runat="server"
        EditModes="Design" AutoResizeHeight="true"
        ContentAreaMode="Div" Height="30px" ToolsWidth="685px">
    </telerik:RadEditor>
    </div>
    <div> </div><div> </div>
    <div>3:</div>
    <div>
    <telerik:RadEditor ID="RadEditor2" runat="server"
        EditModes="Design" AutoResizeHeight="true"
        ContentAreaMode="Div" Height="30px" ToolsWidth="685px">
    </telerik:RadEditor>
    </div>
    <div>4:</div>
    <div>
    <telerik:RadEditor ID="RadEditor3" runat="server"
        EditModes="Design" AutoResizeHeight="true"
        ContentAreaMode="Div" Height="30px" ToolsWidth="685px">
    </telerik:RadEditor>
    </div>
    <div>5:</div>
    <div>
    <telerik:RadEditor ID="RadEditor4" runat="server"
        EditModes="Design" AutoResizeHeight="true"
        ContentAreaMode="Div" Height="30px" ToolsWidth="685px">
    </telerik:RadEditor>
    </div>
    <div>6:</div>
    <div>
    <telerik:RadEditor ID="RadEditor5" runat="server"
        EditModes="Design" AutoResizeHeight="true"
        ContentAreaMode="Div" Height="30px" ToolsWidth="685px">
    </telerik:RadEditor>
    </div>
    <div>7:</div>
    <div>
    <telerik:RadEditor ID="RadEditor6" runat="server"
        EditModes="Design" AutoResizeHeight="true"
        ContentAreaMode="Div" Height="30px" ToolsWidth="685px">
    </telerik:RadEditor>
    </div>
    <div>8:</div>
    <div>
    <telerik:RadEditor ID="RadEditor7" runat="server"
        EditModes="Design" AutoResizeHeight="true"
        ContentAreaMode="Div" Height="30px" ToolsWidth="685px">
    </telerik:RadEditor>
    </div>
    <div>9:</div>
    <div>
    <telerik:RadEditor ID="RadEditor8" runat="server"
        EditModes="Design" AutoResizeHeight="true"
        ContentAreaMode="Div" Height="30px" ToolsWidth="685px">
    </telerik:RadEditor>
    </div>
    <div>10:</div>
    <div>
    <telerik:RadEditor ID="RadEditor9" runat="server"
        EditModes="Design" AutoResizeHeight="true"
        ContentAreaMode="Div" Height="30px" ToolsWidth="685px">
    </telerik:RadEditor>
    </div>
    <div>11:</div>
    <div>
    <telerik:RadEditor ID="RadEditor10" runat="server"
        EditModes="Design" AutoResizeHeight="true"
        ContentAreaMode="Div" Height="30px" ToolsWidth="685px">
    </telerik:RadEditor>
    </div>
    <div>12:</div>
    <div>
    <telerik:RadEditor ID="RadEditor11" runat="server"
        EditModes="Design" AutoResizeHeight="true"
        ContentAreaMode="Div" Height="30px" ToolsWidth="685px">
    </telerik:RadEditor>
    </div>
    <div>13:</div>
    <div>
    <telerik:RadEditor ID="RadEditor12" runat="server"
        EditModes="Design" AutoResizeHeight="true"
        ContentAreaMode="Div" Height="30px" ToolsWidth="685px">
    </telerik:RadEditor>
    </div>
    <div>14:</div>
    <div>
    <telerik:RadEditor ID="RadEditor13" runat="server"
        EditModes="Design" AutoResizeHeight="true"
        ContentAreaMode="Div" Height="30px" ToolsWidth="685px">
    </telerik:RadEditor>
    </div>
    <div>15:</div>
    <div>
    <telerik:RadEditor ID="RadEditor14" runat="server"
        EditModes="Design" AutoResizeHeight="true"
        ContentAreaMode="Div" Height="30px" ToolsWidth="685px">
    </telerik:RadEditor>
    </div>
    <div>16:</div>
    <div>
    <telerik:RadEditor ID="RadEditor15" runat="server"
        EditModes="Design" AutoResizeHeight="true"
        ContentAreaMode="Div" Height="30px" ToolsWidth="685px">
    </telerik:RadEditor>
    </div>
    <div>17:</div>
    <div>
    <telerik:RadEditor ID="RadEditor16" runat="server"
        EditModes="Design" AutoResizeHeight="true"
        ContentAreaMode="Div" Height="30px" ToolsWidth="685px">
    </telerik:RadEditor>
    </div>
    <div>18:</div>
    <div>
    <telerik:RadEditor ID="RadEditor17" runat="server"
        EditModes="Design" AutoResizeHeight="true"
        ContentAreaMode="Div" Height="30px" ToolsWidth="685px">
    </telerik:RadEditor>
    </div>
    </form>
</body>
</html>

Ianko
Telerik team
 answered on 06 Apr 2015
6 answers
280 views
Hi,

I'm attaching the onBlur event of the RadEditor in this way:
var element = document.all ? editor.get_document().body : editor.get_document();
$telerik.addExternalHandler(element, "blur", this._onBlurDelegate);

This is working fine in wysiwyg edit mode but not when the Editor is switched to the HTML editor mode.
How can I react to the onBlur event also if the editor is set to html edit mode and the html editor is losing focus?

Regards,

   Sebastian
Ianko
Telerik team
 answered on 06 Apr 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?