Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
92 views
Trying to figure out how to use aggregate functions in the footer, but also at the same time having a text of my own choice as well, like "Total sum: XXXX". It seems like there is no way I can combine having a correct formating of XXXX, like {0:N} and having a FooterText, is this right? If I set the DataFormatString, anything in FooterText is ignored, if I clear it, FooterText is displayed but in default format (which seem to be no format). 

How should one do to have both FooterText and control over formating?
improwise
Top achievements
Rank 1
Iron
Iron
 answered on 29 Sep 2011
2 answers
119 views
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Cannot use multiple field editors with the same FieldName.

could any body explain me when this type error occurs.
michelle
Top achievements
Rank 1
 answered on 29 Sep 2011
3 answers
291 views
Hi

I am using a combo box where the user can enter custom text. I have set the auto postback property to true.

I would like the combo box to function such that it only posts back when the user changes the selection from the drop down list and not when they enter custom text.

Please can you tell me how to achieve this

Many thanks
TRACI
Top achievements
Rank 1
 answered on 29 Sep 2011
2 answers
231 views
Hi,

I am wondering is there possible to know when a row in a Grid has been selected. The grid doesn't seem to have a server-side event for that and I tried onRowSelected (in the the clientSettings), but it seem that the event is call before the row is selected (in fact, this event call a js function that simply call RadAjaxManager1.ajaxRequest. In the ajaxRequest, I get the selectedItem with the method SelectedItems of my grid, but this method return the old selected item). May anyone help please ?

Thank you  
David
Top achievements
Rank 1
 answered on 29 Sep 2011
2 answers
1.9K+ views
Hello,

I have a Radgrid  in which I want to add a button as an item template ..I have to add it programatically as I have to check for certain conditions..so it won't go for all the grid rows...and then when this button is clikced I want to get data about the row in which this button was pressed.Can someone please tell me how I can achieve this...Let me know if i need to explain more.

Thanks
JD
Top achievements
Rank 1
 answered on 29 Sep 2011
2 answers
92 views
If you take a look at your online demo:
http://demos.telerik.com/aspnet-ajax/scheduler/examples/webservice/defaultcs.aspx

When doing an edit, you can change the subject to be multiline (ie type a few items hit enter type a few more hit enter and then save)
When doing the same action in Insert mode, you are restricted to one line. This is rather odd, but it gets stranger.

When you open an appointment in insert mode (double click a time slot), then click options. Now the Subject and description are visible. If you type in the subject, it does not work in multiline, which may be desired, but the description should be multiline, and it isn't. If you type in the description, and hit enter the caret skips to the background into the original popup (pre hitting options) and you can then type in the grayed out area of the background.

So my problem is similar to this in that I'm using the scheduler and webservices, when inserting, and I hit enter anywhere on the insert form (inside a multiline textbox for example) the form posts back, losing all data on it. When in edit mode the form behaves as it should, and just adds another line the textbox. I have not been able to intercept the enter key either, though any client side script on the insert, but during edit the form behaves as I would expect. My problem that the multiline text boxes do not function on the insert form, but do on the edit form.

I'm using FF 4.0.1 and Telerik Scheduler ver 2011, 1, 531, 40

Thanks
Jonathan
Jonathan
Top achievements
Rank 1
 answered on 29 Sep 2011
1 answer
69 views
Hi,

I've ran into a peculiar issue where a radgrid will loose its onscroll event in chrome (will not page). This happens when the grid is initially wrapped in a div with display="none". After a post back I convert that div into a jquery dialog. If the grid was visible before the postback (div was set to display="block") it will open up and initialize correctly in the jquery dialog, if it was not visible before the post back it will not initialize correctly and will not page when you scroll to the bottom of its page.

Basically it seems like the grid refuses to initialize in chrome when not visible. This works in FF and IE without any issues.

Does anybody have any ideas?

Thanks!
Rafal

edit1: you actually do not need to open it in a jquery dialog. Performing and asynchronous post back to load information and then making it visible will show the issue
Rafal
Top achievements
Rank 1
 answered on 29 Sep 2011
1 answer
121 views
I have a RadToolBar with 2 buttons, [Save] and [Reload]. The toolbar is associated with a RanPanelBar populated with dynamically created RadGrids full of editable items.

Automatic PostBack is enabled on both buttons. The desired behavior is this:

-[Save] button pressed: the RadPanelBar is not updated (otherwise the dynamically created RadGrids disappear!), but a message (text of a Label) indicating the success or failure of the save operation is displayed

-[Reload] button pressed: the RadPanelBar is updated from the database, with all of the RadGrids re-created - this takes a while, which is why I don't want to just reload the grids in [Save].


To do this, I need to assign different a different "AjaxUpdatedControl" for each toolbar button. This doesn't seem to be working... Here's the ASPX code for 3 controls on my page (1TabStrip and 2 ToolBars - duplicates, one for top of Panel, one for bottom of Panel):

