Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
89 views
Hi,
I have the below code in Itemcommand. I want to restrict users to enter only 2 rows. And also, if an existing row is deleted and number of rows is within 2, user should be able to add new item. This code is not working

int count = radgrid1.MasterTableView.Items.Count;
                  if (count > 2)
                  {
                      e.Canceled = true;
                      radgrid1r.MasterTableView.CommandItemDisplay = GridCommandItemDisplay.None;
                                      
                  }
                  else
                  {
                      radgrid1.MasterTableView.CommandItemDisplay = GridCommandItemDisplay.TopAndBottom;
                  }

Also, i am  clicking on "ADD NEW ITEM" twice to make it disapper.
If the items inserted are 2 then automatically the "add new item" should not be displayed.
How to fix this?
Shinu
Top achievements
Rank 2
 answered on 21 Dec 2012
1 answer
104 views
I tried the EnableAutomaticLoadonDemand technique and it works basically well.  One thing though, I thought it was supposed to cache the full result from the database if I set EnableItemCaching. I ran a SQL Profiler trace and it reruns the query each time, which causes slowness in non-local situations.  The combo does need to post after the user selects something, so the app can continue with the selection they chose.  Is there something else I need to do?

Thanks.

<telerik:RadComboBox ID="CaseRadComboBox" runat="server" DataSourceID="CaseSqlDataSource" DataTextField="FullCaseName" DataValueField="subIdx" enableautomaticloadondemand="true"
    enablevirtualscrolling="true" itemsperrequest="15" Filter="Contains" Width="400px" AutoPostBack="True" enableitemcaching="True" >
</telerik:RadComboBox>
Ed Lance
Top achievements
Rank 1
 answered on 21 Dec 2012
4 answers
615 views
I have a simple 2-column RadComboBox which I'm using strictly as a dropdown listbox.  It's generally working fine except I'd like to do one more thing with it.  After an item is selected then the short Description text (ex. "228", "3900", "850", etc.) is shown in the RadComboBox after it collapses.

But what I'd like to do is display the related text as a suffix.  So, for example, if the first item is selected then rather than just display "228", instead I'd like to display "228 (601-10101 / 4000)".

I tried doing this by setting the RadComboBox's Text property but this failed to achieve it.  I then also tried setting the EmptyMessage property but that didn't work either.

Is there a way I can do it?

Robert
Robert
Top achievements
Rank 1
 answered on 20 Dec 2012
4 answers
366 views
Hi ! I am using this control and looking for some css for it, at the moment it looks odd with my Windows 7 theme. Please refer to the attached screen snip for details.
Aarsh
Top achievements
Rank 1
 answered on 20 Dec 2012
4 answers
716 views
Hi ther,
     I have a situation where I hav to change the text of "check all" string in the radCombobox. Can anybody help me with some goodies :)
Thanks in  advance
RT
Tracy Dryden
Top achievements
Rank 1
 answered on 20 Dec 2012
1 answer
81 views
Hi there,

I am struggling to insert items to the RadComboBox.

I use the following code

protected

 

void cbLocation_DataBound(object sender, EventArgs e)

{

//fill radcombobox

cbLocation.Items.Clear();

cbLocation.Items.Insert(0,

new RadComboBoxItem("<Make choice>", ""));

cbLocation.Items.Insert(1,

new RadComboBoxItem("EPO", "EPO"));

cbLocation.Items.Insert(2,

new RadComboBoxItem("PDC", "PDC"));

}

I get the following error when I click the Update or Cancel button in the Edit form:
Error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500

Do you have any idea why the error occurs?

Thanx!

Marcel

Kevin
Top achievements
Rank 2
 answered on 20 Dec 2012
3 answers
332 views
Hi,
   i have select top 6 products from database with description and image path and showing them as 6 pics now 
   but i want to show it as slideshow (one large pic with desc).
   what's the best technique and how can I do it?
  sql server db, asp.net using c#
thanks in advance,
M
Sagar
Top achievements
Rank 1
 answered on 20 Dec 2012
0 answers
87 views
Is it possible to configure the radcombobox so it collapses when one clicks on the input area?
It opens when you click there, but won't close when you click there again. (As compared tot he regular asp combobox)

Cheers,
CJ
AnneArents
Top achievements
Rank 1
 asked on 20 Dec 2012
2 answers
70 views
Hi
i have a big problem with RadTreeView (version 2010.2.929.35).
The display of nodes is correct with Internet Explorer 8 and above but instead with Internet Explorer 7 when you hover the mouse over the node, the node it disappears!.
For testing i define OnClientMouseOver events:

<telerik:RadTreeView ID="RadTreeView1" runat="server" CheckBoxes="True" TriStateCheckBoxes="false"
CheckChildNodes="true" Width="170px" style="white-space:normal;" OnClientMouseOver="onMouseOver">
                            <DataBindings>
                                <telerik:RadTreeNodeBinding Expanded="False" />
                            </DataBindings>
                    </telerik:RadTreeView>
 and

function onMouseOver(sender, e)
{
        var node = e.get_node(); 
        node.onmouseover = null;
}

the result is that in Internet Explorer 8 and above the hover is properly disabled but in Internet Explorer 7, the node continues to disappear.
Can someone help me? Thank you very much.
Marco
Marco
Top achievements
Rank 1
 answered on 20 Dec 2012
17 answers
412 views
I'm in the process of making my web application compatible with iPad (Safari).
The problem is a RadPane, with Scrolling set to both, but also a ContentUrl set, will not scroll on an iPad.
In cases were no CententUrl is set, scrolling works fine.
Also scrolling (with ContentUrl is set) works fine on PC browsers.
Is there a solution or workaround for this?
Phil
Top achievements
Rank 1
 answered on 20 Dec 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?