Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
96 views
Hello,

Is it possible to drag and drop rows within the RadGrid, a sort of reordering records?  I was trying the JQuery sortable plugin (with custom persistence) but the issue is I have a detail child table involved.

Thanks.
Princy
Top achievements
Rank 2
 answered on 07 Jan 2011
1 answer
67 views
I have a radgrid ( summary below )

 <telerik:RadGrid ID="rgrdAandE" runat="server" AutoGenerateColumns="false"  AllowPaging="true" AllowSorting="true" >
       <MasterTableView DataKeyNames="Hospital_No">
        <Columns>
           ......
         </Columns>
       </MasterTableView>
       <PagerStyle Mode="NumericPages" Position="Bottom" />
  </telerik:RadGrid>
   
I want to add a button or drop down so that the user can change the pagesize and then it automatically refreshes the grid. This is to allow for more rows to be shown on large monitors rather than a fixed page size.

Can anyone help
Thanks
Princy
Top achievements
Rank 2
 answered on 07 Jan 2011
2 answers
90 views
Hi,

I have a problem with collapsing the filter row.  I have set the filter item row visibility to hidden as well as to collapsed. The filter item gets hidden but the containing row still exists. Could help me out with this?


Thanks and Regards,
Niraj Khose
Niraj
Top achievements
Rank 1
 answered on 07 Jan 2011
0 answers
68 views
We can control the number of files that the Upload control can upload at anyone time. However, when we retrieve a record that previously had files associated to it, how do we check for the balance? For example if I saved a record as draft and call it back later, how do I ensure that only 3 more files can be uploaded, this is assuming we only allow 5 files maximum to be uploaded for a record.

Regards

Effendi
Top achievements
Rank 1
 asked on 07 Jan 2011
5 answers
174 views

 

If I specify viewpaths, uploadpaths, deletepaths, and SearchPatterns properties in the ASPX file, then the control works, i.e., the SearchPatterns are applied and I can upload files.

If I specify viewpaths, uploadpaths, deletepaths, and SearchPatterns properties in my code behind, then I have the following problems:

 

  1. upload is not enabled;
  2. delete button is not enabled; and
  3. SearchPatterns are not applied.

I use version 2010.1.309.35.

ASPX:

    <telerik:RadFileExplorer runat="server" ID="explorer" EnableViewState="true" Width="700px" Height="480px"  > 
    <Configuration ViewPaths="~/Content/1/" UploadPaths="~/Content/1/" DeletePaths="~/Content/1/" MaxUploadFileSize="8000000" SearchPatterns="*.png" /> 
    </telerik:RadFileExplorer> 
 

 

 


C#:
string[] paths = new string[] { "~/Content/2/""~/Content/1/"};  
 
explorer.Configuration.MaxUploadFileSize = 1024 * 1024 * 8; // 8Mb  
explorer.Configuration.SearchPatterns = new string[] { "*.png""*.jpg""*.gif" };  
explorer.Configuration.ViewPaths = paths;  
explorer.Configuration.UploadPaths = paths;  
explorer.Configuration.DeletePaths = paths; 

Neil
Top achievements
Rank 1
 answered on 06 Jan 2011
1 answer
79 views
I'm sure I'm missing something simple and apologize in advance.

I have a basic aspx page with the following form:

<form id="form1" runat="server">
  <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
  </telerik:RadScriptManager>
  <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
      <telerik:AjaxSetting AjaxControlID="RadAjaxPanel1">
        <UpdatedControls>
          <telerik:AjaxUpdatedControl ControlID="lblInfo" />
        </UpdatedControls>
      </telerik:AjaxSetting>
    </AjaxSettings>
  </telerik:RadAjaxManager>
  <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server"
                                                 Height="200px" Width="300px">
    <uc1:GameSelector ID="GameSelector1" runat="server" />
    <asp:Label ID="lblInfo" runat="server" Text="Info" />
  </telerik:RadAjaxPanel>
</form>


What's supposed to happen is that the user selects an game in a RadComboBox in the GameSelector user control, and for this exercise I just want to pass back some text about what was selected.

To get the lblInfo to change, I have the following in codebehind:
protected void Page_Load( object sender , EventArgs e )
{
    GameSelector1.GameChanged +=
        
new GameChangedEventHandler(GameSelector1_GameChanged);
}
void GameSelector1_GameChanged( object sender , GameEventArgs a )
{
    lblInfo.Text = a.Game.ID + " " + a.Game.Name;
}

So the label is on the panel with the user control containing the combobox. The combobox does execute the GameChanged event and lblInfo is changed in code, but the browser does not  reflect a change.

The user control has a RadAjaxManagerProxy. The proxy sets a panel in that control to trigger its own update (is that necessary?).  Inside the panel is the combobox.  The combobox fires a change back to the server as it should.

