Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
176 views
Hi,

i have a control with multiple input boxes where i need to validate required values.

Following http://www.telerik.com/help/aspnet/ajax/ajxexclude.html i have added a submit button.

When is use in page_load

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not Page.IsPostBack Then
            btnStoreCustom.Attributes.Add("onclick", String.Format("realPostBack('{0}', ''); return false;", btnStoreCustom.UniqueID))
        End If
    End Sub

my code code

Protected Sub btnStoreCustom_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnStoreCustom.Click
        ' save all custom made values in Session Variables for future use
        Session("MP1A") = CInt(rntbPM1A.Value)
        Session("MP1B") = CInt(rntbPM1B.Value)
        Session("MP2A") = CInt(rntbPM2A.Value)
        Session("MP2B") = CInt(rntbPM2B.Value)
        Session("MP3A") = CInt(rntbPM3A.Value)
        Session("MP3B") = CInt(rntbPM3B.Value)
        Session("MP4A") = CInt(rntbPM4A.Value)
        Session("MP4B") = CInt(rntbPM4B.Value)
        Session("MP5A") = CInt(rntbPM5A.Value)
        Session("MP5B") = CInt(rntbPM5B.Value)
        Session("MP6A") = CInt(rntbPM6A.Value)
        Session("MP6B") = CInt(rntbPM6B.Value)
        Session("MP7A") = CInt(rntbPM7A.Value)
        Session("MP7B") = CInt(rntbPM7B.Value)
        Session("MP8A") = CInt(rntbPM8A.Value)
        Session("MP8B") = CInt(rntbPM8B.Value)
        Session("MP9A") = CInt(rntbPM9A.Value)
        Session("MP9B") = CInt(rntbPM9B.Value)
        Session("MP10A") = CInt(rntbPM10A.Value)
        Session("MP10B") = CInt(rntbPM10B.Value)
        Session("MP11A") = CInt(rntbPM11A.Value)
        Session("MP11B") = CInt(rntbPM11B.Value)
        Session("MP12A") = CInt(rntbPM12A.Value)
        Session("MP12B") = CInt(rntbPM12B.Value)
        Session("MP13A") = CInt(rntbPM13A.Value)
        Session("MP13B") = CInt(rntbPM13B.Value)
        Session("MP14A") = CInt(rntbPM14A.Value)
        Session("MP14B") = CInt(rntbPM14B.Value)
        Session("MP15A") = CInt(rntbPM15A.Value)
        Session("MP15B") = CInt(rntbPM15B.Value)
        Session("MP16A") = CInt(rntbPM16A.Value)
        Session("MP16B") = CInt(rntbPM16B.Value)
        Session("MP17A") = CInt(rntbPM17A.Value)
        Session("MP17B") = CInt(rntbPM17B.Value)
        Session("Weight") = CInt(rntbGewicht.Value)
        Session("Height") = CInt(rntbGroesse.Value)
    End Sub

is executed but no validating was done. 

In case of excluding the  btnStoreCustom.Attributes.Add

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
       If Not Page.IsPostBack Then
           '  btnStoreCustom.Attributes.Add("onclick", String.Format("realPostBack('{0}', ''); return false;", btnStoreCustom.UniqueID))
       End If
   End Sub

validation is done, but the code is not executed.

My ASPX for the button looks like this

<asp:Button ID="btnStoreCustom" runat="server" 
     Text="Diese Daten zwischenspeichern!" PostBackUrl="~/overlay.aspx" 
     ValidationGroup="AllPoint" CommandName="Submit" CausesValidation="True" />

Any suggestion on this task ?

Kind regards

Martin Gartmann
Cori
Top achievements
Rank 2
 answered on 07 Sep 2010
1 answer
99 views
Hi Team

I have rad grid in that i have six colums i need to edit the last two colums only when i click the rad grid row on double click i on that time these two colums only in edit mode. i have to update the using the datakey names, in asp.net code behind page.

Please Kindly send me examples or Solutions as soon as possible.


Regards,
Ashok Anbarasu.
Shinu
Top achievements
Rank 2
 answered on 07 Sep 2010
2 answers
290 views
Hi,

I am trying to dynamically add the values entered in the cells and populate the total in another Cell.  So i call total() function onTextChange in each texbox within the Grid. The entire grid postbacks, this will be annoying to the user. I need a funcationality similar to Excel where one cell holds the formula to add the values in required cells.      I have pasted the code snippet here below just for testing purpose, i tried to populate one textbox with the value of other and checking the onTextChange event in each textbox within the grid.                     
Please let me know what needs to be fixed so that the entire page doesnot postbacks, the total value is automatically added.

