Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
114 views
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
Martin
Telerik team
 answered on 27 Sep 2010
3 answers
325 views
Team,

Am Binding DataTable as a Datasource for Radgrid.

My need is I want to merge the Radgrid Column Headers as shown in the table below....

pls. reply its urgent...I want to merge Odd or even Columns and have to apply formatting also...


2007 2007 2008 2008 2009 2009
Payroll Payroll Tax Payroll Payroll Tax Payroll Payroll Tax
0.831479219 0.878480961 0.125905661 0.582711154 0.666182555 0.003437293
0.692284719 0.924671836 0.348159038 0.16631018 0.125653848 0.547001853
0.248446244 0.528673182 0.677024774 0.018750403 0.355728003 0.748506612
0.355725838 0.025139254 0.640793399 0.779381424 0.291280161 0.590636076
0.503992823 0.423174681 0.581413565 0.524508673 0.036539204 0.976846173

Thanks.
India.
Pavlina
Telerik team
 answered on 27 Sep 2010
1 answer
81 views
Hi,
I am using telerik rad grid in web page with update panel and updae progress.
I also implemented pagination and it works finely.
But i got stuck when Filteration is not working.
I did following things
allowFilteringbycolumn = "true" in rad grid and master table view.
but i didn't working so far.
I didn't change any of the event of rad grid like need data source etc.
Please help!!!
I have to do it by tomorrow.!!!

Thanks in advance.
Pu
Pavlina
Telerik team
 answered on 27 Sep 2010
1 answer
85 views
Hi,
I am using telerik rad grid in web page with update panel and updae progress.
I also implemented pagination and it works finely.
But i got stuck when Filteration is not working.
I did following things
allowFilteringbycolumn = "true" in rad grid and master table view.
but i didn't working so far.
I didn't change any of the event of rad grid like need data source etc.
Please help!!!
I have to do it by tomorrow.!!!

Thanks in advance.
Pu
Pavlina
Telerik team
 answered on 27 Sep 2010
3 answers
85 views
In rad calendar i bind data and click on date open rad window
but when i auto postback =true then rad window in not open
Tsvetina
Telerik team
 answered on 27 Sep 2010
1 answer
155 views
I have a RadGrid that has an expand/collapse column. I have put the RadGrid in a UserControl and then placed the UserControl inside a RadWindow ContextTemplate. The TaskGrid control's expand/collapse works correctly when included in another page, but when it is embedded within the RadWindow they don't work. Nothing happens when I click on it. Any ideas?

Thanks,

Anne Chinn

 

<telerik:RadWindow ID="AssignTasksWnd" runat="server" ShowContentDuringLoad="true" Width="800px"

 

 

Height="600px" Title="Assign Tasks To Students" Behaviors="Close" OnClientClose="refreshGrid">

 

 

<ContentTemplate>

 

 

    <uc:TaskGrid ID="TaskGrid1" runat="server" Visible="true" />

 

 

</ContentTemplate>

 

 

</telerik:RadWindow>


Here's the TaskGrid control

 

<

 

telerik:RadGrid runat="Server" ID="TaskGrid" GridLines="Both" Height="100%"

 

 

 

 

 

BorderWidth="1" ShowGroupPanel="true"

 

 

 

 

 

AllowSorting="true" AllowPaging="false" AllowFilteringByColumn="true"

 

 

 

 

 

ShowHeader="true"

 

 

ClientEvents-OnRowClick="onGridRowClicked"

 

 

 

 

 

ClientSettings-Selecting-AllowRowSelect="true"

 

 

 

 

 

AllowMultiRowSelection="true"

 

 

 

 

 

OnUpdateCommand="TaskGrid_UpdateCommand"

 

 

 

 

 

OnDeleteCommand="TaskGrid_DeleteCommand"

 

 

 

 

 

OnInsertCommand="TaskGrid_InsertCommand"

 

 

 

 

 

OnNeedDataSource="TaskGrid_NeedDataSource"

 

 

OnItemDataBound="TaskGrid_ItemDataBound">

 

 

 

 

 

<ClientSettings AllowDragToGroup="True">

 

 

 

 

 

<Selecting AllowRowSelect="True" />

 

 

</ClientSettings>

 

 

 

 

 

<GroupingSettings ShowUnGroupButton="true" />

 

 

<MasterTableView AutoGenerateColumns="False"

 

 

 

 

 

CommandItemDisplay="Top"

 

 

 

 

 

NoMasterRecordsText="No tasks found."

 

 

ClientDataKeyNames="ReadingTaskID, EntityCode, CreatedBy">

 

 

 

 

 

<CommandItemSettings AddNewRecordText="Add New Task" />

 

 

 

 

 

<ExpandCollapseColumn Visible="True" >

 

 

 

 

 

</ExpandCollapseColumn>

 

 

 

 

 

<Columns>

 

 

 

 

 

<telerik:GridClientSelectColumn HeaderText="Select" UniqueName="Select" Groupable="false"/>

 

 

 

 

 

<telerik:GridEditCommandColumn UniqueName="EditCommand" />

 

 

 

 

 

