Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
147 views
Hello,

Using the 3.5 assemblie Q2 2010.

When I have a grid who gets its data from the onneeddatasource event and any of my columns has space in the name the grouping won't work.

When I try to group on the column: Leading Country,  the error message will be:

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Field Leading not found in the source table. Please check the expression syntax.

I don't really want to replace spaces with underscores to solve this. Is there anything I am missing here?

Below my code:

ASPX:
<telerik:RadAjaxPanel ID="rap" runat="server" Width="90%">
    <telerik:RadGrid ID="rg" runat="server" AllowAutomaticInserts="false" Skin="Office2007"
        AllowFilteringByColumn="True" GroupingEnabled="true" EnableViewState="true" AllowPaging="True"
        AllowSorting="True" AutoGenerateColumns="True" GridLines="None" ShowStatusBar="True"
        OnNeedDataSource="rg_NeedDataSource" EnableLinqExpressions="true" PageSize="20"
        Width="97%" ShowGroupPanel="true" OnColumnCreated="rg_ColCreated">
        <MasterTableView EnableNoRecordsTemplate="true" CellSpacing="-1" CommandItemDisplay="None"
            AllowMultiColumnSorting="true" PagerStyle-Position="Bottom" PagerStyle-Mode="NextPrevAndNumeric"
            ClientDataKeyNames="oid" DataKeyNames="oid">
            <NoRecordsTemplate>
                <div>
                    Geen items gevonden.</div>
            </NoRecordsTemplate>
            <Columns>
            </Columns>
        </MasterTableView>
        <ClientSettings AllowColumnsReorder="True" AllowDragToGroup="True" ReorderColumnsOnClient="True">
            <Selecting AllowRowSelect="True" />
            <Scrolling AllowScroll="True" UseStaticHeaders="True" />
        </ClientSettings>
    </telerik:RadGrid>
</telerik:RadAjaxPanel>




Pavlina
Telerik team
 answered on 01 Sep 2010
5 answers
108 views
Hi,

Is it possible to link a custom button on a user control to a grid's "Insert" button?

I'm basically trying to replace the build-in "Insert" button with my own custom button.

Thanks.

R
Pavlina
Telerik team
 answered on 01 Sep 2010
3 answers
609 views
Hi All

Have done a page for questionaire.

It works fine.

There are 10 questions with YES or NO option.

Have a scenario: If 9th question answer is NO. Then the two radio button near by 10th question should be enabled false.

Have done it. But the whole page blinks and the scroll bar again goes to the top.

<table style="width: 100%;">
                                                                <tr>
                                                                    <td>
                                                                        <table cellpadding="0" cellspacing="0">
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:RadioButton ID="rbtnq9_2_Y" GroupName="Group9_2" runat="server" Text="Y" />
                                                                                </td>
                                                                                <td>
                                                                                    <asp:RadioButton ID="rbtnq9_2_N" GroupName="Group9_2" runat="server" Text="N" />
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </td>
                                                                    <td>
                                                                    </td>
                                                                </tr>
                                                            </table>


protected void btnqfollowup_Click(object sender, EventArgs e)
        {
            UDFCheckFollowUp(rbtnq9_1_Y, rbtnq9_1_N);
              
        }
        public void UDFCheckFollowUp(RadioButton rbtnq9_1_Y, RadioButton rbtnq9_1_N)
        {
            if (rbtnq9_1_Y.Checked == true)
            {
                rbtnq9_2_Y.Enabled = true;
                rbtnq9_2_N.Enabled = true;
                rbtnq9_3_Y.Enabled = true;
                rbtnq9_3_N.Enabled = true;
                DropDownListRating9_3.Enabled = true;
  
            }
            else if (rbtnq9_1_N.Checked == true)
            {
                rbtnq9_2_Y.Enabled = false;
                rbtnq9_2_N.Enabled = false;
                rbtnq9_3_Y.Enabled = false;
                rbtnq9_3_N.Enabled = false;
                DropDownListRating9_3.Enabled = false;
                 
            }
            else
            {
                rbtnq9_2_Y.Enabled = false;
                rbtnq9_2_N.Enabled = false;
                rbtnq9_3_Y.Enabled = false;
                rbtnq9_3_N.Enabled = false;
                DropDownListRating9_3.Enabled = false;
            }
  
        }

javascript
function RadioClickFollowUp(radioButton)
       {
     
       document.getElementById('btnqfollowup').click();
       }


Is there any option to rectify this

Thanking You

-Anto
Dimo
Telerik team
 answered on 01 Sep 2010
1 answer
131 views
Dear Support,

I am just about to finalize the RAD controls for our Web App. Its been really a great trial period. I was hooked onto the File Explorer of it. Its an awesome control.

I have tried implementing it with some customizations of ours. The screenshot is attached. It uses the File Explorer in a Tab Strip control, and i am trying to provide the feature where by i can open multiple file in different tabs.

I had few queries  here:

1. On double clicking an Image File i want to open it in a New Tab.

2. On Clicking New on the toolbar (which is a custom toolbutton), i want to open a new tab  with the RADEditor and make that Tab selected.

