Telerik Forums
UI for ASP.NET AJAX Forum
20 answers
505 views
Hi, 
in my radGrid I've a GridTemplateColumn like this:
<telerik:GridTemplateColumn UniqueName="statusCln" HeaderText="<%$ Resources: Activity, ActivityStatus %>" 
                      AutoPostBackOnFilter="true"  DataField="ActivityStatus.Description"
                       <ItemTemplate> 
                            <asp:Label ID="lblStatus" runat="server" Text=""></asp:Label>  
                            <asp:Label Font-Size="0.9em" ForeColor="Red" ID="assignerLbl" runat="server" Text=""></asp:Label> 
                       </ItemTemplate> 
                       <FilterTemplate> 
                            <telerik:RadComboBox runat="server" ID="ComboForStatus" AutoPostBack="true" 
                            OnClientSelectedIndexChanged="StatusIndexChanged"
                                <Items> 
                                    <telerik:RadComboBoxItem Text="<%$Resources:General,Select %>" Value="0" /> 
                                </Items> 
                            </telerik:RadComboBox> 
                            <telerik:RadScriptBlock ID="RadScriptBlock2" runat="server"
                                <script type="text/javascript"
                                    function StatusIndexChanged(sender, args) { 
                                        var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>"); 
                                        tableView.filter("statusCln", args.get_item().get_text(), 1); 
                                    } 
                                </script> 
                            </telerik:RadScriptBlock> 
                        </FilterTemplate> 
                     </telerik:GridTemplateColumn> 

The text of the 2 Labels inside the ItemTemplate is binded server side during RadGrid1_ItemDataBound event.
My problem is that  the filter using the RadComboBox doesn't work.
As you can see from the code, filtering happens client side using the tableView.filter function. This function requires the uniquename of the GridTemplateColumn. I suppose that filtering doesn't work because in my case this column is associated with 2 different values (the values in of the 2 labels).
How can I find a solution to this?  or Am I doing something wrong?

Greetings
Marco
 
Antonio Stoilkov
Telerik team
 answered on 17 Sep 2012
1 answer
118 views
I just installed the Telerik ASP.Net AJAX toolset and when I try to create a new C# website, I get the following error. How do I get past this?

---------------------------
Microsoft Visual Studio
---------------------------
[A]Telerik.VSX.WizardEngine.Configuration.ScenarioDefinition cannot be cast to [B]Telerik.VSX.WizardEngine.Configuration.ScenarioDefinition. Type A originates from 'Telerik.VSX.WizardEngine, Version=2012.2.724.0, Culture=neutral, PublicKeyToken=0dfdc51bd06071b4' in the context 'LoadFrom' at location 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Telerik\Telerik Silverlight VSExtensions\2012.2.724.0\Telerik.VSX.WizardEngine.dll'. Type B originates from 'Telerik.VSX.WizardEngine, Version=2012.2.814.0, Culture=neutral, PublicKeyToken=0dfdc51bd06071b4' in the context 'LoadFrom' at location 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Telerik\Telerik WebUI VSExtensions\2012.2.814.0\Telerik.VSX.WizardEngine.dll'.
---------------------------
OK   
---------------------------

Petar
Telerik team
 answered on 17 Sep 2012
1 answer
58 views
hi

How do i have my value in the header text?

For example, my data is the employees name and i would like to display the employee name as header text and when i click on the name of the employee, it go to the details page.
thanks a lot.
Eyup
Telerik team
 answered on 17 Sep 2012
2 answers
94 views
As per my requirement i need when the MinValue for a RadNumericTextBox is set to 0 it should not even allow to type the '-' character into the RadNumericTextBox.

It should behave in the same way as it behaves for any other characters, but now even the MinValue is set to 0 it allows to type the '-'/hyphen character. I am handling this situation by implementing the RangeValidation on the RadNumericTextBox so that it is showing the error message on focus out from it or on click of the 'Save' button.

Can anybody help me in this regard if there is a way to make it behave in the same way it behaves for other characters when entered like(do not allow user to type the character and show an error icon) ?

Hoping for a satisfactory option should be there. Thanks in advance.
Smruti Ranjan
Top achievements
Rank 1
 answered on 17 Sep 2012
0 answers
50 views
How do we use confirmbuttonextender ajax control in Radcombobox?
Rabeek Ahamed
Top achievements
Rank 1
 asked on 17 Sep 2012
1 answer
103 views
I have a page with a telerik:RadScriptManager.  According to a profiler I'm using, in a single page load Telerik.Web.UI.RadScriptManager.OnResolveScriptReference() is called 16,949 times and accounts for a half second of my page load times.  I added my own handler for ResolveScriptReference and it does seem to be called quite a lot.  The Scripts collection has 7 scripts.  In my own handler, I can see that it's resolving the same scripts over and over: Telerik.Web.UI.Common.Core.js, Telerik.Web.UI.Common.jQuery.js, etc.

This project using Telerik.Web.UI.DLL 2011.1.519.40.  I know that's an older version, I'm not sure i can get authorized to upgrade it (due to a fear of breaking something else).  I'm hoping there is some problem in the way this control is being used that I can alter in order to fix the problem, but I don't even know where to start.

Matt
Dimitar Terziev
Telerik team
 answered on 17 Sep 2012
1 answer
89 views
i would like to add a rad toolbar to a masterpge and inherit it

please tell me how to chieve this

regards
Anwar
Princy
Top achievements
Rank 2
 answered on 17 Sep 2012
1 answer
120 views
Hello
I have a query and i bind the results with the following code
Dim oConn As OdbcConnection<br>
Dim connectionString As String<br>
connectionString = ConfigurationManager.ConnectionStrings(
"ODBCConnection").ToString<br>
oConn =
New OdbcConnection(connectionString)<br>
commandString =
"SELECT sCode as Κωδικός, sName as Περιγραφή,sUnitOM as ΜΜ,sWhsalePr as Λιανική From smast where sCode like '" + TextBox1.Text + "%' or sSuplCode like '" + TextBox1.Text + "%' order by scode"<br>
Dim myAdapter As New OdbcDataAdapter(commandString, oConn)<br>
Dim productDataSet As DataSet = New DataSet<br>       
myAdapter.Fill(productDataSet)<br>
RadGrid1.DataSource = productDataSet<br>
RadGrid1.DataBind()
I want to add 2 columns, one with textboxes and another with button so the user fills the desired quantity and then press the button to add the product to a shopping cart
Can you help me how to do that?
Thank you
Shinu
Top achievements
Rank 2
 answered on 17 Sep 2012
1 answer
89 views
Hi,

I have a date time picker..which shows the date format as "yyyy-mm-dd" : I wanted to be change to "dd-mm-yyyy".

How to do ?
Shinu
Top achievements
Rank 2
 answered on 17 Sep 2012
6 answers
136 views
Hello,
In my grid I need to select multiple rows. I set AllowMultipleRowSelection to True and I added a GridClientSelectColumn.
All works fine but I would like a little different behaviour on the column with checkboxs. Now I have this:

1) If I click with mouse on the checkboxes I can select multiple rows
2) If I click with mouse on the background of the first cell (the one with the checkbox), I deselect all the rows except the current row
3) If I click with moouse on the others cell,  I deselect all the rows except the current one

I would like to modify the step 2 in this way:

2) If i click with the mouse on the background of the first cell I select the current row without deselecting the other rows. The click on the cell background must be equal to the click on the checkbox control.

Now the users have a different behaviour on the first cell and if they don't click exactly on the checkbox control they deselect all the previous selected rows.

Is it possible?
Thanks.
Eyup
Telerik team
 answered on 16 Sep 2012
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?