I'm guessing that what's happening is that the usercontrol is not firing a trigger, it's the panel in the user control that triggers a postback. The combobox passes the selectionchanged event through GameChanged as seen above, but the aspx page isn't updated because nothing on that page itself triggered the event.  That's just a theory.  Given that, I would  have assumed that the manager proxy on the user control should have been linked to the manager on the aspx, and that would have triggered an update of the label.  So again, I'm guessing (not too strong on this) that maybe is just a timing issue with the ASP.NET life cycle, where the event handler above is executed after the manager updates the label..

So how do I properly wire the main page so that a control will be updated when events are fired on user controls?  Can the proxy be set to trigger an update in the upline manager?

Thanks!


TonyG
Top achievements
Rank 1
 answered on 06 Jan 2011
0 answers
88 views
I have a rad grid with a clientSidedelete column. The client side delete works fine, but I get an javascript error on the first time I postback if a row had been deleted.
error: control is null in code below
function ValidatorGetValue(id) {
    var control;
    control = document.getElementById(id);
    if (typeof(control.value) == "string") {
        return control.value;
    }
    return ValidatorGetValueRecursive(control);

<telerik:RadGrid ID="rgIntervalSetup" Width="100%" ShowStatusBar="True" AllowSorting="True"
                                PageSize="365" GridLines="None" BorderWidth="1px" BorderStyle="Solid" BorderColor="Gainsboro"
                                AllowPaging="false" runat="server" AutoGenerateColumns="False" MasterTableView-NoMasterRecordsText=""
                                Skin="Default">
                                <MasterTableView TableLayout="Fixed" DataKeyNames="RecordID" AllowPaging="false"
                                    PageSize="365" ClientDataKeyNames="RecordID" AllowAutomaticDeletes="True">
                               
                                    <Columns>
                                        <telerik:GridClientDeleteColumn ItemStyle-Width="16px" ConfirmText="Are you sure you want to delete this interval?" HeaderStyle-Width="15px" ButtonType="ImageButton" ImageUrl="/RMSImages/Session/delete.gif"></telerik:GridClientDeleteColumn>
                                        <telerik:GridBoundColumn UniqueName="RecordID" DataField="RecordID" Visible="false">
                                        </telerik:GridBoundColumn>

What do I need to handle after the client side deletes have taken place in order to save off the data in the grid?



1/7/2011: I see the problem here, the submit button was causing validation, which was throwing the error.
Richard Boarman
Top achievements
Rank 1
 asked on 06 Jan 2011
0 answers
79 views
I am seeing 2 issues:

1) I have a combobox in a RadPanelItem that is setup to update the page with Ajax. When i set the different panelitems to Expanded = true or false they do not reflect the change.

2) I tried to set the RadPanelBar as part of the Ajax and it clears the contents of all the RadPanelItems

<telerik:AjaxSetting AjaxControlID="countyRadComboBox">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="countyInfoRadPanelBar" LoadingPanelID="taxTabAjaxLoadingPanel" />
            </UpdatedControls>
        </telerik:AjaxSetting>


Manually expanding and collapsing works fine. Expanding and collapsing when i first load the page works fine.

It acts like because the page doesn't do a full postback the panels will not expand/collapse.

It is in a RadAjaxPanel and still not working as expected.
Wagon
Top achievements
Rank 1
 asked on 06 Jan 2011
2 answers
127 views
How do I transform
var day = args.get_renderDay().get_date(); 

to be "MMMM dd, yyyy"?
Brown
Top achievements
Rank 1
 answered on 06 Jan 2011
0 answers
131 views
Hi Team,

I have one project use RadMenu ajax Q2,  Webservices rended in itemstemplate and item (template modes). The normal way using webservices is use skins and default radMenuItems. How to manage webservices rended in a templated Radmenuitem (itemtemplate and item). Thanks.

normal way : rended in sking and default mode
<telerik:RadMenuItem Text="MostPopular" Value="1" ExpandMode="WebService">
</telerik:RadMenuItem>

templated way?
<telerik:RadMenuItem Text="MostPopular" Value="1" ExpandMode="WebService">
                            <Items>
                                <telerik:RadMenuItem CssClass="" >
                                    <ItemTemplate>
                                        <a href="#"><span class="mp-logo"></span>
                                        <span class="item-title"></span></a>
                                     </ItemTemplate>
                                </telerik:RadMenuItem>
                            </Items>   
                        </telerik:RadMenuItem>

Added :
Vaselin Enchev/Atanas Korchev have suggest use templates and ajax4 implementation like this samples similary to jquery templates method. I have tested. Can suggest the best way to implement in RadMenu using Q2 ?

Regards
Pierre
Top achievements
Rank 1
 asked on 06 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?