Can we use shorter client IDs?
Hi,
Are there any plans to reduce the length of the client IDs in SiteFinity? When I view source on certain pages, then I can see that some of the IDs are humongous. Here is an example from the news page:
<fieldset class="sfSearchBoxSet"> <label for="newsCntView_newsBackendList_ctl00_ctl00_toolbar_search_ctl00_ctl00_searchBox_ctl00_ctl00_searchBox" id="newsCntView_newsBackendList_ctl00_ctl00_toolbar_search_ctl00_ctl00_searchBox_ctl00_ctl00_lblSearchBox" class="sfSearchLbl">Search...</label> <input name="newsCntView$newsBackendList$ctl00$ctl00$toolbar$search$ctl00$ctl00$searchBox$ctl00$ctl00$searchBox" type="text" id="newsCntView_newsBackendList_ctl00_ctl00_toolbar_search_ctl00_ctl00_searchBox_ctl00_ctl00_searchBox" class="sfTxt" /> <a onclick="return false;" id="newsCntView_newsBackendList_ctl00_ctl00_toolbar_search_ctl00_ctl00_searchBox_ctl00_ctl00_searchButton" class="sfLinkBtn" href="javascript:__doPostBack('newsCntView$newsBackendList$ctl00$ctl00$toolbar$search$ctl00$ctl00$searchBox$ctl00$ctl00$searchButton','')"> <strong class="sfLinkBtnIn">
Search </strong> </a> </fieldset>
Hello Sonu Kapoor,
We have plans for the future, anyway you could still use your own template where you'll be able to control the html,
All the best,
Pavel
the Telerik team
This will probably break SF, but have you tried setting the ClientIdMode in the web.config to Predictable or Static (probably predictable)?
I would guess it would break the JavaScript of SF, but it's worth a shot.
Or maybe you could set it in the MasterPage of your template.
Hi Eric,
Setting it globally (web.config) will cause problems in the backend. Having a master page configured like that is worth giving a try.
Best wishes,
Pavel
the Telerik team