<telerik:GridBoundColumn Groupable="true" DataField="EntityName" HeaderText="Owner" ItemStyle-Wrap="false"

 

 

 

 

 

SortExpression="EntityName" UniqueName="EntityName" />

 

 

 

 

 

<telerik:GridBoundColumn Groupable="true" DataField="ReadingTaskType" HeaderText="Type"

 

 

SortExpression="ReadingTaskType" UniqueName="ReadingTaskType" ItemStyle-Wrap="false" />

 

 

 

 

 

<telerik:GridBoundColumn Groupable="false" DataField="ShortName" HeaderText="ShortName"

 

 

SortExpression="ShortName" UniqueName="ShortName" />

 

 

 

 

 

<telerik:GridBoundColumn Groupable="false" DataField="Title" HeaderText="Title"

 

 

SortExpression="Title" UniqueName="Title" />

 

 

 

 

 

<telerik:GridButtonColumn CommandName="Delete" Text="Delete"

 

 

 

 

 

UniqueName= "DeleteCommand" ConfirmText="Are you sure you want to delete this record?" ConfirmTitle="Delete record confirmation" />

 

 

 

 

 

</Columns>

 

 

 

 

 

<EditFormSettings EditFormType="Template" >

 

 

 

 

 

<EditColumn UniqueName="EditCommandColumn1">

 

 

 

 

 

</EditColumn>

 

 

 

 

 

<FormTemplate>

 

 

 

 

 

<table ID="Table2" border="0" cellpadding="0" cellspacing="2" width="100%">

 

 

 

 

 

<tr>

 

 

 

 

 

<td>

 

 

 

 

 

<table ID="Table3" cellpadding="5" cellspacing="1" width="100%">

 

 

 

 

 

<tr>

 

 

 

 

 

<td colspan="2">

 

 

 

 

 

<b><asp:Label ID="EditTaskTitle" runat="server" Text="Edit Task" /></b>

 

 

 

 

 

</td>

 

 

 

 

 

</tr>

 

 

 

 

 

<tr>

 

 

 

 

 

<td nowrap>

 

 

 

 

Short Name:

</td>

 

 

 

 

 

<td>

 

 

 

 

 

<asp:TextBox ID="ShortName" runat="server" MaxLength="20" />&nbsp;

 

 

 

 

 

<asp:RequiredFieldValidator ID="RFV_ShortName" runat="server" ControlToValidate="ShortName" Display="Dynamic" EnableClientScript="true" ErrorMessage="*Required" />

 

 

 

 

 

</td>

 

 

 

 

 

</tr>

 

 

 

 

 

<tr>

 

 

 

 

 

<td nowrap>

 

 

 

 

Title and Author of Text:

</td>

 

 

 

 

 

<td>

 

 

 

 

 

<asp:TextBox ID="TaskTitle" runat="server" Width="600px" />&nbsp;

 

 

 

 

 

<asp:RequiredFieldValidator ID="RFV_TaskTitle" runat="server" ControlToValidate="TaskTitle" Display="Dynamic" EnableClientScript="true" ErrorMessage="*Required" />

 

 

 

 

 

</td>

 

 

 

 

 

</tr>

 

 

 

 

 

<tr>

 

 

 

 

 

<td nowrap>

 

 

 

 

Task Type:

</td>

 

 

 

 

 

<td>

 

 

 

 

 

<asp:DropDownList ID="TaskType" runat="server" OnSelectedIndexChanged="OnChangeTaskType" AutoPostBack="true">

 

 

 

 

 

<asp:ListItem Text="Literary" Value="1" />

 

 

 

 

 

<asp:ListItem Text="Informational" Value="2" />

 

 

 

 

 

</asp:DropDownList>

 

 

 

 

 

</td>

 

 

 

 

 

</tr>

 

 

 

 

 

<tr>

 

 

 

 

 

<td colspan="2">

 

 

 

 

 

<asp:Panel ID="Edit_LiteraryTextPanel" runat="server" Visible="true">

 

 

 

 

 

<table cellpadding="2" cellspacing="0" class="General" width="100%">

 

 

 

 

 

<tr>

 

 

 

 

 

<td class="DefaultHeaderCell">

 

 

 

 

Active

</td>

 

 

 

 

 

<td class="DefaultHeaderCell">

 

 

 

 

Strand

</td>

 

 

 

 

 

<td class="DefaultHeaderCell">

 

 

 

 

Target

</td>

 

 

 

 

 

<td class="DefaultHeaderCell" width="100%">

 

 

 

 

Question

</td>

 

 

 

 

 

</tr>

 

 

 

 

 

<tr>

 

 

 

 

 

<td align="center" class="DefaultGridCell" valign="top">

 

 

 

 

 

<asp:CheckBox ID="Lit_Active1" runat="server" AutoPostBack="true"

 

 

OnCheckedChanged="OnChangeLCActiveCB" />

 

 

 

 

 

</td>

 

 

 

 

 

<td class="DefaultGridCell" nowrap valign="top">

 

 

 

 

LC (Literary Comprehension)

</td>

 

 

 

 

 

<td class="DefaultGridCell" valign="top">

 

 

 

 

 

<asp:DropDownList ID="Lit_Target1" runat="server">

 

 

 

 

 

