Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
203 views


I am using validation control in my web application for registraion form

I am having one Problem with My Coding When i Click submit button..
When validation summary show if it having errors..Its working Properly....
But when i refresh Page with errors  Onclient click doesnot call...
automatically call to onclick event (server Side) even validation summary having
Error...
how to i solve it  i put my code below





<

telerik:RadToolTip runat="server" ID="RadToolTip10"

Position="Center"

RelativeTo="Element"

ManualClose="true"

OnClientBeforeShow="CheckIfShow"

TargetControlId="btnSubmit" Skin="Web20"

Title="You have following Errors" Modal="true" MouseTrailing="true">

<table cellpadding="0" cellspacing="0" width="300"><tr><td></td><td>

<asp:ValidationSummary id="ValidationSummary1" runat="server"/></td></tr>

<tr><td></td><td align="right"><asp:Button ID="btnClose" runat="server" Text="Close" OnClientClick="HideTooltip()" />

</td></tr></table>

</telerik:RadToolTip>



SUBMIT BUTTON

<

asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClientClick="ShowTooltip();" OnClick="btnSubmit_Click" />

Java Script:

function

ShowTooltip()

{

window.setTimeout(

function()

{

var tooltip = $find("<%=RadToolTip10.ClientID %>");

//API: show the tooltip

tooltip.show();

}, 10);

}

function CheckIfShow(sender, args)

{

var summaryElem = document.getElementById("<%=ValidationSummary1.ClientID %>");

//check if summary is visible

if (summaryElem.style.display == "none")

{

//API: if there are no errors, do not show the tooltip

args.set_cancel(

true);

}

}

function HideTooltip()

{

var tooltip = $find("<%=RadToolTip10.ClientID %>");

//API: hide the tooltip

tooltip.hide();

}

Regards

Friend        
Svetlina Anati
Telerik team
 answered on 15 Sep 2008
4 answers
253 views
Hello,
    I have a page that has several dockable user controls on it, each one showing different information about a common object.
 
I am progromatically defining the control on the page in the codebehind as so:

Dim newdock As RadDock = CreateRadDock("Personal Info")  
newdock.Tag = "~/UserControls/EditContact/PersonalInfo.ascx" 
LoadWidget(newdock)  
Me.rdzEditContact.Controls.Add(newdock)  
 
newdock = CreateRadDock("Custom Fields")  
newdock.Tag = "~/UserControls/EditContact/CustomFields.ascx" 
LoadWidget(newdock)  
Me.rdzEditContact.Controls.Add(newdock)  
 
 

Is there a way I can pass the common object to each of these controls on the page?
Sophy
Telerik team
 answered on 15 Sep 2008
1 answer
241 views
We feel the RadToolBar is a bit too high.  How to change the height of it?  I am using RadToolBar in Server Control.  I can embed a CSS in DLL.  So basically I need to put something in the CSS which overrides RadControl's skin such as Default.
Thanks.

Shuqing
Yana
Telerik team
 answered on 15 Sep 2008
3 answers
142 views
Hello,

  I have been using the RadScheduler AdvancedEditForm and AdvancedInsertForm for the past  8 months.  It has become increasingly difficult to work within the confines of the templates as my needs have started to become more complicated. Is there a way to Implement the AdvancedInsertForm and AdvancedEditForm in a ModalWindow that will alllow for full AJAX interaction? Currently it appears that I have to force all my ajax requests within the template through client side AjaxManagerRequests due to scoping issues when using the templates. Thanks for your time.

Justin
Peter
Telerik team
 answered on 15 Sep 2008
1 answer
168 views

I am dynamicly creating foo columns to be added to the grid

I do it like this in Page_Load:

foreach
(Artikli artikal in a)
{
    GridNumericColumn gridColumn = new GridNumericColumn();

    this.RadGrid1.MasterTableView.Columns.Add(gridColumn);
    gridColumn.DataField =
"blank";
    gridColumn.HeaderText = artikal.Naziv;
    gridColumn.UniqueName = artikal.Id.ToString() +
"_blank";
    // gridColumn.Expression = " ";
}


Export in Excel (ML) will export existing columns and only first added column.
Excel html export exports all columns, but xls file looks better in excel. 
 
If I try to create GridCalculatedColumn instead of GridBoudCollumn, I rececive this error: 

GridException: Cannot create column with the specified type name: GridCalculatedColumn]
   Telerik.Web.UI.GridColumnCollection.CreateColumnFromTypeName(String columnTypeName) +1013
...
 
Any help?

Yavor
Telerik team
 answered on 15 Sep 2008
1 answer
74 views

Week numbers
Is there any build-in soltuion for adding week numbers as part of the month view

Start week
Is it possible to start the month view with with the current week at top

Simon
Telerik team
 answered on 15 Sep 2008
3 answers
122 views
When the html has a dir of rtl the tooltip does not appear at the correct position. It seems to jump to the very far left.

Is there an issue with rtl if so any ideas on a workaround.

Regards
Russell
Svetlina Anati
Telerik team
 answered on 15 Sep 2008
4 answers
171 views
 The code I use to populate the grid is:

   protected void users_grid_needData(object source, GridNeedDataSourceEventArgs e)
    {
        DataTable dt = MasterPage.executeSQLQuery("SELECT ps_userid, first_name, last_name, ps_usertype FROM ps_users");
        users_grid.DataSource = dt;
    }

This works fine when all the elements are of type "GridBoundColumn" but when I try to make the usertype into a GridDropDown column, it does not render anything.

I read http://www.telerik.com/help/aspnet-ajax/grdcustomizeconfiguregriddropdowncolumn.html

but I am still unclear about what dataField, listValueField, listTextField, and listDataMember should be set to.

Right now I have it as:

 <radG:GridDropDownColumn ListTextField="ps_usertype" DataField="ps_usertype"
                     ListValueField="ps_usertype" HeaderText="Group" UniqueName="Group">
                    </radG:GridDropDownColumn>

Thanks

Edit: I took out the code formatting because it displayed badly.
Yavor
Telerik team
 answered on 15 Sep 2008
2 answers
136 views
Hi,

Is it possible to display the unmatched value in the grid rather than empty text? For instance..

<

telerik:GridDropDownColumn HeaderText="Client" UniqueName="Budget_Client" DataSourceID="SrcForClient" DataField="Budget_Client" ListTextField="ClientName" ListValueField="ClientName"></telerik:GridDropDownColumn>


On the above code, I am binding a dropdown list to a object datasource. The problem is if DataField does not match item in the field, it display blank in the grid column. Ideally I would to have user see the original value (Data Field) before going to edit mode for selecting item in the dropdown list...

Any suggestion would be appreciated.

Thanks.
Milan G

Milan Gurung
Top achievements
Rank 1
 answered on 15 Sep 2008
1 answer
93 views
Hi,
 iam currently trying to implent 2 grids with googlefiltering in a multipage, but it always seems to overwrite the functions of the first grid when loading the second grid i already implemented a second mycustomfilteringcolumn2.vb class the strange is, that when i using

Me.RadGrid4.MasterTableView.Columns.Add(gridColumn4)

something causes a error message when i trying to filter in radgrid1 saying cannot create myfilteringcolumn2. Which is designated for radgrid4.

Hope you can help me
THX
Jens
Yavor
Telerik team
 answered on 15 Sep 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?