Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
123 views
I'm using RadGrid, but I'm customizing all your controls (such as paging, sorting, filtering), to make your lower load on the database, paging and sorting are already working perfectly, and I am implementing the filter, the more I realize that for there is no filter that allows a property to tell the grid that it requires no filter because the filter has been done on the data source, in my case in the dao layer.
My filter layer Dao already working as it should have over the need for custom filters in order to command characters in the filter, for example: "!ca" would equal the filter RadGrid DoesNotContain doing custom filter "ca" . More as I do this type of filter in the filter Dao is perfectly done deal because this character, the more it seems to me the Grid does its internal filter DataSource again I sent you, so does a filter! "ca" where column in datasouce already filtered so as not to bring these characters, showing no line in my filter. There is need because the company's legacy system already use such commands in the filter.


I think my problem can be solved easily if there is a way to not allow the Grid to do your internal filter after I give you back the data is already filtered.


I look forward to an answer.


Thank you for your attention.


Fernando.
Maria Ilieva
Telerik team
 answered on 30 Jul 2012
3 answers
129 views
I've followed the KB article to create a stand alone image manager which allows my users to select an existing image, or upload a new one. Now I need to restrict the images being uploaded to a specific height and width. I've found a couple threads on how to accomplish that with an image manager inside a radEditor. But I can't seem to translate the steps to work for a stand alone Image manager. Any help would be greatly appreciated!
Rumen
Telerik team
 answered on 30 Jul 2012
4 answers
86 views
I am using RadNumericTextBox with SpinButtons in my project but when i browse my project in Internet Explorer-7, SpinButton are render in Textbox  (But other IE version (8 and 9)  rendering is perfect)  
  So please help me -

Thank you--
Manindra
Maria Ilieva
Telerik team
 answered on 30 Jul 2012
1 answer
87 views

 

 

 

I have a grid with many pages (allowpaging = true) and I want onprerender

 

that some items will be selected = true

I have this code :

protected void Grid_MailingList_PreRender(object sender, EventArgs e)

    {

      foreach (GridDataItem item in Grid_MailingList.Items)

                {

                 string person = SessionMng.MessagesListData.Tables[0].Rows[i++]["iPersonId"].ToString();

                    DataView dv = new DataView(SessionMng.SavedMessage.Tables[1], "iPersonId= '" + person + "'", "", DataViewRowState.CurrentRows);

                    if (dv.ToTable().Rows.Count > 0)

                        item.Selected = true;

                }

            }

        }

    }

 

but it work only in the first page of the grid.

how can I pass on all of the pages at the grid ?

Princy
Top achievements
Rank 2
 answered on 30 Jul 2012
1 answer
90 views
Hi,

I have a grid, with popup form template. On initial use, I am able to extract the template values (textbox input). But on succeeding input, the value of the textbox (txtName) is always empty even if i change the textbox values.  Below is my code:

<

 

 

telerik:RadGrid ID="RadGrid1" AutoGenerateEditColumn="false" runat="server"

 

 

 

AllowAutomaticDeletes="False" AllowAutomaticInserts="False" AllowAutomaticUpdates="False"

 

 

 

AllowPaging="True" AllowSorting="true" OnItemCommand="gridRequestList_ItemCommand" >

 

 

 

 

<MasterTableView EditMode="PopUp" CommandItemDisplay="Top" AutoGenerateColumns="false"

 

 

 

AllowAutomaticInserts="false" AllowAutomaticUpdates="false" >

 

 

 

<Columns>

 

columns here

 

 

</Columns>

 

 

 

 

<EditFormSettings InsertCaption="Setup Info" EditFormType="Template">

 

 

 

<FormTemplate> code here </FormTemplate>

 

 

 

</EditFormSettings>

 

 

 

</MasterTableView>

 

 

 

</telerik:RadGrid>

 



protected

 

 

void grid_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)

 

{

 

 

if (e.CommandName.Equals(RadGrid.PerformInsertCommandName))

 

{

 

 

    string txtName = ((TextBox)e.Item.FindControl("txtName")).Text;

 

}

}

