Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
228 views

Hi all,
I have used 2 RadlistBox to assign some email id in both Radlistbox.
First listbox mail id check same mailid enable false in another RadListBox how to check

My sample coding here

protected void ToEmail_ItemCheck(object sender, Telerik.Web.UI.RadListBoxItemEventArgs e)
        {
            ToName.Text = "";
            int i = 0;
            foreach (object obj in ToEmail.CheckedItems)
            {
                string ema;
                string item1 = ToEmail.CheckedItems[i].Value;
                ToName.Text += ',' + item1;
                ema = ToEmail.CheckedItems[i].Value;
                foreach (RadListBoxItem item2 in ToEmailCC.Items)
                {
                    if (ToEmailCC.Items[i].Value == ema)
                    {
                        item2.Enabled = false;
                    }
                }
                i++;
            }
        }

Thanks & Advance,
Ansari

Tamim
Top achievements
Rank 1
 answered on 13 Apr 2013
4 answers
217 views
What I want is to show/hide the Insert button by permission of user. 

Can I do that?

Thanks,
Bill
wg
Top achievements
Rank 1
 answered on 13 Apr 2013
0 answers
105 views
I have been operating on the assumption that all I had to do create a RadAlert from server side was to call RadWindowManager1.RadAlert("Message", 500, 200, "Another Message", "");

This has worked fine on several complex pages in my project.  
I've also created a bare minimal test page and it's worked perfectly there as well.
All the pages have much the same settings and controls (RadScriptManager, RadWindowManager, etc.)

I have this other page with an identical call within a Radbutton click event.  When I do it from there I get a 
Script controls may not be registered before PreRender crash.

There is nothing particularly exotic about this page. It's just another postback event.  

What could possibly be going wrong?

Sorry.  Found it.  Bad call to unrelated controls in the Prerender.
Boris
Top achievements
Rank 1
 asked on 12 Apr 2013
0 answers
86 views
Sorry. Cancel this post.  Wrong assumptions.
Boris
Top achievements
Rank 1
 asked on 12 Apr 2013
1 answer
99 views
I'm using a radGrid in a user control. The user control has a client-side API (so it can be used more than once on the same page). Due to this, I cannot specify a client-side OnGridCreated event handler declaratively, since the same function would be called for multiple occurrences of the grid. In my client-side component's initialize event the grid does not exist yet, so I cannot attach handlers there, but if I go for the pageLoad event, the grid has already been created, and the gridCreated event fired, so it's too late to attach to it. Any suggestions on how/when I can attach this event successfully?
Jeanne
Top achievements
Rank 1
 answered on 12 Apr 2013
14 answers
429 views
Why is it that the whole RadMultiPage control has to be updated on postbacks? This seems horribly inefficient to me and such a waste of resources. Why is it that a single PageView within a RadMultiPage can't be set as an updated control within a RadAjaxManager? The only way it works is if I set the entire RadMultiPage as an updated control in my RadAjaxManager settings. This seems like such a waste. I have several PageViews which contain RadComboBox controls and those RadComboBox controls contain hundreds of items each. I'd like to load them from the database once up-front and have them just persist in ViewState on the client so that the Google Suggest-like filtering (i.e. MarkFirstMatch=true) will work super fast since it's all on the client. But, since you have the whole RadMultiPage control going back and forth the wire every single time there is an AJAX postback, the postbacks are very bloated. This means that I am basically being forced into using the server-side load-on-demand mechanism and doing a database pull each and every time the user starts to type in the comboboxes and return only the relevant results to the combobox. I'm OK with this, but I'd rather load the comboboxes once up-front and only have single PageViews updated when postbacks/callbacks occur. Please explain why this is so and what all my options are. Thank you. BTW, I do love your products...I'm just frustrated by this one limitation. It just looks what you are doing is applying class="rmpHiddenView" to hide the pageviews that are not currently being viewed.
Keith
Top achievements
Rank 2
 answered on 12 Apr 2013
2 answers
100 views
Hi,
I Have a page with a RadUpload control taht is working fine.

Now I would like to add a progress bar to show about the process that I'm doing with the information loaded from the uploaded file.