3.On a Custom Toolbar button click (Server Side) i want to have a reference to the File Item selected in the Grid.

I tried to implement the above 3 points, but was not able to get my head around it
It will be really appreciable if you can give me the code for doing the above in a sample project.

Thanks.
Dobromir
Telerik team
 answered on 01 Sep 2010
1 answer
73 views
Hi,
 In my project i am having radgrid,if i do edit and add, after that cancel then i am getting error.Here i am attaching that error screen short.can u plz look into it and give solution.
i am using asp.net 4.0 and visual studio 2010
Thank you
Pavlina
Telerik team
 answered on 01 Sep 2010
1 answer
81 views
Hi,

I have an issue with RadGrid, Im binding the grid with pivot data, so I created the custom template as template column. Everything working fine, but no command events triggering in the grid. But I dont find any issue with binding & displaying columns. I have binded the columns in Page_Load event ,also I tried OnInit() event.Please help me...
Pavlina
Telerik team
 answered on 01 Sep 2010
1 answer
504 views
I am rendering a RadGrid with column which contains a dynamically insert control depending on row data type (i.e. if a row contains a date, the edit column will have a datepicker injected into it on Item_databind).  However, I want the control to load with its visibility set to false until the user clicks a radiobutton next to it.

I am trying to figure out how the telerik controls set visibility through jquery.  I would ideally like the control to be invisible until some jquery is fired which i thought i could accomplish by setting the display style attribute to display:none or display:hidden when the control is rendered.  This works, but the subsequent call to set_visible on the control does not make it visible again.

Could someone explain what selector and attribute is used when this method is called so that i can make the control invisible client side until i call set_visible on it?
Dimo
Telerik team
 answered on 01 Sep 2010
19 answers
503 views
Hi,

I would like to ask the character/table limit for the RadEditor to save the content?
As of now, I am having a script pop up that says:

"Stop running this script?
A script on this page is causing internet explorer to sun slowly.
If it continues to run, your computer  may become unresponsive.

This happens when i enter large number of columns in a table and a very long content (e.g. 80,000 words).
Is this the expected behavior of RadEditor? I also tested this in your Demo site and encountered the same popup window.
Can anyone help me on this?

Thanks,
Jhobs
Rumen
Telerik team
 answered on 01 Sep 2010
1 answer
166 views
Hi,

I have a drop down control which lists 4 of the chart types (Area, Pie, Line and Bar).

My default chart type is Pie.
I would like to change the chart type dynamically during run time based on the selection in the drop down.

The folllowing the code I have used:

protected void DdlChartType_SelectedIndexChanged(object sender, EventArgs e)
{
radChart.Clear();
chartSeries.Clear();

TextBox1.Text = DdlChartType.SelectedValue.ToString();
if (DdlChartType.SelectedValue == "ChartSeriesType.Area")
{
chartSeries.Type = ChartSeriesType.Area;
Chart1();
}
else if (DdlChartType.SelectedValue == "ChartSeriesType.Pie")
{
chartSeries.Type = ChartSeriesType.Pie;
Chart1();
}
}
}


protected void Chart1()
{
radChart.ChartTitle.TextBlock.Text = "My RadChart";
chartSeries.Name = "Sales";
chartSeries.AddItem(120, "Internet");
chartSeries.AddItem(140, "Retail");
chartSeries.AddItem(35, "Wholesale");
radChart.Series.Add(chartSeries);
this.Page.Controls.Add(radChart);
}


The problem is I am always getting the same chart type and it does not change.
is it beacuse if cache?
Any ideas?

Thanks!!
Yavor
Telerik team
 answered on 01 Sep 2010
1 answer
97 views
Hi,

How do I set the Header Text and the Sorted Arrow in the same row rather than 2 row (see attached screenshot for 2row) in the header? It should also stay in 1 row even the column is dragged to a smaller width.

<telerik:RadGrid ID="GridDocument" runat="server" AutoGenerateColumns="False"
    AllowPaging="True" AllowSorting="True" AllowMultiRowSelection="true" 
    Width="100%" Height="345px" OnPageIndexChanged="GridDocument_PageIndexChanged"
    OnSortCommand="GridDocument_SortCommand">
    <PagerStyle AlwaysVisible="true" />
    <MasterTableView DataKeyNames="ID" ClientDataKeyNames="ID" TableLayout="Fixed">
        <Columns>
            ...
            <telerik:GridBoundColumn DataField="Version" HeaderText="<nobr>Version</nobr>" UniqueName="Version" DataFormatString="<nobr>{0}</nobr>" SortExpression="Version">
                <HeaderStyle Width="70px" />
                <ItemStyle Width="70px" />
            </telerik:GridBoundColumn>
            ...
        </Columns>
    </MasterTableView>
    <ClientSettings>
        <Scrolling AllowScroll="true" UseStaticHeaders="true" />
        <Resizing AllowColumnResize="True" EnableRealTimeResize="true" ClipCellContentOnResize="true"></Resizing>
    </ClientSettings>
</telerik:RadGrid>

Thanks in advance.
Pavlina
Telerik team
 answered on 01 Sep 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?