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

I've a radgrid to which i bind my data.  I need to select multiple rows or can select one row and delete them(i have a delete button which does this.)
On\ce i delete the row or rows from radgrid, i again load the grid (have dattacolumn and assign datasource and databind it). 

my problem is if i select one row and click on delete, it works fine. deletes the rows and again binds the grid.

But if i select multiple rows and delete them , it gives me an error telling column name"NAme" already assigned. how do i overcome this. what needs to be donne.
Any help to this would be really appreciated.
Thanks,
ZR

Shinu
Top achievements
Rank 2
 answered on 21 Jul 2009
5 answers
106 views
Hi.

I have a page use masterpage, and in ContentPlaceHolder, partial content is included by a ajaxpanel.
When I browser this file, IE become not responding.
IE Version: 8.0 RC1

I tried following scenarioes:
1. Not all postback cause problem, only a particular linkbutton will.
2. Use IE compatibility mode.
Result: The same problem
3. Use Chrome.
Result: No problem
4. Not use masterpage, and put all content of ContentPlaceHolder in aspx file
Result: No problem
5. Use masterpage, but ajaxpanel include the whole ContentPlaceHolder Control
Result: No problem

How can i figure the problem out? Any idea? 
Thank you very much!:)

Herbert

Sebastian
Telerik team
 answered on 21 Jul 2009
0 answers
73 views
Dear All,

        I am using RadPanelBar to load Menus dynamically. Once if i have created my menu and try to navigate to the screen on clicking the menu, am getting PostBack each time on the entire screen. Even the Menus get Postback and Loads each time. So i used RadAjaxPanel, which doesnot allows PostBack. Am using Themes for my Project. So i need to know how could i set the Skin for RadAjaxPanel.

thanks,
Vijayaragavan R
Vijayaragavan
Top achievements
Rank 1
 asked on 21 Jul 2009
1 answer
32 views
i am using telerik grid. in that i have 30 bound columns. i am freezing first 2 columns includes edit button (editboundcolumn).
i have lot of issues while using the grid.

1. When i am using the freezing the grid doesnt show the last columns properly even if the horizontal scroll bar is moved.
     Column freezing is working but the last columns are displayed not fully.
     when the page is postbacked the grid size changes even if we set the width of the grid. so the look doesnt seem to good.

2.  i am using the edit popup functionality with template along with frozen columns and scrolling func. we use editboundcolumn for that.
     when we click the edit button the popup doesnt appear on the screen rather it appears only when the grid is scrolled down and is it          possible to disable the parent page when editing the popup form.
  
     we are binding it in the codebehind page.    code used by us for grid..rough code

  <telerik grid>
        <clientsettings>for frozen columns </clientsettings>
         <mastertableview editmode = popup>
            <columns>
              <editboundcolumn/>
              <boundcolumns/> ............some 25bound columns
            </columns>          
            <editformsettings type="template" popup-modal="true">

           </editformsettings>
        </mastertableview>
   </telerikgrid>
 
we are luking forward to buy this product.but we have lot of issues. hope u will solve our probs, 

Regards,
Srikanth

Pavlina
Telerik team
 answered on 21 Jul 2009
1 answer
130 views
Hi,

We are using ASPNET AJAX Q1 2009 RadComboBox in a web user control. There are mutiple comboboxes are we are using LoadOnDemand approach for this.

There comboboxes are related in the sense we need to clear the selection on rest of the comboboxes.

it does not seem to work as desired.

This is our code

   

 

<telerik:RadComboBox ID="ddlUPC" runat="server" EnableItemCaching="True" EnableLoadOnDemand="True"

 

 

Visible="true" OnItemsRequested="ddlUPC_ItemsRequested"

 

 

AutoPostBack="true" EmptyMessage="Search UPC here ..." OnSelectedIndexChanged="ddlUPC_SelectedIndexChanged"

 

 

OnTextChanged="ddlUPC_TextChanged" EnableEmbeddedSkins="false">

 

 

</telerik:RadComboBox>

 

Customer Order No

 

<telerik:RadComboBox ID="ddlCustOrderNo" runat="server" EnableItemCaching="True" EnableLoadOnDemand="True"

 

 

Visible="true" OnItemsRequested="ddlUPC_ItemsRequested"

 

 

AutoPostBack="true" EmptyMessage="Search Customer Order No here ..." OnSelectedIndexChanged="ddlUPC_SelectedIndexChanged"

 

 

OnTextChanged="ddlUPC_TextChanged" EnableEmbeddedSkins="false">

 

 

</telerik:RadComboBox>

 

Customer Project Id

 

<telerik:RadComboBox ID="ddlCustomerProjectId" runat="server" EnableItemCaching="True" EnableLoadOnDemand="True"

 

 

Visible="true" OnItemsRequested="ddlUPC_ItemsRequested"

 

 

AutoPostBack="true" EmptyMessage="Search Customer Project Id here ..." OnSelectedIndexChanged="ddlUPC_SelectedIndexChanged"

 

 

OnTextChanged="ddlUPC_TextChanged" EnableEmbeddedSkins="false">

 

 

</telerik:RadComboBox>

 



