This is a migrated thread and some comments may be shown as answers.

[RadInputManager/C#] Questions regarding inputmanager

1 Answer 53 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michiel Peeters
Top achievements
Rank 1
Michiel Peeters asked on 22 Sep 2010, 12:35 PM
Dear Telerik Community,

Currently i am developing an web application in VS2010 with the controls of Q1 2010 release. In this application my workflow must be handled clientside. I have already posted a few threads with different approaches but haven't heard nothing on it yet. I post the links in the end of this message. Like the title states, i have a few questions about the radinputmanager. I have searched around the internet for a solution what i need.

I did he following at the moment. I have created an usercontrol where dynamicly fields are loaded with the corresponding settings. These settings are set in the code behind and are attached to the radinputmanager. These settings work and the radinputmanager gives the message when something wrong happened with a textbox for example. Only at this moment my problem rises. The problem is everything must be executed clientside. The following code snippit will explain a little bit better what i am trying to ask.

<div id="intakeObjectDynamic" class="css_div_datacontrol_content">
    <div class="css_div_datacontrol_data">
        <telerik:RadInputManager ID="rimIntakeObjects" runat="server">
            <telerik:RegExpTextBoxSetting BehaviorID="veNumericInput" ValidationExpression="[0-9]{1,}" Validation-IsRequired="true">
                <TargetControls>
                    <telerik:TargetInput ControlID="tbServiceId" Enabled="True" />
                </TargetControls>
            </telerik:RegExpTextBoxSetting>
        </telerik:RadInputManager>
 
        <asp:Panel ID="pIntake" runat="server">
            <asp:Table ID="tblIntake" runat="server">
                <asp:TableRow>
                    <asp:TableCell CssClass="css_data_tbl_col_lbl_cell">
                        <asp:Label ID="lblServiceId" runat="server" Text="ServiceID"></asp:Label>
                    </asp:TableCell>
                    <asp:TableCell CssClass="css_data_tbl_col_value_cell">
                        <asp:TextBox ID="tbServiceId" runat="server"></asp:TextBox>
                    </asp:TableCell>
                </asp:TableRow>
            </asp:Table>
 
            <DFC:dynFC ID="dynFC" runat="server" />
        </asp:Panel>
    </div>
</div>

This code snippit loads up my dynamic fields etc.

// Intakes the object
function IntakeObject() {
    var rangeId = $("input[id *= 'hfRangeId']").attr("value");
    var projectId = $("input[id *= 'hfProjectId']").attr("value");
    var objectTypeId = $("input[id *= 'hfObjectTypeId']").attr("value");
    var serviceId = $("input[id *= 'tbServiceId']").attr("value");
 
    var objectValues = new Object();
 
    $("input[id *= 'dynamicFieldControl']").each(function () {
        // hack that dropdowncontrols will not be listed, but its true value is listed
        if ($(this).attr("ID").indexOf("ClientState") < 1) {
            var fieldId = $(this).attr("ID").split("-")[1];
 
            if (fieldId.indexOf("_") > 0)
                fieldId = fieldId.split("_")[0];
 
            var value = $(this).attr("value");
 
            objectValues[fieldId] = value;
        }
    })
 
    IntakeObject(rangeId, projectId, objectTypeId, serviceId, objectValues, SuccessMethod, FailureMethod, null);
}

This code snippit will be executed when the object needs to be saved. The validation check needs to be implemented in this code snippit. Something like this:

if (radinputmanager.failedvalidations < 1)
   intake object
else
   give an result of failed validations (or something like that)

This is what i am trying to achieve but havent found any solution for it yet. So thats why i ask it here and hopefully can someone help me further.

I have tried already something like this:

            var radInputManager = $find("<%=radInputManager.ClientID%>");
            radInputManager.get_InputSettings()


but where do i need to go on or am i thinking wrong?

Previous threads:
http://www.telerik.com/community/forums/aspnet-ajax/general-discussions/radinputmanager-c-property-total-validations-failed.aspx

Kind regards,
Michiel Peeters

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 27 Sep 2010, 09:27 AM
Hello Michiel Peeters,

I have noticed that my colleague Maria have already answered to the other forum thread that you have opened on the same topic. To avoid duplicate posts I would suggest that you continue your communication there.

Regards,
Martin
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Michiel Peeters
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or