<asp:ListItem Text="Select" Value="0" />

 

 

 

 

 

<asp:ListItem Text="LC01" Value="1" />

 

 

 

 

 

<asp:ListItem Text="LC02" Value="2" />

 

 

 

 

 

<asp:ListItem Text="LC03" Value="3" />

 

 

 

 

 

<asp:ListItem Text="LC04" Value="4" />

 

 

 

 

 

</asp:DropDownList>

 

 

 

 

 

<asp:CompareValidator ID="RFV_Lit_Target1"

 

 

ControlToValidate="Lit_Target1"

 

 

 

 

 

Operator="notEqual"

 

 

 

 

 

ValueToCompare="0"

 

 

 

 

 

ErrorMessage="*Required"

 

 

 

 

 

Enabled="false"

 

 

 

 

 

runat="server"

 

 

 

 

 

/>

 

 

</td>

 

 

 

 

 

<td class="DefaultGridCell" valign="top">

 

 

 

 

 

<asp:TextBox ID="Lit_Prompt1" runat="server" Rows="4" TextMode="MultiLine" Width="99%" />

 

 

 

 

 

<asp:RequiredFieldValidator ID="RFV_Lit_Prompt1" runat="server" Enabled="false" ControlToValidate="Lit_Prompt1" Display="Dynamic" EnableClientScript="true" ErrorMessage="*Required" />

 

 

 

 

 

</td>

 

 

 

 

 

</tr>

 

 

 

 

 

<tr>

 

 

 

 

 

<td align="center" class="DefaultGridCell" valign="top">

 

 

 

 

 

<asp:CheckBox ID="Lit_Active2" runat="server" AutoPostBack="true"

 

 

OnCheckedChanged="OnChangeLAActiveCB" />

 

 

 

 

 

</td>

 

 

 

 

 

<td class="DefaultGridCell" nowrap valign="top">

 

 

 

 

LA (Literary Analysis)

</td>

 

 

 

 

 

<td class="DefaultGridCell" valign="top">

 

 

 

 

 

<asp:DropDownList ID="Lit_Target2" runat="server">

 

 

 

 

 

<asp:ListItem Text="Select" Value="0" />

 

 

 

 

 

<asp:ListItem Text="LA05" Value="5" />

 

 

 

 

 

<asp:ListItem Text="LA06" Value="6" />

 

 

 

 

 

<asp:ListItem Text="LA07" Value="7" />

 

 

 

 

 

</asp:DropDownList>

 

 

 

 

 

<asp:CompareValidator ID="RFV_Lit_Target2"

 

 

ControlToValidate="Lit_Target2"

 

 

 

 

 

Operator="notEqual"

 

 

 

 

 

ValueToCompare="0"

 

 

 

 

 

ErrorMessage="*Required"

 

 

 

 

 

Enabled="false"

 

 

 

 

 

runat="server"

 

 

 

 

 

/>

 

 

</td>

 

 

 

 

 

<td class="DefaultGridCell" valign="top">

 

 

 

 

 

<asp:TextBox ID="Lit_Prompt2" runat="server" Rows="4" TextMode="MultiLine" Width="99%" />

 

 

 

 

 

<asp:RequiredFieldValidator ID="RFV_Lit_Prompt2" runat="server" Enabled="false" ControlToValidate="Lit_Prompt2" Display="Dynamic" EnableClientScript="true" ErrorMessage="*Required" />

 

 

 

 

 

</td>

 

 

 

 

 

</tr>

 

 

 

 

 

<tr>

 

 

 

 

 

<td align="center" class="DefaultGridCell" valign="top">

 

 

 

 

 

<asp:CheckBox ID="Lit_Active3" runat="server" AutoPostBack="true"

 

 

OnCheckedChanged="OnChangeLTActiveCB" />

 

 

 

 

 

</td>

 

 

 

 

 

<td class="DefaultGridCell" nowrap valign="top">

 

 

 

 

LT - (Literary Thinking Critically)

</td>

 

 

 

 

 

<td class="DefaultGridCell" valign="top">

 

 

 

 

 

<asp:DropDownList ID="Lit_Target3" runat="server">

 

 

 

 

 

<asp:ListItem Text="Select" Value="0" />

 

 

 

 

 

<asp:ListItem Text="LT08" Value="8" />

 

 

 

 

 

<asp:ListItem Text="LT09" Value="9" />

 

 

 

 

 

<asp:ListItem Text="LT10" Value="10" />

 

 

 

 

 

</asp:DropDownList>

 

 

 

 

 

<asp:CompareValidator ID="RFV_Lit_Target3"

 

 

ControlToValidate="Lit_Target3"

 

 

 

 

 

Operator="notEqual"

 

 

 

 

 

ValueToCompare="0"

 

 

 

 

 

ErrorMessage="*Required"

 

 

 

 

 

Enabled="false"

 

 

 

 

 

runat="server"

 

 

 

 

 

/>

 

 

</td>

 

 

 

 

 

<td class="DefaultGridCell" valign="top">

 

 

 

 

 

<asp:TextBox ID="Lit_Prompt3" runat="server" Rows="4" TextMode="MultiLine" Width="99%" />

 

 

 

 

 