I'm receiving this message when I tried to just replicate the same code from the demo on that page:
RadUpload Ajax callback error. Source url returned error: 400
Bad Request
http://localhost:19562//Telerik.RadUploadProgressHandler.ashx?RadUrid=297095f2-2e7d-4479-94c3-cf10b923cd46


The error is here: "...19562//Telerik..." If i remove the second slash and put it manually on the address bar it's working fine.

How can I fix it? Any help will be very appreciated.

thanks!
Leandro
Top achievements
Rank 1
 answered on 12 Apr 2013
2 answers
87 views
Hi,

I have a grid and some user roles.

I would like to do the following,

when a user would like to edit the gridrow open a popup edit form but some of the controls set disabled or invisible based on the user role.

What is the best solution with telerik controls  for this?

Thanks.
Csaba
Top achievements
Rank 1
 answered on 12 Apr 2013
3 answers
307 views
Hello, I have several radcombobox controls in my aspx/c# web application.

- The radcombobox has the "Checkbox" parameter set to "true"
- the control is populated from codebehind on page load
- the control is held within RadAjaxPanel and ASP UpdatePanel

scenario: When i 'check' an item from the radcombobox, it shows the loading image and fires the OnSelectedIndexChanged event from code behind as supposed to. But when everything is completed, radcombobox on my page shows that no item has been selected... weird thing is when i select the same item from the same radcombox "again", it shows my selection properly.

So to sum it up, I have to select the item 'twice' for it to work right.

Am i doing something wrong? I just want the item to 'stay' selected from the first try without having to select it again.

ASPX:

<telerik:RadAjaxPanel ID="ProductsRadAjaxP" runat="server" LoadingPanelID="RadAjaxLoadingPanel1" RequestQueueSize="50">
    <asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Conditional" runat="server">
        <ContentTemplate>
             <table width="100%">
              <tr>
                <td>
                  <asp:Label ID="lbl_Country" runat="server" Text="Country: " />
                 </td>
                 <td>
                  <telerik:RadComboBox ID="cmb_Country" runat="server" Height="200" Width="160" EmptyMessage="Choose Country" MarkFirstMatch="true" EnableLoadOnDemand="true" AutoPostBack="true" CheckBoxes="true" EnableCheckAllItemsCheckBox="true" Filter="Contains" OnSelectedIndexChanged="cmb_Country_SelectedIndexChanged">
                  </telerik:RadComboBox>
                 </td>
                </tr>
                <tr>
                 <td>
                    <asp:Label ID="lbl_Casa" runat="server" Text="Casa: " />
                 </td>
                 <td>
                  <telerik:RadComboBox ID="cmb_Casa" runat="server" Height="200" Width="160" EmptyMessage="Choose Casa" MarkFirstMatch="true" EnableLoadOnDemand="true" AutoPostBack="true" CheckBoxes="true" EnableCheckAllItemsCheckBox="true" Filter="Contains" OnSelectedIndexChanged="cmb_Casa_SelectedIndexChanged">
                                                </telerik:RadComboBox>
                 </td>
             </tr>
                  <!-- there are alot more controls, but all with the same parameter -->
         </table>
        </ContentTemplate>
    </asp:UpdatePanel>
 <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Transparency="1" Skin="Metro">
 </telerik:RadAjaxLoadingPanel>

C#:

    protected void cmb_Country_SelectedIndexChanged(object sender, EventArgs e)
    {
        //I have a long process and SQL procedures... this is just an example of how i'm filling the control
        cmb_Casa.DataSource = DataHelper.GetCasa(cmb_Country.CheckedItems[0].Value);
           cmb_Casa.DataBind();
    }
.
.
.
.


Nencho
Telerik team
 answered on 12 Apr 2013
4 answers
748 views
Hello Everyone,

I am using export to pdf feature in one of my grid.
Now my problem is data is overlapped in two columns while export to pdf file.

I had faced similar behavior while displaying rad grid and corrected by using following property
<MasterTableView TableLayout="Auto">
<ClientSettings>
      <Resizing ClipCellContentOnResize="false">
</ClientSettings>
</MasterTableView>

So my data overlap into 2 columns each other is resolved but similar issue i am facing while export same content to pdf

Seems rad grid not reading columns properties while exporting.

So any one have idea how to resolve it?

Regards,

Dharmesh

Kostadin
Telerik team
 answered on 12 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?