Thanks.
tj

Shinu
Top achievements
Rank 2
 answered on 30 Jul 2012
1 answer
117 views
hi telerik team,

my code:

                    <telerik:RadScheduler runat="server" ID="rsOrders" Localization-AdvancedEditAppointment="Reserve Slot"
                        Height="400px" StartInsertingInAdvancedForm="true" OnFormCreated="rsOrders_FormCreated"
                        DataSourceID="odsOrders" DataKeyField="bookingID" SelectedView="MonthView" DataStartField="start_date"
                        DataEndField="end_date" DataSubjectField="available_status" OnClientAppointmentInserting="updatePostbackFlag"
                        OnClientAppointment="updatePostbackFlag" OnClientAppointmentDeleting="updatePostbackFlag">
                        <AdvancedForm Modal="true" />
                        <ResourceTypes>
                            <telerik:ResourceType DataSourceID="odsCustomers" TextField="harbor_name" KeyField="harbor_code"
                                ForeignKeyField="harbor_code" Name="Harbor" />
                        </ResourceTypes>
                    </telerik:RadScheduler>

i wan't to add some textboxes to the insert appointment form.

thanx & regards
Isuru
Princy
Top achievements
Rank 2
 answered on 30 Jul 2012
5 answers
342 views
I have an aspx page with a button which is disabled.
How to enable the button,only when it is poping up as a RadWindow from a parent page?
Soumya
Top achievements
Rank 1
 answered on 30 Jul 2012
8 answers
406 views
Hi,

I'm attempting to apply a specific class in CSS to a RadTextBox control (specifically, this is being set in javascript using the .className property). This works great, but whenever I hover over the textbox, the background colour changes back to white, and stays that way, even if I don't click into it, and just move the mouse off it.

I'm using this as the class:

html  body  form  .RadInput .missingMandatoryField /*RadTextBox Implementation*/
    { background-color: #F6CBCA }

What do I need to do to get this to apply to the HoverStyle too (I assume that is the culprit).

Specifically, my javascript function must apply to multiple types of control (both telerik, and basic html), so I'd rather not have masses of telerik specific code if possible. If it isn't possible, then I'd settle for a method of determining if it is a telerik control in the javascript.

function fnOnUpdateValidators() {
            for (var i = 0; i < Page_Validators.length; i++) {
                var val = Page_Validators[i];
                var ctrl = document.getElementById(val.controltovalidate);
                if (ctrl != null) {
                    //Remove the existing Class Data.
                    ctrl.className = ctrl.className.replace("missingMandatoryField", "");
                    ctrl.className = ctrl.className.replace(" mandatoryField", "");
 
                    if (!val.isvalid)
                        ctrl.className += " missingMandatoryField";
                    else
                        ctrl.className += " mandatoryField";
                }
            }
        }

Thanks
Fergal
Fergal
Top achievements
Rank 1
 answered on 30 Jul 2012
3 answers
307 views
Hello,

I am using a RadListBox with Checkboxes="true." I was wondering if it is possible to skin the checkboxes to the same skin as the listbox. I have a RadFormDecorator on the page which styles the regular asp checkboxes but the ones in the listbox remain un-styled. Currently using Q2 2011.

Thanks
Ivan Zhekov
Telerik team
 answered on 30 Jul 2012
1 answer
86 views
Hello,

Below is my Code. I am triggering lblerrormessage from Code behind, if there is any error. If not I am not showing that and redirecting the page.

It is throwing me Ajax error, if there is no error in page while redirecting. I think it is looking to update lblerrormessage everytime. What I have to do ?

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" UpdatePanelsRenderMode="Inline">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="btnReject1">
                <UpdatedControls>
                   <telerik:AjaxUpdatedControl ControlID="lblErrorMessage" />
                                   
                </UpdatedControls>
            </telerik:AjaxSetting>
         </AjaxSettings>
       </telerik:RadAjaxManager>
Kostadin
Telerik team
 answered on 30 Jul 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?