<asp:RequiredFieldValidator ID="RFV_Lit_Prompt3" runat="server" Enabled="false" ControlToValidate="Lit_Prompt3" Display="Dynamic" EnableClientScript="true" ErrorMessage="*Required" />

 

 

 

 

 

</td>

 

 

 

 

 

</tr>

 

 

 

 

 

</table>

 

 

 

 

 

<br />

 

 

 

 

 

</asp:Panel>

 

 

 

 

 

<asp:Panel ID="Edit_InfoTextPanel" runat="server" Visible="true">

 

 

 

 

 

<table cellpadding="2" cellspacing="0" class="General" width="100%">

 

 

 

 

 

<tr>

 

 

 

 

 

<td class="DefaultHeaderCell">

 

 

 

 

Active

</td>

 

 

 

 

 

<td class="DefaultHeaderCell">

 

 

 

 

Strand

</td>

 

 

 

 

 

<td class="DefaultHeaderCell">

 

 

 

 

Target

</td>

 

 

 

 

 

<td class="DefaultHeaderCell" width="100%">

 

 

 

 

Question

</td>

 

 

 

 

 

</tr>

 

 

 

 

 

<tr>

 

 

 

 

 

<td align="center" class="DefaultGridCell" valign="top">

 

 

 

 

 

<asp:CheckBox ID="Info_Active1" runat="server" AutoPostBack="true"

 

 

OnCheckedChanged="OnChangeICActiveCB" />

 

 

 

 

 

</td>

 

 

 

 

 

<td class="DefaultGridCell" nowrap valign="top">

 

 

 

 

IC (Informational Comprehension)

</td>

 

 

 

 

 

<td class="DefaultGridCell" valign="top">

 

 

 

 

 

<asp:DropDownList ID="Info_Target1" runat="server">

 

 

 

 

 

<asp:ListItem Text="Select" Value="0" />

 

 

 

 

 

<asp:ListItem Text="IC11" Value="11" />

 

 

 

 

 

<asp:ListItem Text="IC12" Value="12" />

 

 

 

 

 

<asp:ListItem Text="IC13" Value="13" />

 

 

 

 

 

<asp:ListItem Text="IC14" Value="14" />

 

 

 

 

 

</asp:DropDownList>

 

 

 

 

 

<asp:CompareValidator ID="RFV_Info_Target1"

 

 

ControlToValidate="Info_Target1"

 

 

 

 

 

Operator="notEqual"

 

 

 

 

 

ValueToCompare="0"

 

 

 

 

 

ErrorMessage="*Required"

 

 

 

 

 

Enabled="false"

 

 

 

 

 

runat="server"

 

 

 

 

 

/>

 

 

 

 

 

</td>

 

 

 

 

 

<td class="DefaultGridCell" valign="top">

 

 

 

 

 

<asp:TextBox ID="Info_Prompt1" runat="server" Rows="4" TextMode="MultiLine"

 

 

Width="99%" />

 

 

 

 

 

<asp:RequiredFieldValidator ID="RFV_Info_Prompt1" runat="server" Enabled="false" ControlToValidate="Info_Prompt1" Display="Dynamic" EnableClientScript="true" ErrorMessage="*Required" />

 

 

 

 

 

</td>

 

 

 

 

 

</tr>

 

 

 

 

 

<tr>

 

 

 

 

 

<td align="center" class="DefaultGridCell" valign="top">

 

 

 

 

 

<asp:CheckBox ID="Info_Active2" runat="server" AutoPostBack="true"

 

 

OnCheckedChanged="OnChangeIAActiveCB" />

 

 

 

 

 

</td>

 

 

 

 

 

<td class="DefaultGridCell" nowrap valign="top">

 

 

 

 

IA (Informational Analysis)

</td>

 

 

 

 

 

<td class="DefaultGridCell" valign="top">

 

 

 

 

 

<asp:DropDownList ID="Info_Target2" runat="server">

 

 

 

 

 

<asp:ListItem Text="Select" Value="0" />

 

 

 

 

 

<asp:ListItem Text="IA15" Value="15" />

 

 

 

 

 

<asp:ListItem Text="IA16" Value="16" />

 

 

 

 

 

<asp:ListItem Text="IA17" Value="17" />

 

 

 

 

 

</asp:DropDownList>

 

 

 

 

 

<asp:CompareValidator ID="RFV_Info_Target2"

 

 

ControlToValidate="Info_Target2"

 

 

 

 

 

Operator="notEqual"

 

 

 

 

 

ValueToCompare="0"

 

 

 

 

 

ErrorMessage="*Required"

 

 

 

 

 

Enabled="false"

 

 

 

 

 

runat="server"

 

 

 

 

 

/>

 

 

 

 

 

</td>

 

 

 

 

 

<td class="DefaultGridCell" valign="top">

 

 

 

 

 

<asp:TextBox ID="Info_Prompt2" runat="server" Rows="4" TextMode="MultiLine"

 

 

Width="99%" />

 

 

 

 

 

<asp:RequiredFieldValidator ID="RFV_Info_Prompt2" runat="server" Enabled="false" ControlToValidate="Info_Prompt2" Display="Dynamic" EnableClientScript="true" ErrorMessage="*Required" />

 

 

 

 

 

