Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
104 views
is that posible to set a background for a cell?
For example 1st Jan, if i want to set a background for it, how can i do that?
Iry Lee
Top achievements
Rank 2
 answered on 19 Mar 2010
2 answers
285 views
Hi everyone...

Consider my code below: 

<telerik:RadWindow ID="radwdwAddressDetails" runat="server" Modal="true" Behaviors="None" 
    OpenerElementID="<%# btnShowAddressDetails.ClientID %>" Width="350px" DestroyOnClose="false"
    <ContentTemplate> 
        <asp:Panel ID="pnlAddressDetails" runat="server" CssClass="popup-outer"
            <uc:AddressDetails ID="ucAddressDetails" runat="server" /> 
            <div class="popup-body popup-buttons" style="margin-top: 5px;"
                <asp:Button ID="btnOKAddressDetails" runat="server" Text="+ Add" CssClass="button green" 
                    CausesValidation="true" OnClick="btnOKAddressDetails_Click" /> 
                <asp:Button ID="btnCancelAddressDetails" runat="server" Text="Cancel" CssClass="button red" 
                    CausesValidation="false" /> 
            </div> 
        </asp:Panel> 
    </ContentTemplate> 
</telerik:RadWindow> 

This code is part of another user control. The form hosting these controls wraps them in a RadUpdatePanel.

Currently, clicking on btnOKAddressDetails causes a full post pack refreshing the entire page which is not desirable (as it is inside the update panel). I would like it to do an asynchronous post back in this regard.

Any ideas?

Paul Butler
Top achievements
Rank 1
 answered on 19 Mar 2010
1 answer
94 views
I am using xmlhttppanel with a grid and mouseover events. if the user quickly mouses over a bunch of items, it queues up the requests, and performs them one at a time.  I'd like to be able to cancel all current requests, that have already been made through panel.set_value
Pero
Telerik team
 answered on 19 Mar 2010
3 answers
277 views
I need to hide some input cols when the value changes in a a dropdownlist in edit mode.  I added a SelectedIndexChanged event in the Item_Created for the dropdownlist.   The event fires when I change the dropdown but then it leaves edit mode.   I think the issue is I have to set the autopostBack to true on the list, but if I don't set it to true it won't fire when I change the value in the list.  

Is there another way to implement this?

 

protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)

 