Code behind

        protected void ddlUPC_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e)
        {
            RadComboBox ddl = (RadComboBox)o;
            if (ddl.ID=="ddlUPC")
            {
                //ddlCustOrderNo.ClearSelection();
                //ddlCustOrderNo.Text = string.Empty;
                //ddlCustomerProjectId.ClearSelection();
                //ddlCustomerProjectId.Text = string.Empty;
                ddlCustOrderNo.EmptyMessage = "";
                ddlCustomerProjectId.EmptyMessage = "";

  //data binding code goes here
            }
            else if(ddl.ID == "ddlCustOrderNo")
            {
                //ddlUPC.ClearSelection();
                //ddlUPC.Text = string.Empty;
                //ddlCustomerProjectId.ClearSelection();
                //ddlCustomerProjectId.Text = "";
                ddlUPC.EmptyMessage = "";
                ddlCustomerProjectId.EmptyMessage = "";

  //data binding code goes here 
            }
            else if(ddl.ID == "ddlCustomerProjectId")
            {
                //ddlUPC.ClearSelection();
                //ddlUPC.Text = string.Empty;
                //ddlCustOrderNo.ClearSelection();
                //ddlCustOrderNo.Text = string.Empty;
                ddlUPC.EmptyMessage = "";
                ddlCustOrderNo.EmptyMessage = "";

  //data binding code goes here
            }

        }


Could you tell us what are we doing incorrect here? Also we have a mandate to not use any javascript to achieve this.

Thanks

Kartik


Veselin Vasilev
Telerik team
 answered on 21 Jul 2009
1 answer
160 views
I am using the LoadOnDemand Combo example you provided:

 

<telerik:RadComboBox ID="RadComboBox1" runat="server" Width="250px" Height="150px"

 

 

 

EmptyMessage="Select a Company" EnableLoadOnDemand="True" ShowMoreResultsBox="true"

 

 

 

EnableVirtualScrolling="true" OnItemsRequested="RadComboBox1_ItemsRequested">

 

 

 

</telerik:RadComboBox>

 

 


 

protected void RadComboBox1_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)

 

{

 

 

DataTable data = GetData(e.Text);

 

 

 

int itemOffset = e.NumberOfItems;

 

 

 

int endOffset = Math.Min(itemOffset + ItemsPerRequest, data.Rows.Count);

 

e.EndOfItems = endOffset == data.Rows.Count;

 

 

 

for (int i = itemOffset; i < endOffset; i++)

 

{

RadComboBox1.Items.Add(

 

new RadComboBoxItem(data.Rows[i]["CompanyName"].ToString(), data.Rows[i]["CompanyName"].ToString()));

 

}

 

e.Message = GetStatusMessage(endOffset, data.Rows.Count);

}

 


This combobox is going to appear on an edit page, and I need to set the default selected value when the page loads. How do I do that?

My problem is very similar to this: http://www.telerik.com/community/forums/aspnet-ajax/combobox/selectedvalue-and-loadondemand.aspx

The control is in a FormView, but the control is attempting to bind when the page loads and the RadComboBox1_ItemsRequested event has not fired.  If I am only pulling back a subset of records, how does it no to get the item that matches the existing value?
Veselin Vasilev
Telerik team
 answered on 21 Jul 2009
1 answer
112 views
Hello

Please can you advise me how you add extra information to a pdf file and an excel file when you export a grid.

I have seen that i can add some custom information in the CommandItemTemplate but I cannot find any real information about how i populate the controls etc that I put in the template.

The best that i have been able to see is something like this in the page pre render event

 Protected Sub Page_PreRender(ByVal sender As ObjectByVal e As System.EventArgs) Handles Me.PreRender  
        Dim l As Label = RadGrid1.MasterTableView.GetItems(GridItemType.CommandItem)(0).FindControl("lblSomeLabel")  
        l.Text = "some text" 
    End Sub 

However I do not know if this is the best/efficient way of doing this.

Thanks
Daniel
Telerik team
 answered on 21 Jul 2009
2 answers
59 views
Greetings,

I have been trying to solve a Telerik reference problem now too long.  Hoping to be done this once and forever.

Recently we installed the latest AJAX controls (RadControls for ASP.NET AJAX Q2 2009).  Since then, the developers sharing this project through Visual SourceSafe have not been able to get the controls to render.  This would appear to be a simple fix by adding the two references:

Telerik.Web.Design.dll
Telerik.Web.UI.dll

... but it hasn't been that simple.  Two out of three developers will have no problem and then a 3rd will not be able to get the controls to render in design mode.  Resetting the dlls works sometimes and then other times it doesn't.  We used one working instance of the project on one developers machine to clean out SourceSafe (in case that was the problem).  Then the other developers downloaded the clean version only to their dismay.

Controls may render one minute and then the next time they open VS 2008, the controls don't render in design.

Are there any known VS 2008 IDE integration issues with Telerik?

Thanks
Atanas Korchev
Telerik team
 answered on 21 Jul 2009
1 answer
187 views
Hi
I have added a radmenu to my master page and applied the Forest skin to it and all works beautifully - except, I need to make a small change to the skin file to reflect my colour scheme. Unfortunately, using visual studio 2008 and the 3.6 communty edition download, despite being able to change the radmenu skin as a property in VS2008, I cannot find the source location to then make changes to either the .skin file or the CSS that I am asuming is behind it. I have searched  and searched but can't find it. Anyone any ideas how I might be able to either
a, modify the forest skin directly
b, use the forest skin and create my own custom skin.

I'm new to sitefinity and so far having excellent production with it.
many thanks

 
Ivan Dimitrov
Telerik team
 answered on 21 Jul 2009
1 answer
78 views
Hi,

I'm hoping someone can help me out with this as I still dont have an answer -
if I had the following grid of data

Project       Time    Value    Items
Red            2          3           5 
Red            2          3           5
Orange      4          10         15
Orange      4          10         15

I would want to see this when the Project field is grouped and the Time and Items fields are summed (Value is not calculated)

Project         Time   Value   Items
+Red             4            10
+Orange       8            30

Instead of

Project       Time    Value    Items
+Red,Time:4,Items:10
+Orange,Time:8,Items:30


You can see the layout I want is alot clearer than what the grid is giving me at the moment. 

Sebastian
Telerik team
 answered on 21 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?