</td>

 

 

 

 

 

</tr>

 

 

 

 

 

<tr>

 

 

 

 

 

<td align="center" class="DefaultGridCell" valign="top">

 

 

 

 

 

<asp:CheckBox ID="Info_Active3" runat="server" AutoPostBack="true"

 

 

OnCheckedChanged="OnChangeITActiveCB" />

 

 

 

 

 

</td>

 

 

 

 

 

<td class="DefaultGridCell" nowrap valign="top">

 

 

 

 

IT - (Informational Thinking Critically)

</td>

 

 

 

 

 

<td class="DefaultGridCell" valign="top">

 

 

 

 

 

<asp:DropDownList ID="Info_Target3" runat="server">

 

 

 

 

 

<asp:ListItem Text="Select" Value="0" />

 

 

 

 

 

<asp:ListItem Text="IT18" Value="18" />

 

 

 

 

 

<asp:ListItem Text="IT19" Value="19" />

 

 

 

 

 

<asp:ListItem Text="IT20" Value="20" />

 

 

 

 

 

</asp:DropDownList>

 

 

 

 

 

<asp:CompareValidator ID="RFV_Info_Target3"

 

 

ControlToValidate="Info_Target3"

 

 

 

 

 

Operator="notEqual"

 

 

 

 

 

ValueToCompare="0"

 

 

 

 

 

ErrorMessage="*Required"

 

 

 

 

 

Enabled="false"

 

 

 

 

 

runat="server"

 

 

 

 

 

/>

 

 

 

 

 

</td>

 

 

 

 

 

<td class="DefaultGridCell" valign="top">

 

 

 

 

 

<asp:TextBox ID="Info_Prompt3" runat="server" Rows="4" TextMode="MultiLine"

 

 

Width="99%" />

 

 

 

 

 

<asp:RequiredFieldValidator ID="RFV_Info_Prompt3" runat="server" Enabled="false" ControlToValidate="Info_Prompt3" Display="Dynamic" EnableClientScript="true" ErrorMessage="*Required" />

 

 

 

 

 

</td>

 

 

 

 

 

</tr>

 

 

 

 

 

</table>

 

 

 

 

 

<br></br>

 

 

 

 

 

</asp:Panel>

 

 

 

 

 

</td>

 

 

 

 

 

</tr>

 

 

 

 

 

</table>

 

 

 

 

 

</td>

 

 

 

 

 

</tr>

 

 

 

 

 

<tr>

 

 

 

 

 

<td align="right">

 

 

 

 

 

<asp:Button ID="btnUpdate" runat="server"

 

 

CommandName='<%# ((bool)DataBinder.Eval(Container, "OwnerTableView.IsItemInserted")) ? "PerformInsert" : "Update" %>'

 

 

 

 

 

Text='<%# ((bool)DataBinder.Eval(Container, "OwnerTableView.IsItemInserted")) ? "Insert" : "Update" %>' />

 

 

 

 

 

&nbsp;

 

 

 

 

 

<asp:Button ID="btnCancel" runat="server" CausesValidation="False"

 

 

CommandName="Cancel" Text="Cancel" />

 

 

 

 

 

</td>

 

 

 

 

 

</tr>

 

 

 

 

 

<tr>

 

 

 

 

 

<td>

 

 

 

 

 

<br />

 

 

 

 

 

</td>

 

 

 

 

 

</tr>

 

 

 

 

 

</table>

 

 

 

 

 

</FormTemplate>

 

 

 

 

 

</EditFormSettings>

 

 

 

 

 

<NestedViewTemplate>

 

 

 

 

 

<table ID="Table2" border="0" cellpadding="1" cellspacing="2" rules="none" width="100%">

 

 

 

 

 

<tr>

 

 

 

 

 

<td>

 

 

 

 

 

<table ID="Table3" cellpadding="5" cellspacing="1" width="100%">

 

 

 

 

 

<tr>

 

 

 

 

 

<td colspan="2"><b>Task Details</b></td>

 

 

 

 

 

</tr>

 

 

 

 

 

<tr>

 

 

 

 

 

<td nowrap>

 

 

 

 

Short Name:

</td>

 

 

 

 

 

<td>

 

 

 

 

 

<asp:Label ID="NVT_ShortName" runat="server" Text='<%# Bind( "ShortName" ) %>'

 

 

Width="600px" />

 

 

 

 

 

</td>

 

 

 

 

 

</tr>

 

 

 

 

 

<tr>

 

 

 

 

 

<td nowrap>

 

 

 

 

Title and Author of Text:

</td>

 

 

 

 

 

<td>

 

 

 

 

 

<asp:Label ID="NVT_Title" runat="server" Text='<%# Bind( "Title" ) %>'

 

 

Width="600px" />

 

 

 

 

 

</td>

 

 

 

 

 

</tr>

 

 

 

 

 

<tr>

 

 

 

 

 

<td nowrap>

 

 

 

 

Task Type:

</td>

 

 

 

 

 

<td>

 

 

 

 

 

<asp:Label ID="NVT_TaskType" runat="server"

 

 