<telerik:RadGrid ID="RadGrid1" runat="server" Skin="" AutoGenerateColumns=false>
                                        <MasterTableView DataKeyNames="WEB_ACCOUNT_ID,WEB_PER_ID,WEEK_ID,DETAIL_ID">
                                            <Columns>                                               
                                                <telerik:GridTemplateColumn UniqueName="TemplateColumn">
                                                    <ItemTemplate>
                                                        <asp:TextBox ID="txt_sun_hrs" runat="server" Text='<%# Eval("SUN_HRS") %>' Width="90%"
                                                            MaxLength="4" OnTextChanged="textBox_TextChangedRad" AutoPostBack=true>   </asp:TextBox>
                                                    </ItemTemplate>
                                                </telerik:GridTemplateColumn>
                                                <telerik:GridTemplateColumn UniqueName="TemplateColumn">
                                                    <ItemTemplate>
                                                        <asp:TextBox ID="txt_mon_prem" runat="server" Text='<%# Eval("MON_PREM") %>' Width="90%"
                                                            MaxLength="4" OnTextChanged="textBox_TextChangedRad" AutoPostBack=true></asp:TextBox>
                                                    </ItemTemplate>
                                                </telerik:GridTemplateColumn>
                                            </Columns>
                                        </MasterTableView>
                                    </telerik:RadGrid>

CodeBehind:
    protected void textBox_TextChangedRad(object sender, System.EventArgs e)
    {
        int start, end, updatedrow;
        double sun_Hrs, mon_prem;
        TextBox txtHrs = ((TextBox)(sender));
      
        GridDataItem item = (GridDataItem)txtHrs.NamingContainer;        
       
        sun_Hrs = Convert.ToDouble(((TextBox)item.FindControl("txt_sun_hrs")).Text.Equals("") ? "0" : ((TextBox)item.FindControl("txt_sun_hrs")).Text.ToString());

        ((TextBox)item.FindControl("txt_mon_prem")).Text = sun_Hrs.ToString();

    }
Manikandan Balasubramaniyan
Top achievements
Rank 1
 answered on 07 Sep 2010
4 answers
139 views

Hello,

I am using RadEditor  in sharepoint and facing one issue.

 

I just want to restrict my editor's font name and size (say Arial,2) ,for that  i  made changes in ListToolsFile.Xml,
in following sections

 

<fontNames>
    <item name="Arial" />
  </fontNames>
  <fontSizes>
    <size value="2" />
  </fontSizes>

Now  the problem is that i am still getting default option(Times New Roman,3).(See Attached file)
Note-
I am using Lite Edition of RadEditor,also using it in SharePoint List.

Regards,
Sham@

Lini
Telerik team
 answered on 07 Sep 2010
1 answer
347 views
hello all, i have updated my radcontrols  from old version to 2010,
previously i was using the skin file which is in my App_Teheme folder and now also i want to use my old skin file for all controls.
but it is not setting that skin file.
even also i  have set EnableEmbeddedSkins="false to each rad controls in skin file. then also it is not setting, i am getting some ... UI,

i have attached my snap file 1st one is Previously and 2nd one is after upgraded and also i attached my skin file.
please help me
Dimo
Telerik team
 answered on 07 Sep 2010
2 answers
60 views
Hello,
 
Is it possible to use the google like filtering example with an object datasource?

Adonis
Top achievements
Rank 1
 answered on 07 Sep 2010
1 answer
188 views
Hi

Where can I get an example of nice clean model web.config file for everything required to support
the Q2 2010 release on IIS6 (not IIS7), and asp.net 4.0 ?

I was thinking of generating a new VS 2010 web project to create this but my local machine is
running IIS7, whereas the remote server is running IIS6, and the requirements are different
it seems.

Thanks

Clive

Sebastian
Telerik team
 answered on 07 Sep 2010
1 answer
81 views
In the top part of this page there is the navigator menu, it is nice.
http://img831.imageshack.us/img831/2017/teleriknavigatormenu.jpg

I guess is a tabstrip control with nice css.
The question is - I apologize for it - when you click the arrow it popups a different menu
is it part of the tabstrip? is it a layer? a different control?
That's puzzling me, how did you made the whole menu?

Thank you
Princy
Top achievements
Rank 2
 answered on 07 Sep 2010
2 answers
68 views
Hi

Can anyone tell me where to look for a solution to this problem.
When googlebot visits one of my pages it creates an exception error. the report I get
says
Message:      Unable to cast object of type 'System.Int32' to type 'System.Collections.Generic.Dictionary`2[System.String,System.Object]'.
Source:       Telerik.Web.UI
Form:         ctl00_ctl00_RadScriptManager1_HiddenField=&__EVENTTARGET=&__EVENTARGUMENT=&__LASTFOCUS=&__VIEWSTATE=%  etc etc

QueryString:  Ref=gaw

Target site:  Boolean LoadPostData(System.String, System.Collections.Specialized.NameValueCollection)



but the page itself works fine for human visitors. I am concerned that for some reason Google won't index this page.

Can anyone shed some light?

Thanks

Clive

Thanks

Clive
Lini
Telerik team
 answered on 07 Sep 2010
1 answer
114 views
hi
when i update row
 editedItem.OwnerTableView.DataKeyValues[editedItem.ItemIndex]["GroupName"].ToString();
get previous data not update value
please help
Shinu
Top achievements
Rank 2
 answered on 07 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?