Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
131 views

Hi,

I would like to do have the almost the same functionality as This.  

 

But both of my Dialog.aspx and Calling Page (i.e. Default.aspx) uses Radgrid Edit Templates (i.e. MasterTableView EditMode="EditForms"). The data source from both pages are not the same. The value’s I would like to pass from Dialog.aspx are:  1) An Edit Template Text value and 2)  A RadGrid Dataitem calculated sum column (from footer).

 


Is it possible to pass these from Dialog.apsx into Default.aspx form’s  regular asp TextBox or RadText Box  (for #1) or Rad Numeric Text Box (for #2) ?  I am using RadControls for ASP.NET AJAX Q2 2010, Vstudio 2008 SP1.

 


Thanks

GC_0620

Georgi Tunev
Telerik team
 answered on 04 Aug 2010
3 answers
145 views
Hello.

I am using the LoadOnDemand feature for a RadTabStrip control.  Each PageView within the tabs contains a custom user control that encapsulates logic specific to the PageView.  When user presses the Save button that's inside on of the custom user controls it is supposed to change the enable/disable state of aout half the tabs within the tabstrip.

In the Page_PreRender event is where the enable/disable behaviors for the tabs are being changed.  However, when the page is rendered, the tabs have not changed.

How do I get the tabs enable/disable state to change using the LoadOnDemand model?  Do I have to handle it client-side?  If so, that could be tricky as the logic that's determining enable/disable state is a bit complex.

Thanks,
RezRaider
Yana
Telerik team
 answered on 04 Aug 2010
1 answer
164 views
Hi!! ppl , i have a javascript function that opens a wad window in which i am opening a new page which contains a RadGrid . On the Grid item Select i need to close the opened window with two parameters , just like the given below  from the Code behined.

<script type=\"text/javascript\">window.frameElement.commonModalDialogClose(1, '{0}');</script>
   (commonModalDialogClose does not work with radopen.... is it so)
 My Javascript function is given below :

 

 

function ShowSearchCustomerDialog() {

 

 

 

 

var wnd = radopen('/_layouts/G.Ga.SharePoint/SC.aspx');

 

 

 

var width = 800;

 

 

 

var height = 600;

 

 

 

var left = parseInt((screen.availWidth / 2) - (width / 2));

 

 

 

var top = parseInt((screen.availHeight / 2) - (height / 2));

 

wnd.setSize(width,height);

wnd.MoveTo(left,top);

 

 

}

Calling at :

 

<

 

 

div class="blok-head">

 

 

 

<h3 style="float:left;">

 

 

 

<asp:Label ID="businesspartnerLabel" runat="server" />

 

 

 

</h3>

 

 

 

<asp:PlaceHolder ID="selectCustomerPanel" runat="server">

 

 

 

<a class="select-customer" href="javascript:ShowSearchCustomerDialog();" title="Select customer">Select customer</a>

 

 

 

</asp:PlaceHolder>

 

 

 

</div>

 

Georgi Tunev
Telerik team
 answered on 04 Aug 2010
9 answers
266 views
I am  using a RadGrid and have its EditMode set to "Popup".  Within EditFormSettings.FormTemplate, I have the following control declared:

<

 

telerik:RadDatePicker ID="txtEffectiveDate" runat="server" Width="150px" SelectedDate='<%# Bind("EffectiveDate") %>'></telerik:RadDatePicker>

 


The bound property, "EffectiveDate", is of nullable type DateTime?

The grid is supporting Add and Edit mode.  When I edit an object whose EffectiveDate value is null, I don't have any issue.  However, when I go to Add a new item, I get the following issue:

Specified cast is not valid.

Any thoughts?

Thanks much!

Aaron
Pavlina
Telerik team
 answered on 04 Aug 2010
1 answer
127 views
I must be doing something wrong, but in a test application i can't get aany ocurrences out of a recurrencerule produced by the recurrenceeditor.

Screen shots attached.

John
T. Tsonev
Telerik team
 answered on 04 Aug 2010
1 answer
259 views
How to set the sort icon in Grid???
Shinu
Top achievements
Rank 2
 answered on 04 Aug 2010
1 answer
156 views
Hi,

I am having alignment issue with my raddatepicker controls. I have a user control that opens in a radwindow. I place two raddatepickers for my start date and end date. these two raddatepicker controls are placed side by side.
When I view my control in IE8 the two raddatepickers are placed side by side. But when I try to view the control in Firefox or Chrome or Safari my raddatepicker controls are rendering one below the other.

Any help would be appreciated.


Thanks
Praveena
Radoslav
Telerik team
 answered on 04 Aug 2010
1 answer
128 views
Usually when we click on a contextMenu item, it's supposed  disappear... It would be great I could make it close :-)
Here some piece of code, is there anything I can do in the eventHandler to force it to close the contextMenu ?

function keywordTreeviewMenuClicking(sender, eventArgs) {
    var menuItem = eventArgs.get_menuItem();
    action = menuItem.get_value();
    node = eventArgs.get_node(); 
    switch (action) {
        case "Add":
            KeywordManager.AddKeyword(node);
            break;
        case "Delete":
            KeywordManager.DeleteNode(node);
            break;
        case "Edit":
            KeywordManager.EditNode(node);
            break;
        case "ChangeCategory":
            KeywordManager.ChangeCategory(node); 
            break;
    }
    return true;
}
Peter Ryckaert
Top achievements
Rank 1
 answered on 04 Aug 2010
2 answers
161 views

 

Here some piece of code... Where I load through javascript and my own webservice call a treeview. In my collection of objects, I know
how many children I have for each item. If obj.Children > 0 I would like to show the Expand Icon. I don't see in the documentation how I can do that, the expand thing is only shown if I seed the expand mode WebService, but in this case it complains no WebService is configured... So it would be cool if I could find a solution.

 

if (obj.Children > 0) {

 

    node.set_expandToSOMETHING
}

 

 

var tree = $find(this.treeviewId);
var parentNode = null;
if (parentId != 0) {
    parentNode = tree.findNodeByValue(parentId);
}
for (var x = 0; x < result.Result.length; x++) {
    var obj = result.Result[x];
    var node = new Telerik.Web.UI.RadTreeNode();
    node.set_text(obj.Display);
    node.set_value(obj.KeywordId);
    node.set_expandMode(Telerik.Web.UI.TreeNodeExpandMode.ClientSide);
    if (obj.Children > 0) {
        node.set_expandMode(Telerik.Web.UI.TreeNodeExpandMode.ClientSide);
    }
    if (parentId != 0) {
        parentNode.get_nodes().add(node);
    } else {
        if (obj.ParentKeywordId == 0) {
            tree.get_nodes().add(node);
        } else {
            var parentNode = tree.findNodeByValue(obj.ParentKeywordId);
            parentNode.get_nodes().add(node);
        }
    }
}
tree.commitChanges();
if (parentId != 0) {
    parentNode.set_expanded();
}
Peter Ryckaert
Top achievements
Rank 1
 answered on 04 Aug 2010
3 answers
127 views
Hi,

I have 2 multiselect listboxes in my webpage. when the selected index of first listbox is changed, it updates the second listbox. there are only 10 items in first listbox and 45 items in second listbox when all the 10 items in first listbox are selected. Autopostback for first listbox is set to true and selectedindexchanged event has code to update the second listbox from database. For some reason, this process is very-2 slow, even if I select only one item in first, it takes around 15-16 seconds to load second listbox. I have a RadGrid in the page which is loaded when a button is clicked. I have separate RadAjaxManager setting for button update and listbox update. Can you please suggest how can I make the listbox load faster or what should I check to solve this problem? I also noticed that most of the pages are faster without AJAX. I have gone through the document on Telerik about how to make AJAX faster and have implemenetd the ASP Scriptmanager setting to be in release mode and also debug=false web config setting.

Thanks.
Pavlina
Telerik team
 answered on 04 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?