Text='<%# Convert.ToString((COEStudentLib.ReadingTaskType)Convert.ToInt16(Eval("ReadingTaskTypeID" ))) %>' />

 

 

 

 

 

</td>

 

 

 

 

 

</tr>

 

 

 

 

 

<tr>

 

 

 

 

 

<td colspan="2">

 

 

 

 

 

<asp:Panel ID="NVT_LiteraryTextPanel" runat="server"

 

 

Visible='<%# (COEStudentLib.ReadingTaskType)Convert.ToInt16(Eval("ReadingTaskTypeID" ))==COEStudentLib.ReadingTaskType.Literary %>'>

 

 

 

 

 

<table cellpadding="2" cellspacing="0" class="General" width="100%">

 

 

 

 

 

<tr>

 

 

 

 

 

<td class="DefaultHeaderCell">

 

 

 

 

Active

</td>

 

 

 

 

 

<td class="DefaultHeaderCell">

 

 

 

 

Strand

</td>

 

 

 

 

 

<td class="DefaultHeaderCell">

 

 

 

 

Target

</td>

 

 

 

 

 

<td class="DefaultHeaderCell" width="100%">

 

 

 

 

Question

</td>

 

 

 

 

 

</tr>

 

 

 

 

 

<tr>

 

 

 

 

 

<td align="center" class="DefaultGridCell" valign="top">

 

 

 

 

 

<asp:CheckBox ID="LCActiveCB" runat="server" AutoPostBack="true"

 

 

Checked='<%#Convert.ToString(Eval("Prompt1")).Length > 0 %>' Enabled="false"

 

 

OnCheckedChanged="OnChangeLCActiveCB" />

 

 

 

 

 

</td>

 

 

 

 

 

<td class="DefaultGridCell" nowrap>

 

 

 

 

LC (Literary Comprehension)

</td>

 

 

 

 

 

<td class="DefaultGridCell">

 

 

 

 

 

<asp:Label ID="NVT_LCTarget" runat="server" Text='<%# Bind( "Target1" ) %>' />

 

 

 

 

 

</td>

 

 

 

 

 

<td class="DefaultGridCell">

 

 

 

 

 

<asp:Label ID="NVT_LCQuestion" runat="server" Text='<%# Bind( "Prompt1" ) %>' />

 

 

 

 

 

</td>

 

 

 

 

 

</tr>

 

 

 

 

 

<tr>

 

 

 

 

 

<td align="center" class="DefaultGridCell" valign="top">

 

 

 

 

 

<asp:CheckBox ID="LAActiveCB" runat="server" AutoPostBack="true"

 

 

Checked='<%#Convert.ToString(Eval("Prompt2")).Length > 0 %>' Enabled="false"

 

 

OnCheckedChanged="OnChangeLAActiveCB" />

 

 

 

 

 

</td>

 

 

 

 

 

<td class="DefaultGridCell" nowrap>

 

 

 

 

LA (Literary Analysis)

</td>

 

 

 

 

 

<td class="DefaultGridCell">

 

 

 

 

 

<asp:Label ID="NVT_LATarget" runat="server" Text='<%# Bind( "Target2" ) %>' />

 

 

 

 

 

</td>

 

 

 

 

 

<td class="DefaultGridCell">

 

 

 

 

 

<asp:Label ID="NVT_LAQuestion" runat="server" Text='<%# Bind( "Prompt2" ) %>' />

 

 

 

 

 

</td>

 

 

 

 

 

</tr>

 

 

 

 

 

<tr>

 

 

 

 

 

<td align="center" class="DefaultGridCell" valign="top">

 

 

 

 

 

<asp:CheckBox ID="LTActiveCB" runat="server" AutoPostBack="true"

 

 

Checked='<%#Convert.ToString(Eval("Prompt3")).Length > 0 %>' Enabled="false"

 

 

OnCheckedChanged="OnChangeLTActiveCB" />

 

 

 

 

 

</td>

 

 

 

 

 

<td class="DefaultGridCell" nowrap>

 

 

 

 

LT (Literary Thinking Critically)

</td>

 

 

 

 

 

<td class="DefaultGridCell">

 

 

 

 

 

<asp:Label ID="NVT_LTTarget" runat="server" Text='<%# Bind( "Target3" ) %>' />

 

 

 

 

 

</td>

 

 

 

 

 

<td class="DefaultGridCell">

 

 

 

 

 

<asp:Label ID="NTV_LTQuestion" runat="server" Text='<%# Bind( "Prompt3" ) %>' />

 

 

 

 

 

</td>

 

 

 

 

 

</tr>

 

 

 

 

 

</table>

 

 

 

 

 

<br />

 

 

 

 

 

</asp:Panel>

 

 

 

 

 

<asp:Panel ID="NVT_InfoTextPanel" runat="server"

 

 

Visible='<%# (COEStudentLib.ReadingTaskType)Convert.ToInt16(Eval("ReadingTaskTypeID" ))==COEStudentLib.ReadingTaskType.Informational %>'>

 

 

 

 

 

<table cellpadding="2" cellspacing="0" class="General" width="100%">

 

 

 

 

 