<telerik:RadTabStrip ID="rtsSiteData" runat="server"
    MultiPageID="rmpSiteDataPage" SelectedIndex="0" Skin="Web20">
    <Tabs>
        <telerik:RadTab runat="server" Text="Capabilities" Selected="True">
        </telerik:RadTab>
        <telerik:RadTab runat="server" Text="Local Initiatives">
        </telerik:RadTab>
    </Tabs>
</telerik:RadTabStrip>
 
...
 
<telerik:RadToolBar ID="rtbTop" Runat="server" Skin="Office2007"
    Width="100%" AutoPostBack="True" onbuttonclick="rtbTop_ButtonClick">
    <Items>
        <telerik:RadToolBarButton runat="server" Text="Save">
        </telerik:RadToolBarButton>
        <telerik:RadToolBarButton runat="server" Text="Reload">
        </telerik:RadToolBarButton>
    </Items>
</telerik:RadToolBar>
 
...
 
<telerik:RadToolBar ID="rtbBottom" Runat="server" Skin="Office2007"
    Width="100%" AutoPostBack="True" onbuttonclick="rtbBottom_ButtonClick">
    <Items>
        <telerik:RadToolBarButton runat="server" Text="Save" Owner="rtbBottom">
        </telerik:RadToolBarButton>
        <telerik:RadToolBarButton runat="server" Text="Reload" Owner="rtbBottom">
        </telerik:RadToolBarButton>
    </Items>
</telerik:RadToolBar>


When I go to configure the RadAjaxManager, the controls look like this in the AJAX requests window:

rtsSiteData
-i0
-i1

rtbTop
-i0
-i1

rtbBottom
-i0
-i1

If I try and select one button (e.g. i0 of rtbTop), it tries to assign the AjaxUpdatedControls picked to every control with a "i0" entry... this is bad enough, but the AJAX update doesn't seem to occur if I don't select the base control (like the ToolBar itself). The manager ASPX code looks like this:

<telerik:RadAjaxManager runat="server" UpdatePanelsRenderMode="Inline">
        <AjaxSettings>             
            <telerik:AjaxSetting AjaxControlID="i0">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="lblSaveMsg" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="i1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="CategoriesPanelBar" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
</telerik:RadAjaxManager>


Now this worked fine when I was using two separate RadButtons for the [Save] and [Reload] (they had unique IDs in the AJAX manager config), however the RadToolBar looks much nicer, and I'd like to use that.

I've tried adding a ID="XXX" and CommandName="XXX" to the buttons to give them unique ID's in the AJAX manager config, but it doesn't appear to work.

Am I doing something wrong, or can I not get the functionality I want with ToolBar buttons? It seems like you should be able to assign different controls to update based on which ToolBar button is pressed, but I just can't get it to work.


Thanks,
-Adam
Adam
Top achievements
Rank 1
 answered on 29 Sep 2011
0 answers
30 views
Hi,

I am adding the Radeditor dynamically in my application. I am setting the properties from code for the Editor. I am adding some Images to the editor and reducing the Height, Width (Crop). After doing this I am saving the content to the database in BLOB field.

What ever I reduced the size of the image its not updated when I am saving the content of the Radeditor. I want to save the actual size of the image in the database.

Please help me to get fix this.

Thanks in advance.
Babu R
Babu Raghu
Top achievements
Rank 1
 asked on 29 Sep 2011
0 answers
50 views
I need apply localization for Columns in radGrid and for all labels in EditFormSetting.
How i can do this?


EditFormSettings

   <EditFormSettings InsertCaption="Add new User" CaptionFormatString="Edit User: <b>{0}</b>"
                CaptionDataField="FirstName" EditFormType="Template" PopUpSettings-Modal="true"
                PopUpSettings-Height="400px" PopUpSettings-Width="85%" >
                <FormTemplate>
                    <asp:Table runat="server" CssClass ="EditFormTable" >
                       
                        <asp:TableRow>
                            <asp:TableCell  CssClass="CellLabelL"><asp:label runat="server" ID="lblFirstName" /></asp:TableCell>
                     
Thanksç



I FOUND THS SOLUTION... SORRY...


the solution is:


For Fields in EditFormSetting

 protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
      {
        if (_recources == null || _culture == null)
          _culture = System.Web.HttpContext.Current.Session["culture"] == null ? "en-US" : System.Web.HttpContext.Current.Session["culture"].ToString();
        _recources = new ResourceManager("WebSearch.UI.Admin.Resources.UserManagement", Assembly.GetExecutingAssembly());


        if (e.Item is GridEditFormItem && e.Item.IsInEditMode)
        {
          ((Label)e.Item.FindControl("lblFirstName")).Text = _recources.GetString("lblFirstName", new CultureInfo(_culture));
        }
}

For Columns
   this.RadGrid1.MasterTableView.GetColumnSafe("FirstName").HeaderText = _recources.GetString("lblFirstName", new CultureInfo(_culture));
      

July
Top achievements
Rank 2
 asked on 29 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?