{

 

if (e.Item is GridEditableItem && e.Item.IsInEditMode && e.Item.OwnerTableView.Name == "DeviceDetail")

 

{

 

//the dropdown list will be the first control in the Controls collection of the corresponding cell

 

 

 

 

 

 

DropDownList list = (e.Item as GridEditableItem)["DeviceTypeDropDown"].Controls[0] as DropDownList;

 

 

list.AutoPostBack =

true;

 

list.SelectedIndexChanged +=

new EventHandler(DeviceTypeIndex_Changed);

 

}

 

void

 

 DeviceTypeIndex_Changed(Object sender, EventArgs e)

 

{

 

    DropDownList list = sender as DropDownList;

 

 

    GridEditableItem editedItem = (sender as DropDownList).NamingContainer as GridEditableItem;

 

 

    if (((DropDownList)sender).SelectedItem.Text == "Device1")

 

    {

        editedItem[

"isDeviceAdjacent"].Controls[0].Visible = true;

 

    }

 

    else

 

 

 

    {

 

        editedItem[

"isDeviceAdjacent"].Controls[0].Visible = false;

 

    }

}

Sebastian
Telerik team
 answered on 19 Mar 2010
1 answer
180 views
Hi,
i have a radgrid which has 1 checkbox inside.
It work fine if i edit or delete the record in the radgrid but error come out when i want to add data in the radgrid

Below is my coding
 
<ajax:GridTemplateColumn  UniqueName="GCStatus" Headertext="Active" SortExpression ="Active"
                    <ItemTemplate > 
                         <asp:CheckBox runat="server" ID ="chkActive" Checked='<%# DataBinder.Eval(Container.DataItem, "Active") %>'  Enabled =false />     
                    </ItemTemplate> 
                    <EditItemTemplate > 
                     
                        <asp:CheckBox runat="server" ID ="chkActive" Checked='<%# DataBinder.Eval(Container.DataItem,   "Active" ) %>'  /> 
                     
                    </EditItemTemplate> 
                </ajax:GridTemplateColumn> 



The error is as below
Conversion from type 'DBNull' to type 'Boolean' is not valid.

Does anyone has idea on how to eliminate this error?




Shinu
Top achievements
Rank 2
 answered on 19 Mar 2010
11 answers
221 views
Hi,

it's possible to change image's default to RadWindow when a page is loading?

Thank.

Alessio.
Georgi Tunev
Telerik team
 answered on 19 Mar 2010
7 answers
241 views
Is anyone else running into this?

If I create a Dock in HTML, the Expand/Collapse command icon changes as expected.
However, if I create a Dock in Code-Behind, the Expand/Collapse command icon does not change.
I get the same result if I set a custom icon with CssClass and AlternateCssClass.
I'm hoping I'm just missing something...

Also, as a secondary question, the Expand/Collapse Command doesn't seem to want to postback to the server even if I set it's AutoPostback to true.  I have a specific need for this, but it refuses to fire.  (Again, this seems to happen on a dock created in codebehind.)

Telerik... If I'm missing something, if you can supply a quicky sample app demostrating the expand/collapse working properly when created from code-behind... all the better!

Thanks, Kuba
Pero
Telerik team
 answered on 19 Mar 2010
1 answer
138 views
Hi,

Exporting data from a grid can sometimes be very long.

Taking this example : http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/exporting/defaultcs.aspx

When you have a lots more data, nothing warns the user that something is in process. I was thinking showing the loadingpanel over the grid on button click and hide it when the export process is done.

Showing the loadingpanel over the grid on export click :

function onRequestStart(sender, args) { 
                if (args.get_eventTarget().indexOf("ExportToExcelButton") >= 0 || 
                    args.get_eventTarget().indexOf("ExportToWordButton") >= 0) { 
                     var currentLoadingPanel = $find("<%= RadAjaxLoadingPanel1.ClientID %>"); 
                    currentLoadingPanel.show("<%= RadGrid1.ClientID %>"); 
 
                    args.set_enableAjax(false); 
                } 
            } 

However I can'tcatch a event to hide the loadingpanel once the export process is finished (when the user is prompted to dl or open the file).

I've already tried :

- the pageLoaded event of the ASP.NET AJAX framework :
ScriptManager.RegisterStartupScript(Me.Page, Me.Page.GetType, "P_hide", "Sys.WebForms.PageRequestManager.getInstance().add_pageLoaded(pageLoaded);", True)

function pageLoaded(sender, args) {
                var currentLoadingPanel = $find("<%= RadAjaxLoadingPanel1.ClientID %>");
                currentLoadingPanel.hide("<%= RadGrid1.ClientID %>");
            }


- the export button's OnClick server :
RadAjaxManager1.ResponseScripts.Add(...)

Thank You



Daniel
Telerik team
 answered on 19 Mar 2010
2 answers
156 views
Hi All,

I am using the RAD scheduler control on my website with version number Q3 2009.
I found 1 bug in the same version listed above, that after opening one datepicker(calendar), the other calendar popup does not work. This is also replicable on your example code that gets downloaded after installing the telerik controls.
Dont know what is the problem but I need a urgent workaround for it. I have spent around a day to resolve it but to no success.
Please suggest a solution  for it urgently.

Thanks in advance,
Yuvika.
T. Tsonev
Telerik team
 answered on 19 Mar 2010
1 answer
154 views
I would like to know how can I upload image with specific width and height.
My main purpose is to use the image as an thumbnail. So if the user is uploading image of any size it should come up as 97 X 97 (width X ht) image only.

Can we achieve this with RAD controls.
For more info I am using Sitefinity CMS.
Veselin Vasilev
Telerik team
 answered on 19 Mar 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?