<tr>

 

 

 

 

 

<td class="DefaultHeaderCell">

 

 

 

 

Active

</td>

 

 

 

 

 

<td class="DefaultHeaderCell">

 

 

 

 

Strand

</td>

 

 

 

 

 

<td class="DefaultHeaderCell">

 

 

 

 

Target

</td>

 

 

 

 

 

<td class="DefaultHeaderCell" width="100%">

 

 

 

 

Question

</td>

 

 

 

 

 

</tr>

 

 

 

 

 

<tr>

 

 

 

 

 

<td align="center" class="DefaultGridCell" valign="top">

 

 

 

 

 

<asp:CheckBox ID="ICActiveCB" runat="server" AutoPostBack="true"

 

 

Checked='<%#Convert.ToString(Eval("Prompt1")).Length > 0 %>' Enabled="false"

 

 

OnCheckedChanged="OnChangeICActiveCB" />

 

 

 

 

 

</td>

 

 

 

 

 

<td class="DefaultGridCell" nowrap>

 

 

 

 

IC (Informational Comprehension)

</td>

 

 

 

 

 

<td class="DefaultGridCell">

 

 

 

 

 

<asp:Label ID="NVT_ICTarget" runat="server" Text='<%# Bind( "Target1" ) %>' />

 

 

 

 

 

</td>

 

 

 

 

 

<td class="DefaultGridCell">

 

 

 

 

 

<asp:Label ID="NVT_ICQuestion" runat="server" Text='<%# Bind( "Prompt1" ) %>' />

 

 

 

 

 

</td>

 

 

 

 

 

</tr>

 

 

 

 

 

<tr>

 

 

 

 

 

<td align="center" class="DefaultGridCell" valign="top">

 

 

 

 

 

<asp:CheckBox ID="IAActiveCB" runat="server" AutoPostBack="true"

 

 

Checked='<%#Convert.ToString(Eval("Prompt2")).Length > 0 %>' Enabled="false"

 

 

OnCheckedChanged="OnChangeIAActiveCB" />

 

 

 

 

 

</td>

 

 

 

 

 

<td class="DefaultGridCell" nowrap>

 

 

 

 

IA (Informational Analysis))

</td>

 

 

 

 

 

<td class="DefaultGridCell">

 

 

 

 

 

<asp:Label ID="NVT_IATarget" runat="server" Text='<%# Bind( "Target2" ) %>' />

 

 

 

 

 

</td>

 

 

 

 

 

<td class="DefaultGridCell">

 

 

 

 

 

<asp:Label ID="NVT_IAQuestion" runat="server" Text='<%# Bind( "Prompt2" ) %>' />

 

 

 

 

 

</td>

 

 

 

 

 

</tr>

 

 

 

 

 

<tr>

 

 

 

 

 

<td align="center" class="DefaultGridCell" valign="top">

 

 

 

 

 

<asp:CheckBox ID="ITActiveCB" runat="server" AutoPostBack="true"

 

 

Checked='<%#Convert.ToString(Eval("Prompt3")).Length > 0 %>' Enabled="false"

 

 

OnCheckedChanged="OnChangeITActiveCB" />

 

 

 

 

 

</td>

 

 

 

 

 

<td class="DefaultGridCell" nowrap>

 

 

 

 

IT - (Informational Thinking Critically)

</td>

 

 

 

 

 

<td class="DefaultGridCell">

 

 

 

 

 

<asp:Label ID="NVT_ITTarget" runat="server" Text='<%# Bind( "Target3" ) %>' />

 

 

 

 

 

</td>

 

 

 

 

 

<td class="DefaultGridCell">

 

 

 

 

 

<asp:Label ID="NVT_ITQuestion" runat="server" Text='<%# Bind( "Prompt3" ) %>' />

 

 

 

 

 

</td>

 

 

 

 

 

</tr>

 

 

 

 

 

</table>

 

 

 

 

 

<br />

 

 

 

 

 

</asp:Panel>

 

 

 

 

 

</td>

 

 

 

 

 

</tr>

 

 

 

 

 

</table>

 

 

 

 

 

</td>

 

 

 

 

 

</tr>

 

 

 

 

 

</table>

 

 

 

 

 

</NestedViewTemplate>

 

 

 

 

 

</MasterTableView>

 

 

 

 

 

<ValidationSettings CommandsToValidate="PerformInsert,Update" EnableValidation="true" />

 

</

 

telerik:RadGrid>

 

 

 


Tsvetina
Telerik team
 answered on 27 Sep 2010
1 answer
81 views
Greetings,

I am trying to integrate the MDI Demo and the RadSkinManager chooser. The issue I am currently facing is that when windows are open and I change the skin, the windows dissapear. The RadSkinManager mark-up for the window manager is...

<telerik:RadWindowManager ID="RadWindowManagerMain" runat="server" 
                           RestrictionZoneID="center"
                           Behaviors="Close, Maximize, Minimize, Move, Resize" 
                           KeepInScreenBounds="true"                                   
                           VisibleStatusbar="false"
                           EnableShadow="true"
                           Animation="Fade"
                           AnimationDuration="300"
                           AutoSize="false"
                           VisibleOnPageLoad="false" 
                           IconUrl="../CSS/titlegraphic.gif" 
                           ShowContentDuringLoad="true"
                           OnClientDragStart="WindowDragStart"
                           OnClientCommand="OnClientCommand"
                           OnClientActivate="OnClientActivate" 
                           OnClientClose="OnClientClose"
                           EnableViewState="true">
</telerik:RadWindowManager>

I am not sure what I am missing or if I should expect this to work at all? Any help or insight would be greatly appreciated.

Kind Regards,
Tom
Georgi Tunev
Telerik team
 answered on 27 Sep 2010
5 answers
127 views
Hi!

Can I force a RadDateInput to use the first month / the first day or the last month / the last day as auto-complete values instead of the month/day och today? E.g. I want to have two inputs where in the user can type "1980" in the first, and I always want that to auto-complete as 1980-01-01 no matter the date. In the second input the user can type "1984" and that should auto-complete as 1984-12-31.

Possible?

From this it also follows that if the user in the second input types "1984-02" the auto-complete should be 1984-02-29, and "1983-02" should be 1983-02-28.
Dimo
Telerik team
 answered on 27 Sep 2010
1 answer
143 views
Hi,
        Allow paging is not working in radgrid. Please check the code below:
<radW:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Office2007">
</radW:RadWindowManager>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<radspl:RadSplitter Width="100%" Height="100%" ID="RadSplitter1" runat="server" 
Orientation="Horizontal" Skin="Office2007" VisibleDuringInit="false">
<radspl:RadPane ID="RadPane1" runat="server" Height="167" MinHeight="79">
  
<radG:RadGrid ID="RadGrid1" runat="server" PageSize="5" AllowSorting="true"
EnableAJAXLoadingTemplate="true" AllowPaging="true" AutoGenerateColumns="False" EnableAJAX="True"
GridLines
="None" Skin="Office2007">
<AJAXLoadingTemplate>
 <asp:Panel ID="Panel1" Width="100%" Height="100%" runat="server">
   <img src="Images/Loading.gif" style="z-index: 100" />
 </asp:Panel>
</AJAXLoadingTemplate>
<ExportSettings IgnorePaging="True" OpenInNewWindow="True" />
<PagerStyle Mode="NextPrevAndNumeric" />
<MasterTableView DataKeyNames="ID" AllowPaging="true" AllowSorting="true">
 <Columns>
   <radG:GridBoundColumn DataField="ID" UniqueName="ID" Display="false">
   </radG:GridBoundColumn>
   <radG:GridBoundColumn DataField="Name" UniqueName="Name">
   </radG:GridBoundColumn>
 </Columns>                                    
</MasterTableView>
<ClientSettings ApplyStylesOnClient="True" EnableClientKeyValues="True">
  <Selecting AllowRowSelect="True" />
  <ClientEvents OnGridCreated="GridCreated" OnRequestStart="GridRequestStart" 
OnRowContextMenu="ContextMenu" />
</ClientSettings>
</radG:RadGrid>
  
</radspl:RadPane>
</radspl:RadSplitter>

Note: im using classic radgrid.

Please find me the solution as soon as possible.

Thanks in Advance.

Regards,
Asif





Shinu
Top achievements
Rank 2
 answered on 27 Sep 2010
1 answer
147 views
Hi ,

I am using latest Telerik release version 2010.2.826.35 .
I am creating RadMenu dynamically in code behind and its added to RadPanel bar.
I am creating RadMenuItem dynamically based on some logic and clear menu items on ClientClosed

Codebehind code
objRadMenu.WebServiceSettings.Path = "../Service/SNetService.asmx";
                       objRadMenu.WebServiceSettings.Method = "GetUserLinkHistory";
                       objRadMenu.OnClientItemPopulating = "ShowImage";
                       objRadMenu.OnClientItemPopulated  = "HideImage";
                       objRadMenu.OnClientItemClosed = "ChildMenuClosed";
                       objRadMenu.OnClientMouseOver = "ShowToolTip";                                           
                       RadMenuItem objRadMenuToday = new RadMenuItem(ResourceLang.GetString("Today", "MySettings.aspx"));                       
                       objRadMenuToday.ExpandMode = MenuItemExpandMode.WebService;                    

 
Following is the code in aspx : This code is taken from Telerik Site.

function ChildMenuClosed(sender, args) {
 
           try {
               var item = args.get_item();
               var varItemID = item.get_attributes().getAttribute("PKID");
               if (varItemID == "5") //Clearing Today Data only
               {
                   item.set_expandMode(Telerik.Web.UI.MenuItemExpandMode.WebService);
                   item.get_items().clear();
                   item._itemsLoaded = false;
               }
           } catch (exp) { }
       }

Issue in IE
1 . Alignment issue on second time hover on menu items, Items are generated but whole items are not visible if count is more that 15.
2. If Items are more than 200 then IE hangs and give prompt for non responsive script if i click continue then items are loaded.

Issue in Firefox
1. Items are shown only one time. Once menu is closed it is never shown again although code behind is executed all times.


Please reply for solution.

Thanks
Veenu





Kamen Bundev
Telerik team
 answered on 27 Sep 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?